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/> </lst> </requestHandler>
Is is what you are looking for ? Ludovic. 2011/4/11 Ran Peled [via Lucene] < ml-node+2806331-346788257-383...@n3.nabble.com> > In the Distributed Search page ( > http://wiki.apache.org/solr/DistributedSearch), 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: > > http://lucene.472066.n3.nabble.com/Can-I-set-up-a-config-based-distributed-search-tp2806331p2806331.html > To start a new topic under Solr - User, email > ml-node+472068-1765922688-383...@n3.nabble.com > To unsubscribe from Solr - User, click > here<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=472068&code=Ym91dHJvc2xAZ21haWwuY29tfDQ3MjA2OHw0Mzk2MDUxNjE=>. > > ----- Jouve France. -- View this message in context: http://lucene.472066.n3.nabble.com/Can-I-set-up-a-config-based-distributed-search-tp2806331p2806763.html Sent from the Solr - User mailing list archive at Nabble.com.