简体   繁体   中英

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 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM