描述错误
当尝试在 Solr 上添加带有 CKAN schema.xml 的 Solr 核心时,我收到错误:
创建 SolrCore 'new_core' 时出错:无法创建核心 [new_core] 原因:自 Solr 7 起不支持在架构中设置 defaultSearchField
CKAN 2.9 版本
描述错误
当尝试在 Solr 8 上添加带有 CKAN schema.xml 的 Solr 核心时,您将收到错误:
创建 SolrCore 'new_core' 时出错:无法创建核心 [new_core] 原因是:自 Solr 7 以来不支持在架构中设置 defaultSearchField
CKAN schema.xml 包括 文字重现步骤
/var/solr/data/ckan/conf/schema.xml
sudo nano /var/solr/data/ckan/conf/schema.xml
文字
<df>text</df>
<solrQueryParser q.op="AND"/>
注意:不再支持架构中的defaultSearchField 参数。请改用 df 参数。此选项已在多个版本中被弃用。
<df>NAME</df>
<solrQueryParser q.op="OR"/>