【发布时间】:2014-04-15 14:32:56
【问题描述】:
我在我的 Solr schema.xml 文件中定义了一个多值字段来实现自动完成功能,如下所示:
<field name="name" type="textgen" indexed="true" stored="true"/>
<field name="nameac" type="autocomplete" indexed="true" stored="true" omitNorms="true" omitTermFreqAndPositions="true" multiValued="true"/>
<copyField source="name" dest="nameac"/>
但是,我看到这样的错误:
错误 [org.apache.solr.core.SolrCore] (http-executor-threads - 639) org.apache.solr.common.SolrException:错误:[doc=ffff] 多个 非多值字段 nameac 遇到的值:[abc def, abc 定义]
我预计属性 multiValued="true" 应该已经处理了这个问题。
请提出建议。
问候。
【问题讨论】:
-
是否在不重新启动 solr 服务器的情况下更改了配置?请重启并检查
标签: xml exception solr xml-parsing schema