SOLR架构包含以下字段:
<!-- <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 by 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 the following to ignore any fields that don't already match an existing
field name or dynamic field, rather than reporting them as an error.
alternately, change the type="ignored" to some other type e.g. "text" if you want
unknown fields indexed and/or stored by default -->
<dynamicField name="*" type="ignored" multiValued="true" />
<!-- Field to use to determine and enforce document uniqueness.
Unless this field is marked with required="false", it will be a required field
-->
<uniqueKey>_id</uniqueKey>
我正在添加以下文档:
{“_ id”:“change.me”,“ns”:“change.me”,“_ ts”:123}
我收到以下错误:
SolrCore org.apache.solr.common.SolrException:无法调用 function processAdd in script:update-script.js: sun.org.mozilla.javascript.internal.WrappedException:Wrapped 第71行的java.lang.NullPointerException(#71)
SolrDispatchFilter null:org.apache.solr.common.SolrException:Unable 在脚本中调用函数processAdd:update-script.js: sun.org.mozilla.javascript.internal.WrappedException:Wrapped 第71行的java.lang.NullPointerException(#71)
可能是什么问题?这是SOLR 5.3.0。