On 4/21/2014 7:21 AM, ku3ia wrote: > Hi all. I'd reviewed > https://cwiki.apache.org/confluence/display/solr/Distributed+Requests > > but have a question. Does SolrCloud support preference search requests, like > Elasticsearch engine? > http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-preference.html > > I'm interesting at > _primary > The operation will go and be executed only on the primary shards. > > Can it be done with SolrCloud (search requests only on leaders)? Thanks.
SolrCloud does have some limited ability in this area, as you've discovered in the reference guide. Currently there is nothing available to limit the search to only the leaders or to automatically choose local resources. http://wiki.apache.org/solr/SolrCloud#Distributed_Requests I have opened SOLR-6001 in the Jira tracker. https://issues.apache.org/jira/browse/SOLR-6001 Thanks, Shawn