Hello, Multivalued fields are controlled by the schema. You need to define your field in the schema file as 'not' a multivalue field. Here are a couple of examples of field definitions, one multivalued, the other not.
<field name="component" type="string" indexed="true" stored="false" multiValued="true"/> <field name="environment" type="text_general" indexed="true" stored="false" /> If you do not explicitly define your field, then solr will use default definitions, which are probably storing the field as multivalued. Charles ----- Original Message ----- From: "巩学超" <xuechao.g...@qunar.com> To: solr-user@lucene.apache.org Sent: Monday, April 11, 2016 7:58:35 AM Subject: How to set multivalued false, using SolrJ Hello, Can you do me a favour, I use solrJ to index, but I get all the Field is multivalued. How can I set my Field to not multivalued, can you tell me how to setting use solrJ.