The SearchStax® Frequently Asked Questions page includes the following approved question and answer about our Apache Solr Cloud services.

Identical Queries Produce Inconsistent Results


Solr clients occasionally report that the same query produces inconsistent results when run repeatedly! This complaint is not a common one, but it alarms people when they see it.

The load balancer of a Solr cluster sends incoming queries to the Solr nodes on a rotating or random basis. A query may be sent to node 1 on the first try, but may go to node 2 the next time.

If the replicas for a collection are not fully synchronized across the nodes, search results can be inconsistent.

Anytime a document gets indexed, the replicas will be out of sync temporarily. Heavy system loads (indexing, querying) can delay replication. This balance in priorities is controlled by Solr itself, and is not a mechanism that SearchStax can configure. However, when system load eases again, the replicas should rebalance quickly.


Solr replication is a complex mechanism. On the rare occasions when the replication service fails, there is little point in trying to pinpoint the exact cause. The cure is to do a rolling restart of the cluster, which relaunches the replication service. SearchStax Support engineers will be happy to help you with this step, which does not involve down time.

Will It Happen Again?

A replication service failure is a rare event that does not usually become a chronic problem.


If you suspect a replication failure, how can you verify it yourself? The replicas of a collection should all contain the same number of documents. When they don’t, we have identified the problem.

It is easy to check the number of documents in individual replicas. Go into the Solr Dashboard and select a collection. Open up shard1, and look for the names of the replicas. (You might want to refer to our page on Solr terminology.)

SearchStax Solr Replication

Use the cluster’s Solr Endpoint and the replica names to construct queries in this format:

<Solr Endpoint><Replica Name>/select?q=*:*&rows=0

For example,*:*&rows=0

Paste this URL into the address field of a web browser and observe the number of documents in that replica. (Note that IP Filtering and Solr Basic Auth security will apply to this request.)

SearchStax Solr Replication

Perform the same test for the other replica. If the numFound figures don’t match, it’s time to restart the system.

Feel free to ask for help. We have people standing by.

Was this article helpful?

We love to answer questions!

Please contact the SearchStax Support Desk immediately if you have any question about Solr Cloud deployments.

Return to Frequently Asked Questions.