Java – how to open a Lucene 4.3 index?

I'm new to Lucene. I'm trying to open a Lucene 4.3 index using Luke (I created it with my simple Lucene 4.3.1 application), but it keeps giving me:

Fine So I set the Lucene version used in the code to version LUCENE_ 43. I also tried the earlier 3 X version What did I do wrong here? Is there another Lucene index browser available?

I use Java - jar lukeall - 4.0 0-ALPHA. Jar runs Luke, and I tell it to open the index that my application is generating

to update:

>I've tried to set my classpath to include Lucene core: 4.3 1:jar. That doesn't help > Luke throws this error:

java. Lang. illegalargumentexception: the type named "lucene42" is org apache. lucene. codecs. Codec SPI class does not exist You need to add the corresponding jar file that supports this SPI to the classpath The current classpath supports the following names: [lucene40, appending] Java Lang. illegalargumentexception: the type named "lucene42" is org apache. lucene. codecs. Codec SPI class does not exist You need to add the corresponding jar file that supports this SPI to the classpath The current classpath supports the following names: [lucene40, appending]

Thank you.

Solution

One man spent his time fixing Luke's lucene-4.3 one

https://github.com/tarzanek/luke

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>