lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Rochkind <>
Subject Re: Can I set up a config-based distributed search
Date Mon, 11 Apr 2011 16:12:10 GMT
I have not worked with shards/distributed, but I think you can probably 
specify them as defaults in your requesthandler in your solrconfig.xml 

Somewhere there is (or was) a wiki page on this I can't find right now. 
There's a way to specify (for a particular request handler) a default 
parameter value, such as for 'shards', that will be used if none were 
given with the request. There's also a way to specify an invariant that 
will always be used even if something else is passed in on the request.

Ah, found it:

On 4/11/2011 8:31 AM, Ran Peled wrote:
> In the Distributed Search page (
>, it is documented that in
> order to perform a distributed search over a sharded index, I should use the
> "shards" request parameter, listing the shards to participate in the search
> (e.g. ?shards=localhost:8983/solr,localhost:7574/solr).   I am planning a
> new pretty large index (1B+ items).  Say I have a 100 shards, specifying the
> shards on the request URL becomes unrealistic due to length of URL.  It is
> also redundant to do that on every request.
> Is there a way to specify the list of shards in a configuration file,
> instead of on the query URL?  I have seen references to relevant config in
> SolrCloud, but as I understand it planned to be released only in Solr 4.0.
> Thanks,
> Ran

View raw message