indexing with solr
I'm using solrj to index data, I have created some new field in schema.xml, when I try to index data by java I have to use all new fields, if I don't use one of this new field I have 开发者_JAVA百科an exception org.apache.solr.common.solrexception bad request Can I index Data with fields that I choose?
Because all of your defined fields in schema.xml has set the attribute "required" as "true". Set the attribute to false and the field is not longer necessary for each document.
精彩评论