Solr 异常:找不到排序参数字段

Solr Exception: Sort param field can't be found

我一直在尝试设置 CKAN,但是我在 SOLR 中遇到了一些问题。 每次我 运行 CKAN 时,SOLR 日志文件都会注册一个新事件,即:

org.apache.solr.common.SolrException: sort param field can't be found: metadata_modified

我是第一次尝试使用 CKAN,我一点经验都没有,所以我不知道那个日志事件是什么意思,也不知道如何修复它。

编辑: 当我在 SOLR 重新加载核心时,会记录以下内容:

The schema has been upgraded to managed,​ but the non-managed schema schema.xml is still loadable. PLEASE REMOVE THIS FILE.

谁能帮帮我?

非常感谢。

这听起来好像您没有使用 CKAN 的自定义 Solr 架构。确保遍历 setup documentation 中的所有点,特别是点 2,然后重新启动码头:

sudo service restart jetty

好吧,由于某种原因,原来是 SOLR 6 出了问题。 降级到版本 5 对我有用。