简体   繁体   English

从solrconfig.xml加载solr配置时出错

[英]Error loading solr config from solrconfig.xml

I'm using solr 5.2.1 with jetty.In my logs(solr.log) there's an error with "org.apache.solr.core.CoreContainer; Error creating core [dosweb]: Could not load conf for core project : Error loading solr config from solrconfig.xml" title ,and I understand it's because of misconfigured in solr version,and it is showing me this exception:Caused by: java.lang.IllegalArgumentException: Illegal parameter 'termIndexInterval' 我在码头上使用solr 5.2.1。在我的日志(solr.log)中,“ org.apache.solr.core.CoreContainer”出现错误;创建核心[dosweb]时出错:无法为核心项目加载conf:错误从solrconfig.xml加载solr config“标题,我知道这是由于在solr版本中配置错误,并且向我显示了此异常:产生于:java.lang.IllegalArgumentException:非法参数'termIndexInterval'

,what I should do to fix it. ,我应该怎么做才能修复它。 thanks alot. 非常感谢。

Not enough data. 数据不足。

It seems like your core is misconfigured for 5.2.1 看来您的核心未正确配置5.2.1

I'd suggest that you try first with a reference configuration core, or a reference empty core, make sure that works, and then merge the config from the dosWeb core to the newly created core in steps. 我建议您首先尝试使用参考配置核心或参考空核心,确保可以正常工作,然后逐步将配置从dosWeb核心合并到新创建的核心。

This way you will find the part of the configuration that causes the issue. 这样,您将找到导致问题的配置部分。

EDIT - 编辑-

After you added information (still not enough - a snippet of the offending configuration would have been good) I've been able to track down the bug that refers to the issue you get. 添加信息后(仍然不够用-令人讨厌的配置的一小段就不错了),我已经能够找到涉及您所遇到问题的错误。

https://issues.apache.org/jira/browse/SOLR-6560 https://issues.apache.org/jira/browse/SOLR-6560

Essentially - the configuration for termIndexInterval is now not only deprecated, but can't be done in a standard way at all. 从本质上讲-termIndexInterval的配置现在不仅已弃用,而且根本无法以标准方式完成。 From what I understand from the bug, It's also not needed anymore. 据我从该错误中了解到,也不再需要它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM