Luke says my Lucene index directory is Invalid

无人久伴 提交于 2019-12-23 11:24:13

问题


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)

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


回答1:


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.



来源:https://stackoverflow.com/questions/20711604/luke-says-my-lucene-index-directory-is-invalid

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!