Can you elaborate on "doesn't work" when you put it in the /search handler?

You get an error in the logs? Nothing happens?

On 02/25/2010 03:47 PM, Jeffrey Zhao wrote:
Hi Mark,

Thanks for your reply. I did make a new handler as following, but it does
not work, anything wrong with my configuration?

Thanks,

  <requestHandler name="search" class="solr.SearchHandler">
       <!-- default values for query parameters -->
        <lst name="defaults">
          <str>
name="shards">202.161.196.189:8080/solr,localhost:8080/solr</str>
        </lst>
      <arr name="components">
        <str>query</str>
        <str>facet</str>
        <str>spellcheck</str>
        <str>debug</str>
      </arr>
</requestHandler>



From:   Mark Miller<markrmil...@gmail.com>
To:     solr-user@lucene.apache.org
Date:   25/02/2010 03:41 PM
Subject:        Re: Solr 1.4 distributed search configuration



On 02/25/2010 03:32 PM, Jeffrey Zhao wrote:
How do define a new search handler with a shards parameter?  I defined
as
following way but it doesn't work. If I put the shards parameter in
default handler, it seems I got an infinite loop.


<requestHandler name="standard" class="solr.SearchHandler"
default="true">
      <!-- default values for query parameters -->
       <lst name="defaults">
         <str name="echoParams">explicit</str>
       </lst>
    </requestHandler>

<requestHandler name="search" class="solr.SearchHandler">
      <!-- default values for query parameters -->
       <lst name="defaults">
         <str
name="shards">202.161.196.189:8080/solr,localhost:8080/solr</str>
       </lst>
     <arr name="components">
       <str>query</str>
       <str>facet</str>
       <str>spellcheck</str>
       <str>debug</str>
     </arr>
    </requestHandler>


Thanks,

Not seeing this on the wiki (it should be there), but you can't put the
shards param on the default search handler without causing an infinite
loop - you have to make a new request handler and put it on that.



--
- Mark

http://www.lucidimagination.com



Reply via email to