I have files with FST's created with lucene 5.1.0.
After upgrading to lucene 8.9.0 I get exception when I am trying to read FST from file:
org.apache.lucene.index.IndexFormatTooOldException: Format version is not supported (resource org.apache.lucene.store.InputStreamDataInput@34ce8af7): 4 (needs to be between 6 and 7). This version of Lucene only supports indexes created with release 6.0 and later.
Is there any way to upgrade old FST files to new format?
I solved it this way.
Write all content from FST to text file:
Change lucene version to new and read content from file: