Ajit Kumar
Ajit Kumar

Reputation: 41

Unable to index multivalued field in solr

I am indexing data from two tables(unrelated) mysql in solr 6.3 . Few fields from One of the tables is multivalued while rest are not. Now that when I run fullImport from solr admin panel, it indexes only single data for multivalued field. I have tried implementing regextransformer and splitby "," but didn't work. I have also tried using child entity but didn't work. Here is my data-config.xml and schema.xml.

Upvotes: 0

Views: 499

Answers (1)

James Doepp - pihentagyu
James Doepp - pihentagyu

Reputation: 1308

In your code you are using transformer=TemplateTransformer, but you need RegexTransformer to use splitBy="," - so it should read:

<entity name="Candidates" transformer="TemplateTransformer,RegexTransformer"...>

Upvotes: 1

Related Questions