Hello, the body from my previous mail was filtered out...
we need to migrate our lucene 5.5 indexes to version 8.11.1. fortunately i found the IndexUpgrader class which i didn't know yet. i tried to migrate from major version to major version. so i did java -cp lucene-core-6.6.6.jar;lucene-backward-codecs-6.6.6.jar org.apache.lucene.index.IndexUpgrader -delete-prior-commits -verbose "V:\\LuceneMigration\\5" next step java -cp lucene-core-7.7.3.jar;lucene-backward-codecs-7.7.3.jar org.apache.lucene.index.IndexUpgrader -delete-prior-commits -verbose "V:\\LuceneMigration\\5" and then java -cp lucene-core-8.11.1.jar;lucene-backward-codecs-8.11.1.jar org.apache.lucene.index.IndexUpgrader -delete-prior-commits -verbose "V:\\LuceneMigration\\5" the first two seems to work well. but with the last i get MS 0 [2022-01-12T14:04:24.248Z; main]: initDynamicDefaults spins=true maxThreadCount=1 maxMergeCount=6 IW 0 [2022-01-12T14:04:24.275Z; main]: init: hit exception on init; releasing write lock Exception in thread "main" org.apache.lucene.index.IndexFormatTooOldException: Format version is not supported (resource BufferedChecksumIndexInput(MMapIndexInput(path="V:\LuceneMigration\5\segments_91"))): This index was initially created with Lucene 6.x while the current version is 8.11.1 and Lucene only supports reading the current and previous major versions.. This version of Lucene only supports indexes created with release 7.0 and later. at org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:322) at org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:291) at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:1037) at org.apache.lucene.index.IndexUpgrader.upgrade(IndexUpgrader.java:167) at org.apache.lucene.index.IndexUpgrader.main(IndexUpgrader.java:78) Suppressed: org.apache.lucene.index.CorruptIndexException: checksum passed (7268b2f2). possibly transient resource issue, or a Lucene or JVM bug (resource=BufferedChecksumIndexInput(MMapIndexInput(path="V:\LuceneMigration\5\segments_91"))) at org.apache.lucene.codecs.CodecUtil.checkFooter(CodecUtil.java:466) at org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:434) ... 4 more did i anything wrong? thanks for help. regards Sascha --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org