Reputation: 1194
I have a scenario that I need to merge the solr indexes online. I have a primary solr index of 100 Gb and it is serving the end users and it can't go offline for a moment. Everyday new lucene indexes(2 GB) are generated separately.
I have tried Merging Indexes: coreadmin
Even I tried the IndexWriter API AddIndexes. But no luck.
And it will create a new core or new folder. which means it will copy 100Gb every time to a new folder.
Is there a way I can do a segment level merging?
Upvotes: 3
Views: 474
Reputation: 1758
Your question is about merging two cores.
I will answer for solr5.
You can merge with the core api. You can merge with lucene outsite from solr, create a core and then switch with the old one.
If you are using SolrCloud you can use a list of cores for your collection via ALIAS or Migrate Documents
from new core to your central core.
Upvotes: 0