Lucene 和 Solr 版本不兼容

发布于 2024-10-09 18:49:23 字数 218 浏览 0 评论 0原文

我们有一个使用 3.0.2 Lucene jar 生成的索引。我安装和配置的Solr版本是1.4.1。在Solr的lib目录中,我看到Solr使用Lucene 2.9.3。

启动时会抛出异常:“不兼容的格式版本:2 预期为 1 或更低”。我猜测这可能是由于 Lucene 版本不兼容 - 3.0.2 用于生成索引,2.9.3 用于读取索引。

我是否缺少配置步骤?

提前致谢。

We have an index generated using the 3.0.2 Lucene jar. The Solr version I installed and configured is 1.4.1. In Solr's lib directory I see that Lucene 2.9.3 is used by Solr.

At startup an exception is thrown: "Incompatible format version: 2 expected 1 or lower". I am guessing it is possibly due to incompatible Lucene versions - 3.0.2 was used to generate the index and 2.9.3 is being used to read the index.

Am I missing a configuration step?

Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

疾风者 2024-10-16 18:49:23

您必须将 Lucene 降级到 2.9.x 或将 Solr 升级到 3.x/4.x(主干),后者使用更新的 Lucene 版本。

You'll have to downgrade Lucene to 2.9.x or upgrade Solr to 3.x/4.x (trunk) which uses a more recent Lucene version.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文