On 7/18/2014 12:51 AM, search engn dev wrote: > From my understanding solr and solrj works as below, > 1. LBHttpSolrServer keeps pinging above list of servers and maintains list > of live servers. > 2. Every time query arives it picks one server from the list (round-robin > fashion) > 3. Sends query to selected server server. > 4. When query arives at solr node it internally distributes query to > remaining shards , collects,merges,ranks results and sends response back to > the user.
The first three sound like what LBHttpSolrServer probably does, though I haven't looked very deeply at the code, so I cannot say for sure. The fourth item is exactly how SolrCloud behaves. If you are indeed running SolrCloud, you should not be using LBHttpSolrServer. Instead, use the cloud-aware client, CloudSolrServer. It will work better than LBHttpSolrServer. Thanks, Shawn