I tried put "shards" into default request handler. But now each time if search, solr hangs forever. So what's the correct solution?
Thanks. <requestHandler name="standard" class="solr.SearchHandler" default="true"> <!-- default values for query parameters --> <lst name="defaults"> <str name="echoParams">explicit</str> <int name="rows">10</int> <str name="fl">*</str> <str name="version">2.1</str> <str name="shards">localhost:7500/solr,localhost:7501/solr,localhost:7502/solr,localhost:7503/solr,localhost:7504/solr,localhost:7505/solr,localhost:7506/solr</str> <!-- --> </lst> </requestHandler> On Thu, Jun 10, 2010 at 11:48 AM, Scott Zhang <macromars...@gmail.com>wrote: > Hi. I am running distributed search on solr. > I have 70 solr instances. So each time I want to search I need to use > ?shards=localhost:7500/solr,localhost......7620/solr > > It is very long url. > > so how can I encode shards into config file then i don't need to type each > time. > > > thanks. > Scott >