amritasaha1812 / CSQA_Code

59 stars 20 forks source link

Lucene index no longer supported #13

Closed dungtn closed 5 years ago

dungtn commented 5 years ago

Hi @amritasaha1812,

I'm trying to replicate the experiments and I have this error:

org.apache.lucene.index.IndexFormatTooOldException: Format version is not supported (resource BufferedChecksumIndexInput(SimpleFSIndexInput(path="/Users/dthai/Codes/csqa-rl/CSQA_Code/lucene_index_9m/segments_1"))): 3 (needs to be between 6 and 9). This version of Lucene only supports indexes created with release 6.0 and later.

Can you share the code to generate Lucene index or upload the generated index of the newer version?

Thank you!

yaoleo commented 5 years ago

I met the same problem. how to fix it?@dungtn @amritasaha1812

Thank you!

amritasaha1812 commented 5 years ago

Hi... please use this code to create lucene index https://github.com/amritasaha1812/CSQA_Code/blob/master/createLuceneIndex.py, for newer versions you might have to edit this code.

yaoleo commented 5 years ago

Thank you. RE-INSTALL pylucene-4.10.1-1 is useful.