Hi,

The spellcheck component must be enabled in your default request handler 
otherwise your suggestions list is empty.

Cheers,

 
 
-----Original message-----
> From:fabio curti <fabio.cu...@gmail.com>
> Sent: Fri 22-Jun-2012 09:34
> To: solr-user@lucene.apache.org
> Subject: Re: Solr spellchecking fails on sharded query
> 
> Hi,
> i try solr shards configuration ( SolrCloud ) and request settings as
> suggested in
> http://wiki.apache.org/solr/SpellCheckComponent#Distributed_Search_Support for
> shards spelling.
> Suggestion is empty as Eric said.
> 
> Any idea?
> 
> Fabio
> 
> 2012/6/19 Eric Wilson <wilson.eri...@gmail.com>
> 
> > I have a Solr application that is distributed into 11 shards, using Solr
> > version 4.0.0.2011.07.26.16.34.16
> >
> > In the solrconfig.xml for each shard, I have configured a spellcheck
> > component:
> >
> >    <searchComponent name="spellcheck" class="solr.SpellCheckComponent">
> >
> >      <str name="queryAnalyzerFieldType">textSpell</str>
> >
> >      <lst name="spellchecker">
> >
> >        <str name="name">cn_spell</str>
> >
> >        <str name="field">company_name_spell</str>
> >
> >        <float name="threshold">0.0001</float>
> >
> >        <str name="buildOnOptimize">true</str>
> >
> >        <str name="spellcheckIndexDir">./spellchecker_cn_spell</str>
> >
> >      </lst>
> >
> >    </searchComponent>
> >
> > I have built the dictionary for each shard, and verified that each shard
> > will return suggestions for misspellings. Moreover, it is evident that a
> > different dictionary is being used for the various shards.
> >
> > The problem comes when I submit a sharded query. In that case the result
> > comes back with the following:
> >
> >    <lst name="spellcheck">
> >      <lst name="suggestions"/>
> >    </lst>
> >
> > In other words, the list of words for which there are suggestions is empty.
> >
> > Is there a trick to sharded spellchecking? I appreciate any suggestions.
> >
> > Eric
> >
> 

Reply via email to