我正在尝试在 Ubuntu 16.04 中安装 Solr 7.0 和 CKAN 2.7.2。但是,我得到了以下内容errors:
来自 Solr 管理网站:
ckan:org.apache.solr.common.SolrException:org.apache.solr.common.SolrException:无法加载核心ckan的conf:无法加载架构/var/solr/data/ckan/conf/schema.xml:自 Solr 7 起不支持在模式中设置 defaultSearchField
启动数据库时从 CKAN 安装:
Solr 响应错误 (HTTP 404):[原因:错误 404 未找到]
所以我想知道CKAN是否可以支持最新版本的Solr。目前,CKAN 2.7.2可以通过Jetty8支持Solr 4.6。
经过一番修改,并使用此页面关于Solr 6.5 与 CKAN https://github.com/ckan/ckan/wiki/Install-and-use-Solr-6.5-with-CKAN作为起点,我设法在 Ubuntu 18.04 中使用 CKAN 2.8 和 Solr 7.4:
1)在CKAN .ini配置文件中,solr_url
必须包含核心名称,否则 CKAN 调用 Solr 失败(SearchError:SOLR 在运行查询时返回错误... [原因:错误 404 未找到] ...)
e.g. solr_url = http://127.0.0.1:8983/solr/ckan/
where ckan
是 Solr 核心名称
2)在xml Solr模式中,replace
<defaultSearchField>text</defaultSearchField>
<solrQueryParser defaultOperator="AND"/>
with
<df>text</df>
<solrQueryParser q.op="AND"/>
因为这些功能已被弃用(1 https://lucene.apache.org/solr/guide/7_0/major-changes-in-solr-7.html#other-deprecations-and-removals, 2 https://lucene.apache.org/solr/guide/7_0/the-standard-query-parser.html#standard-query-parser-parameters)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)