In Solr, I want to index string field as list by splitting it.
Below is my indexing query in data_config.xml file.
<document name="Example">
<entity dataSource="example_table" name="Example"
query="select id, text from example_table"
pk="id"
transformer="RegexTransformer"
>
<field column="id" name="id" />
<field column="text" name="text" />
</entity>
Field text is a comma separated string. Example: "A, B, C"
Below is the field definition in schema.xml file
<field name="text" type="string" indexed="true" stored="true" required="false" multiValued="true" />
When I'm querying Solr the output is:
"text":["A, B, C"]
Could someone explain me how can I get the result as below?
"text":["A","B","C"]