java - Lucene Index doesn't work in new Eclipse project throwing exception: "IndexFormatTooNewException" -


i have working eclipse project implementing lucene index using static class instance of index, works fine.

now created new eclipse project , tried use class in project access lucene index. if call static class of other project, following exception:

org.apache.lucene.index.indexformattoonewexception: format version not supported (resource: mmapindexinput(path="e:\data\domaincorpus\index\sentenceindex_domain\_yv.cfs") [slice=_yv.nvm]): 1 (needs between 0 , 0) @ org.apache.lucene.codecs.codecutil.checkheadernomagic(codecutil.java:148) @ org.apache.lucene.codecs.codecutil.checkheader(codecutil.java:130) @ org.apache.lucene.codecs.lucene42.lucene42docvaluesproducer.<init>(lucene42docvaluesproducer.java:84) @ org.apache.lucene.codecs.lucene42.lucene42normsformat.normsproducer(lucene42normsformat.java:57) @ org.apache.lucene.index.segmentcorereaders.<init>(segmentcorereaders.java:141) @ org.apache.lucene.index.segmentreader.<init>(segmentreader.java:56) @ org.apache.lucene.index.standarddirectoryreader$1.dobody(standarddirectoryreader.java:62) @ org.apache.lucene.index.segmentinfos$findsegmentsfile.run(segmentinfos.java:783) @ org.apache.lucene.index.standarddirectoryreader.open(standarddirectoryreader.java:52) @ org.apache.lucene.index.directoryreader.open(directoryreader.java:66) @ com.ibm.armin.stores.sentencestore.<init>(sentencestore.java:41) @ com.ibm.armin.stores.sentencestore.getinstance(sentencestore.java:76) @ com.ibm.termextract.model.impl.tester.main(tester.java:9) exception in thread "main" java.lang.nullpointerexception @ com.ibm.termextract.model.impl.tester.main(tester.java:9) 

i don't understand why exception raised, because don't use other lucene version. i'm able open index out of 1 project, not out of newly created one, although i'm using same code.

hopefully of have ideas or experienced same problem.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -