lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lboutros <>
Subject Re: Can I set up a config-based distributed search
Date Mon, 11 Apr 2011 14:20:54 GMT
You can add to your search handler the "shards" parameter :

<requestHandler name="dist-search" class="solr.SearchHander">
<lst name "default">
<str name="shards"> host1/solr, host2/solr<str/>

Is is what you are looking for ?


2011/4/11 Ran Peled [via Lucene] <>

> 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
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>  To start a new topic under Solr - User, email
> To unsubscribe from Solr - User, click here<>.

View this message in context:
Sent from the Solr - User mailing list archive at
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message