【问题标题】:Carrot2 3.9.4 upgrading to Lucene 4.7+Carrot2 3.9.4 升级到 Lucene 4.7+
【发布时间】:2015-02-17 20:38:15
【问题描述】:

尝试连接到 4.7 以上的 Lucene 索引时出错:

处理错误:org.apache.lucene.index.IndexFormatTooNewException:不支持格式版本(资源:MMapIndexInput(path="C:\kcp-search-data\kcp-index_2.cfs ") [slice=_2_Lucene41_0.doc]): 1(需要在 0 和 0 之间) org.apache.lucene.index.IndexFormatTooNewException:不支持格式版本(资源:MMapIndexInput(path="C:\kcp-search-data\kcp-index_2.cfs") [slice=_2_Lucene41_0.doc]):1(需要介于 0 和 0 之间)

此错误的任何解决方法?知道什么时候会发布带有升级的 Lucenee 库的 Carrot2 的下一个版本吗?

谢谢

【问题讨论】:

    标签: lucene carrot2


    【解决方案1】:

    问题已在 Carrot JIRA 跟踪器中发现,如果我没看错的话,他们似乎计划在 3.10.0 版中修复它。

    http://issues.carrot2.org/browse/CARROT-1078

    抱歉,我没有更好的消息。

    【讨论】:

      【解决方案2】:

      3.10.0 尚未发布,但您可以尝试以下快照二进制文件:

      http://get.carrot2.org/head/3.10.0-SNAPSHOT/

      快照随 Lucene 升级到 versino 5.0.0,因此它也应该读取您的索引。

      我会在carrot2 3.10.0 官方发布后立即更新此回复。

      【讨论】:

      • 我可以让 Workbench v3.10.0 连接到新索引,但是在将 carrot2-core-3.10.0-SNAPSHOT.jar 导入我的项目时,我收到编译错误:编译错误:java .lang.NoClassDefFoundError: org/carrot2/util/attribute/IBindableDescriptor
      • 您的类路径中还需要 attributes-binder-1.2.2.jar。
      • 谢谢,是的,我忘记了那些罐子。被maven宠坏了哈哈
      猜你喜欢
      • 1970-01-01
      • 2019-01-08
      • 2018-05-26
      • 2019-12-11
      • 1970-01-01
      • 1970-01-01
      • 2023-02-07
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多