I'm working with solr5.5.1 and spring-data-solr 1.4.2.RELEASE. I have configured the spring data solr with my working project and working fine. But when i insert data to solr using model class, it automatically update the managed-schema file with relavent field of model class. in this model i'm not using multivalued types, but spring-data-solr update the managed-schema file as multivalued attributes. Why is it happened ? sample field declaration of model class
@SolrDocument(solrCoreName = "car")
public class CarModel{
@Id
@Indexed(type = "string")
private String id;
@Indexed(type = "string")
private String condition;
@Indexed(type = "string")
private String name;
//getters n setters
}
when i save object of this class through SolrCrudRepository
. Then managed-schema will be updated like this,
<field name="condition" type="strings"/>
<field name="id" type="string" multiValued="false" indexed="true" required="true" stored="true"/>
<field name="name" type="strings"/>
here fields are multivalued. What is happening here and how can i resolve this ?