Я пытаюсь обновить индекс Lucene с 4,6 до 8,0,0.Когда я пытаюсь обновить инструмент, используя:
java -cp lucene-core.jar:lucene-backward-codecs.jar \
org.apache.lucene.index.IndexUpgrader -delete-prior-commits \
/scratch/***/workspaces/trunk/****/indexes/4.6/
Сценарий работает нормально с 4.6
до 5.5.5
, 5.5.5
до 6.6.6
, 6.6.6
до 7.7.2
.Но когда я пытаюсь перейти с 7.7.2
до 8.0.0
, возникает ошибка, как показано ниже.
Exception in thread "main" org.apache.lucene.index.IndexFormatTooOldException: Format version is not supported (resource BufferedChecksumIndexInput(MMapIndexInput(path="/scratch/**/workspaces/trunk/**/indexes/4.6/sd/segments_9"))): This index was initially created with Lucene 6.x while the current version is 8.0.0 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:318)
at org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:289)
at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:846)
at org.apache.lucene.index.IndexUpgrader.upgrade(IndexUpgrader.java:167)
at org.apache.lucene.index.IndexUpgrader.main(IndexUpgrader.java:78)
Мы хотим перейти с 4.6
до 8.0.0
.До 7.7.2
он обновляется без проблем, но когда я использую для Lucene версию 7.7.2
, в моем коде индексация работает нормально.Но Lucene 8.0.0
не работает.
Пожалуйста, помогите мне в обновлении 8.0.0