简体   繁体   中英

Best approach for merging solr indexes of size 60GB and 10GB in minimum time?

Lets say, I have a Solr Index of 60GB. I want to merge with it a 10GB Solr Index. What is the best way to merge them in minimum time. Can somebody give me a performance benchmark for how fast the merging process can be? I'm using JAVA to merge the index directories.

Thank you very much!

I would use Lucene's IndexMergeTool to merge these indexes. This class uses IndexWriter#addIndexes under the hood in case you need to embed this functionality in another tool. If you don't need your index to be optimized in the end, you could even use IndexWriter#addIndexesNoOptimize which may be faster.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM