lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <>
Subject Re: How to stop searches to solr while full data import is going in SOLR
Date Fri, 20 May 2016 22:21:11 GMT
There really isn't any good way to do this built in that I know of.

If your "clusters" are separate Solr collections (SolrCloud), you
can use collection aliasing to point queries at one or the other

This presumes you have some control over when DIH runs
however. The idea is that you have an alias that you use for
searching. You switch this alias to the "cold" cluster (the one
that's not changing) and trigger a DIH run to to the "hot" cluster.
Once that's done, change the alias to point to it or, perhaps,


On Wed, May 18, 2016 at 11:27 PM, preeti kumari <> wrote:
> Hi,
> I am using solr 5.2.1. I have two clusters Primary A and Primary B.
> I was pinging servers to check whether they are up or not to route the
> searches to working cluster A or B.
> But while I am running Full data import in Primary cluster A , There is not
> all the data and pinging servers will not help as my solr servers would be
> responding.
> But I want my searches to go to Cluster B instead of A.
> Please help me with a way from solr which can say solr not ready to support
> searches as full data import is running there.
> Thanks
> Preeti

View raw message