Hi.all.

We are running 3 shards,2 replicas solr cloud(Ver 6.3)
which is under control by Zoo Keeper(Ver 3.4.9).

We have a problem that suggesting by SpellCheck Component
do not work.I confirmed it do work well on single node.

When not using Solr Cloud,I can get the expected result by
sending the query below.

http://hostname:8983/solr/collection/suggest_ja?spellcheck.q=a&wt=json&indent=true&spellcheck.collate=true

But when using Solr Cloud,I get no words suggested.

My solrconfig.xml is as below.

  <searchComponent class="solr.SpellCheckComponent" name="suggest_ja">
    <lst name="spellchecker">
      <str name="name">suggest_ja</str>
      <str name="classname">org.apache.solr.spelling.suggest.Suggester</str>
      <str
name="lookupImpl">org.apache.solr.spelling.suggest.fst.AnalyzingLookupFactory</str>
      <str name="storeDir">suggest_ja</str>
      <str name="buildOnStartup">true</str>
      <str name="buildOnCommit">true</str>
      <str name="comparatorClass">freq</str>
      <str name="field">suggest</str>
      <str name="suggestAnalyzerFieldType">text_ja_romaji</str>
      <bool name="exactMatchFirst">true</bool>
    </lst>
    <str name="queryAnalyzerFieldType">text_ja_romaji</str>
  </searchComponent>

  <requestHandler name="/suggest_ja"
class="org.apache.solr.handler.component.SearchHandler" startup="lazy">
    <lst name="defaults">
      <str name="spellcheck">true</str>
      <str name="spellcheck.dictionary">suggest_ja</str>
      <str name="spellcheck.collate">false</str>
      <str name="spellcheck.count">10</str>
      <str name="spellcheck.onlyMorePopular">true</str>
      <bool name="terms">true</bool>
      <bool name="terms.distrib">false</bool>
      <str name="terms.fl">suggest</str>
    </lst>
 <arr name="components">
   <str>suggest_ja</str>
      <str>terms</str>
    </arr>
  </requestHandler>


How do I solve this?

Reply via email to