我正在将 Solr 4 应用程序迁移到 Solr 6.2.0。我的架构包括以下字段:
<uniqueKey>id</uniqueKey>
<field name="id" type="string" required="true" indexed="true" stored="true" multiValued="false"/>
我正在使用经典模式。但除此之外,我不断收到以下异常:
"error-class","org.apache.solr.common.SolrException",
"root-error-class","org.apache.solr.common.SolrException"],
"msg":"QueryElevationComponent requires the schema to have a uniqueKeyField.",
"trace":"org.apache.solr.common.SolrException: QueryElevationComponent requires the schema to have a uniqueKeyField.\n\tat
我错过了什么?
编辑:从以下问题的架构中添加了字段声明。