如何将Solr的Lucene索引从4.6版升级到8.8.2版?

如何将Solr的Lucene索引从4.6版升级到8.8.2版?,solr,full-text-search,Solr,Full Text Search,我使用以下命令从Solr Apache版本4.4.0->5.5.0->6.6.0->7.7.3升级: java-cp D:\tool\solr-…0\server\solr webapp\webapp\WEB-INF\lib*org.apache.lucene.index.IndexUpgrader D:\tool\solr-。0\example\solr\collection1\data\index 但是当我继续从7.7.3->8.8.2升级时,我遇到了一个错误: 线程“main”org.ap

我使用以下命令从Solr Apache版本4.4.0->5.5.0->6.6.0->7.7.3升级:

java-cp D:\tool\solr-…0\server\solr webapp\webapp\WEB-INF\lib*org.apache.lucene.index.IndexUpgrader D:\tool\solr-。0\example\solr\collection1\data\index

但是当我继续从7.7.3->8.8.2升级时,我遇到了一个错误:

线程“main”org.apache.lucene.index.indexformatooldexception中出现异常:不支持格式版本 (resource BufferedChecksumIndexInput(MMapIndexInput(path=“D:\tool\solr-7.7.3\server\solr\collection\data\index\segments\u 7”)): 该索引最初是使用Lucene 6.x创建的,而当前版本是8.8.2,Lucene仅支持 正在阅读当前和以前的主要版本。。此版本的Lucene仅支持使用7.0版及更高版本创建的索引


我了解到Solr8不支持版本6及以下版本的IndexUpgrade。除了从solr 7重新编制索引,还有其他方法吗。目前,我没有solr 4中的原始索引,因此无法重新编制索引。

您是否能够从solr中的数据重新编制索引?可能不会,但如果您不再拥有原始数据,这将是唯一的方法。