如何打开Lucene 4.3索引? [英] How to open a Lucene 4.3 index?

查看:254
本文介绍了如何打开Lucene 4.3索引?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Lucene的新手,我正在尝试使用Luke打开一个Lucene 4.3索引(我使用我的简单Lucene 4.3.1应用程序创建),但它一直在给我:

I am a Lucene newbie and I am trying to open a Lucene 4.3 index (which I am creating with my simple Lucene 4.3.1 app) using Luke, but it keeps giving me:


该位置的目录无效,请查看控制台以获取更多信息。
最后一个异常:java.lang.IllegalArgumentException:名为'Lucene42'的
类型org.apache.lucene.codecs.Codec的SPI类不存在
。您需要将支持此SPI
的相应JAR文件添加到类路径中。当前类路径支持以下名称:
[Lucene40,Lucene3x,SimpleText,追加]

Invalid directory at the location, check console for more information. Last exception: java.lang.IllegalArgumentException: A SPI class of type org.apache.lucene.codecs.Codec with name 'Lucene42' does not exist. You need to add the corresponding JAR file supporting this SPI to your classpath.The current classpath supports the following names: [Lucene40, Lucene3x, SimpleText, Appending]

好的。所以我将代码中使用的Lucene版本设置为 Version.LUCENE_43 。我也尝试过早期的3.x版本。我在这做错了什么?是否可以使用另一个Lucene索引浏览器?

Fine. So I set the Lucene version used in the code to Version.LUCENE_43. I tried earlier 3.x versions as well. What am I doing wrong here? Is there another Lucene index browser one can use?

我使用 java -jar lukeall-4.0.0-ALPHA.jar运行Luke 我告诉它打开我的应用程序正在生成的索引。

I am running Luke using java -jar lukeall-4.0.0-ALPHA.jar and I am telling it to open the index which my app is producing.

更新:


  • 我尝试将我的CLASSPATH设置为包含lucene-core:4.3.1:jar。这没有帮助。

  • I have tried setting my CLASSPATH to include lucene-core:4.3.1:jar. That didn't help.

Luke抛出此错误:

Luke throws this error:

java.lang.IllegalArgumentException:名为Lucene42的类型为org.apache.lucene.codecs.Codec的SPI类不存在。您需要将支持此SPI的相应JAR文件添加到类路径中。当前类路径支持以下名称:[Lucene40,Lucene3x,SimpleText,Appending]
java.lang.IllegalArgumentException:类型为org.apache的SPI类名称为Lucene42的.lucene.codecs.Codec不存在。您需要将支持此SPI的相应JAR文件添加到类路径中。当前类路径支持以下名称:[Lucene40,Lucene3x,SimpleText,追加]

java.lang.IllegalArgumentException: A SPI class of type org.apache.lucene.codecs.Codec with name 'Lucene42' does not exist. You need to add the corresponding JAR file supporting this SPI to your classpath.The current classpath supports the following names: [Lucene40, Lucene3x, SimpleText, Appending] java.lang.IllegalArgumentException: A SPI class of type org.apache.lucene.codecs.Codec with name 'Lucene42' does not exist. You need to add the corresponding JAR file supporting this SPI to your classpath.The current classpath supports the following names: [Lucene40, Lucene3x, SimpleText, Appending]

非常感谢!

推荐答案

有人花了他的时间修复卢克的卢克 - 4.3.1。

There is person who took his time to fix luke for lucene-4.3.1.

https://github.com/tarzanek/luke

这篇关于如何打开Lucene 4.3索引?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆