lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "rsingh@ambrac.nl" <rsi...@ambrac.nl>
Subject solr suggester not working with shards
Date Wed, 08 Oct 2014 06:47:55 GMT
I try to use the suggest component (solr 4.6) with multiple cores. 
I added a search component and a request handler in my solrconfig. 
That works fine for 1 core but querying my solr instance with the shards 
parameter does not work. 


<searchComponent class="solr.SpellCheckComponent" name="suggest">
    <lst name="spellchecker">
      <str name="name">suggestDictionary</str>
      <str name="classname">org.apache.solr.spelling.suggest.Suggester</str>
      <str
name="lookupImpl">org.apache.solr.spelling.suggest.fst.FSTLookupFactory</str>
      <str name="field">suggest</str>
      <float name="threshold">0.0005</float>
      <str name="buildOnCommit">true</str>	  
    </lst>
  </searchComponent>
  <requestHandler name="/suggest"
class="org.apache.solr.handler.component.SearchHandler">
    <lst name="defaults">
      <str name="echoParams">none</str>
      <str name="wt">xml</str>
      <str name="indent">false</str>	  
      <str name="spellcheck">true</str>
      <str name="spellcheck.dictionary">suggestDictionary</str>
      <str name="spellcheck.onlyMorePopular">true</str>
      <str name="spellcheck.count">5</str>
      <str name="spellcheck.collate">false</str>
      <str name="qt">/suggest</str>
      <str name="shards.qt">/suggest</str>
     <str
name="shards">localhost:8080/cores/core1,localhost:8080/cores/core2</str>
      <bool name="distrib">false</bool>
    </lst>
    <arr name="components">
      <str>suggest</str>
    </arr>
	  <shardHandlerFactory class="HttpShardHandlerFactory">
      <int name="socketTimeOut">1000</int>
      <int name="connTimeOut">5000</int>
    </shardHandlerFactory>    
  </requestHandler>



--
View this message in context: http://lucene.472066.n3.nabble.com/solr-suggester-not-working-with-shards-tp4163261.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message