Lucene 和 Solr 版本不兼容
我们有一个使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须将 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.