tags:

views:

57

answers:

1

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