开发者

indexing with solr

开发者 https://www.devze.com 2023-03-27 15:27 出处:网络
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百科

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消