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 Shamik Bandopadhyay <sh...@gmail.com> on 2013/10/07 23:47:20 UTC

How to achieve distributed spelling check in SolrCloud ?

Hi,

  We are in the process of transitioning to SolrCloud (4.4) from
Master-Slave architecture (4.2) . One of the issues I'm facing now is with
making spell check work. It only seems to work if I explicitly set
distrib=false. I'm using a custom request handler and included the spell
check option.

<str name="spellcheck">on</str>
   <str name="spellcheck.collate">true</str>
   <str name="spellcheck.onlyMorePopular">false</str>
   <str name="spellcheck.extendedResults">false</str>
   <str name="spellcheck.count">1</str>
   <str name="spellcheck.dictionary">default</str>
  </lst>
  <!-- append spellchecking to our list of components -->
  <arr name="last-components">
   <str>spellcheck</str>
  </arr>

The spellcheck component has the usual configuration.

The spell check is part of the request handler which is being used to
executed a distributed query.. I can't possibly add distrib=false.

Just wondering if there's a way to address this.

Any pointers will be appreciated.

-Thanks,
Shamik

Re: How to achieve distributed spelling check in SolrCloud ?

Posted by Jason Hellman <jh...@innoventsolutions.com>.
The shards.qt parameter is the easiest one to forget, with the most dramatic of consequences!

On Oct 8, 2013, at 11:10 AM, shamik <sh...@gmail.com> wrote:

> James,
> 
>  Thanks for your reply. The "shards.qt" did the trick. I read the
> documentation earlier but was not clear on the implementation, now it
> totally makes sense.
> 
> Appreciate your help.
> 
> Regards,
> Shamik
> 
> 
> 
> --
> View this message in context: http://lucene.472066.n3.nabble.com/RE-How-to-achieve-distributed-spelling-check-in-SolrCloud-tp4094113p4094137.html
> Sent from the Solr - User mailing list archive at Nabble.com.


RE: How to achieve distributed spelling check in SolrCloud ?

Posted by shamik <sh...@gmail.com>.
James,

  Thanks for your reply. The "shards.qt" did the trick. I read the
documentation earlier but was not clear on the implementation, now it
totally makes sense.

Appreciate your help.

Regards,
Shamik



--
View this message in context: http://lucene.472066.n3.nabble.com/RE-How-to-achieve-distributed-spelling-check-in-SolrCloud-tp4094113p4094137.html
Sent from the Solr - User mailing list archive at Nabble.com.

RE: How to achieve distributed spelling check in SolrCloud ?

Posted by "Dyer, James" <Ja...@ingramcontent.com>.
Shamik,

Are you using a request handler other than "/select", and if so, did you set "shards.qt" in your request?  It should be set to the name of the request handler you are using.

See http://wiki.apache.org/solr/SpellCheckComponent?#Distributed_Search_Support

James Dyer
Ingram Content Group
(615) 213-4311


-----Original Message-----
From: Shamik Bandopadhyay [mailto:shamikb@gmail.com] 
Sent: Monday, October 07, 2013 4:47 PM
To: solr-user@lucene.apache.org
Subject: How to achieve distributed spelling check in SolrCloud ?

Hi,

  We are in the process of transitioning to SolrCloud (4.4) from
Master-Slave architecture (4.2) . One of the issues I'm facing now is with
making spell check work. It only seems to work if I explicitly set
distrib=false. I'm using a custom request handler and included the spell
check option.

<str name="spellcheck">on</str>
   <str name="spellcheck.collate">true</str>
   <str name="spellcheck.onlyMorePopular">false</str>
   <str name="spellcheck.extendedResults">false</str>
   <str name="spellcheck.count">1</str>
   <str name="spellcheck.dictionary">default</str>
  </lst>
  <!-- append spellchecking to our list of components -->
  <arr name="last-components">
   <str>spellcheck</str>
  </arr>

The spellcheck component has the usual configuration.

The spell check is part of the request handler which is being used to
executed a distributed query.. I can't possibly add distrib=false.

Just wondering if there's a way to address this.

Any pointers will be appreciated.

-Thanks,
Shamik