There is an open issue somewhere for this type of support. We don't have a 
simple way to do it currently.

We also will be looking at adding index alias', which is probably another 
feature you could use to solve this.

Currently, you would need some kind of load balancer to achieve this nicely I 
think.

- Mark

On Feb 20, 2013, at 10:08 AM, Shankar Sundararaju <shan...@ebrary.com> wrote:

> Hi All,
> 
> I am using Solr 4.1.
> 
> I have a Solr cluster of 3 leaders and 3 replicas hosting collection1
> consisting of thousands of documents currently serving the search requests.
> I would like re-index all the documents in another collection, say
> collection2 in this same solr cluster and swap it with collection1.
> 
> I would think this is a very common use case - we don't want any service
> interruption to our customer's search requests. So, can someone list the
> steps and commands involved to achieve the above?
> 
> I did take a look at collection API. Should collection2 have exact same
> configurations as collection1, I mean number of leaders and replicas? How
> do I swap a collection? There does not seem to be any API for that. From
> admin GUI, I can only swap individual cores. This is not good - I would
> like to know if there is any atomic way to swap an entire collection.
> Another problem is - collections API does not seem to give me control over
> where each leaders and replicas will be created for the new collection in
> the cluster. Unless I have a control over this, how am I going to swap if I
> *have* to use only core swapping feature.
> 
> I did check out other email threads on this topic, but none seems to be
> very clear. Thanks a lot for your help.
> 
> -Shankar

Reply via email to