How do we create multivalued index through code.
+2
A:
Define a field as multi-valued:
In your schema.xml, for the fields you want to have multiple values, add the "multiValued" attribute:
<field name="features" type="text" indexed="true" stored="true" multiValued="true"/>
More information can be found: http://wiki.apache.org/solr/SchemaXml#Common_field_options
greggersh
2010-06-14 12:42:35