CorruptIndexException 和NoSuchMethodError

    技术2026-01-05  5

     

    lucene:org.apache.lucene.index.CorruptIndexException: Unknown format version: -9

    java .lang .NoSuchMethodError : org .apache .lucene .store .FSDirectory .getDirectory(Ljava /io /File ;)Lorg /apache /lucene /store /FSDirectory ;

     

     

    以上错误根据我自身经历是因为在建立索引和使用索引中lucene的版本不一致,只要确保了版本一致以上错误就没有了。。。

    最新回复(0)