solr - Error when adding a document -
the solr schema has following fields:
<!-- <field name="id" type="string" indexed="true" stored="true" required="true" multivalued="false" /> --> <field name="_id" type="string" indexed="true" stored="true" required="true" multivalued="false" /> <!-- metadata used mongo-connector --> <field name="_ts" type="long" indexed="true" stored="true" required="true" multivalued="false" /> <field name="ns" type="string" indexed="true" stored="true" required="true" multivalued="false" /> <!-- uncomment following ignore fields don't match existing field name or dynamic field, rather reporting them error. alternately, change type="ignored" other type e.g. "text" if want unknown fields indexed and/or stored default --> <dynamicfield name="*" type="ignored" multivalued="true" /> <!-- field use determine , enforce document uniqueness. unless field marked required="false", required field --> <uniquekey>_id</uniquekey>
i adding following document:
{"_id":"change.me","ns":"change.me", "_ts":123}
i following error:
solrcore org.apache.solr.common.solrexception: unable invoke function processadd in script: update-script.js: sun.org.mozilla.javascript.internal.wrappedexception: wrapped java.lang.nullpointerexception (#71) in @ line number 71
solrdispatchfilter null:org.apache.solr.common.solrexception: unable invoke function processadd in script: update-script.js: sun.org.mozilla.javascript.internal.wrappedexception: wrapped java.lang.nullpointerexception (#71) in @ line number 71
what problem? solr 5.3.0.
Comments
Post a Comment