Rakhi Khatwani wrote:
Hi,
     I read the following article:
http://www.lucidimagination.com/Community/Hear-from-the-Experts/Articles/Scaling-Lucene-and-Solr
its mentioned that   its much easier to set the shards parameter for your
SearchHandler in solrcofig.xml.

i also went through:
http://www.nabble.com/newbie-question-on-SOLR-distributed-searches-with-many-%22shards%22-td20687487.html
but it gives a wage idea about setting the shards. particularly the syntax.

Can anyone given an example of setting the shards parameter in
solrconfig.xml.

Regards,
Raakhi

<requestHandler name="standard" class="solr.SearchHandler" default="true">
 <!-- default values for query parameters -->

 <lst name="defaults">
 <str name="echoParams">explicit</str>
 <str name="shards">localhost:8983/solr,localhost:7574/solr</str>
</lst>
</requestHandler>

Thats an example of the syntax though. Don't do it on the standard request handler or you will create an infinite loop. Define a different handler.
--
- Mark

http://www.lucidimagination.com



Reply via email to