问题描述
我正在尝试了解Lucene,并希望使用Luke进行调查.我尝试在Lucene 4.3中使用IndexFiles演示构建索引,然后尝试使用最新版本的Luke查看索引,并且得到消息:
I'm trying to learn about Lucene, and hope to use Luke to investigate it. I tried building an index with the IndexFiles demo in Lucene 4.3, then tried viewing the index with the latest version of Luke, and I'm getting the message:
Invalid directory at the location, check console for more information. Last exception:
org.apache.lucene.index.IndexFormatTooNewException: Format version is not supported (resource: ChecksumIndexInput(MMapIndexInput(path="/home/lavin/sep20.index/segments_2"))): 1 (needs to be between 0 and 0)
任何想法出了什么问题以及如何解决?我的Lucene版本对Luke来说太新了吗?有什么方法可以告诉Lucene编写旧版本的索引吗?提前致谢,-马克
Any ideas what's wrong and how to fix? Is my version of Lucene too new for Luke to decipher? Is there a way I can tell Lucene to write an older version of the index? Thanks in advance,-- Mark
推荐答案
您可能正在使用luke的旧版本,原始维护者不再将其更新为Lucene的新版本.
you are probably using an older version of luke, the original maintainer no longer updates it to new versions of Lucene.
从此人获取最新信息.他保持最新状态.
Get the latest from this guy. He keeps it up to date.
这篇关于卢克说我的Lucene索引目录无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!