You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "rsingh@ambrac.nl" <rs...@ambrac.nl> on 2014/10/08 08:47:55 UTC

solr suggester not working with shards

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.

Re: solr suggester not working with shards

Posted by Varun Thacker <va...@gmail.com>.
Hi,

You have defined the suggester in the old way of implementing it but you do
mention the SuggestComponent. Can you try it out using the documentation
given here - https://cwiki.apache.org/confluence/display/solr/Suggester

Secondly how are you firing your queries?

On Wed, Oct 8, 2014 at 12:39 PM, rsingh@ambrac.nl <rs...@ambrac.nl> wrote:

> One more thing :
>
> suggest is not working  with multiple cores using  shard but  'did you
> mean'
> (spell check ) is working fine with multiple cores.
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/solr-suggester-not-working-with-shards-tp4163261p4163265.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>



-- 


Regards,
Varun Thacker
http://www.vthacker.in/

Re: solr suggester not working with shards

Posted by "rsingh@ambrac.nl" <rs...@ambrac.nl>.
One more thing :

suggest is not working  with multiple cores using  shard but  'did you mean'
(spell check ) is working fine with multiple cores.



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