I am trying to add a multivalued content to Solr index. The original String contains values seperated by ",".
<fieldtype name="commas_type" class="solr.TextField" omitNorms="true">
<analyzer type="index">
<tokenizer class="solr.PatternTokenizerFactory" pattern=",\s*"/>
<filter class="solr.LowerCaseFilterFactory" />
</analyzer>
<analyzer type="query">
<tokenizer class="solr.PatternTokenizerFactory" pattern=",\s*"/>
<filter class="solr.LowerCaseFilterFactory" />
</analyzer>
</fieldtype>
<field name="keywords" type="commas_type" stored="true" indexed="true" multiValued="true" />
But instead of getting :
<doc>
<arr name="keywords">
<str>Agile</str>
<str>Kanban</str>
<str>Clojure</str>
<str>Datomic</str>
</arr>
</doc>
I'm getting:
<doc>
<arr name="keywords">
<str>Agile, Kanban</str>
<str>Clojure, Datomic</str>
</arr>
</doc>