The one thing that jumps out is you have "spellcheck.count" set to 1.  Try 10 
and see if you get results.  The spellcherker uses a 2-pass algorithm and if 
the "count" is too small, all the good suggestions can get eliminated in the 
first pass.  So you often need a "count" of maybe 10 even if you only want 1 
suggestion.

James Dyer
E-Commerce Systems
Ingram Content Group
(615) 213-4311


-----Original Message-----
From: geeky2 [mailto:gee...@hotmail.com] 
Sent: Monday, February 13, 2012 11:08 AM
To: solr-user@lucene.apache.org
Subject: spellcheck configuration not providing suggestions or corrections



Hello,

environment: solr 3.5 and centOS

i have reviewed the wiki for http://wiki.apache.org/solr/SpellCheckComponent
and

http://wiki.apache.org/solr/SpellCheckingAnalysis.

i read the related material in the solr book (smiley).

after doing the configuration in schema.xml and solrconfig.xml - i am NOT
able to get the spellchecker to provide ANY suggestions on mis-spelled
words. i get zero results and zero suggestions.

example search sent to solr.  in this example - i am issuing a search for
"gast" in hopes that i will get a suggestion for gasket or at least
something.

http://hfsthssolr1.intra.searshc.com:8180/solrpartscat/core1/select/?q=itemDescSpell%3Agast%0D%0A%0D%0A&version=2.2&start=0&rows=10&indent=on&spellcheck=true&spellcheck.build=true



pulled from schema.xml

  <fieldType name="textSpell" class="solr.TextField"
positionIncrementGap="100" stored="false" multiValued="true">
    <analyzer type="index">
      <tokenizer class="solr.StandardTokenizerFactory"/>
      <filter class="solr.LowerCaseFilterFactory"/>
      <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"
ignoreCase="true" expand="true"/>
      <filter class="solr.StopFilterFactory" ignoreCase="true"
words="stopwords.txt"/>
      <filter class="solr.StandardFilterFactory"/>
      <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
    </analyzer>
    <analyzer type="query">
      <tokenizer class="solr.StandardTokenizerFactory"/>
      <filter class="solr.LowerCaseFilterFactory"/>
      <filter class="solr.StopFilterFactory" ignoreCase="true"
words="stopwords.txt"/>
      <filter class="solr.StandardFilterFactory"/>
      <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
    </analyzer>
  </fieldType>


    <field name="itemDescSpell" type="textSpell"/>


  <copyField source="itemDesc" dest="itemDescSpell"/>


pulled from solrconfig.xml

  <requestHandler name="/search"
class="org.apache.solr.handler.component.SearchHandler">
    <lst name="defaults">
    
    <str name="spellcheck.dictionary">default</str>
    
    <str name="spellcheck.onlyMorePopular">false</str>
    
    <str name="spellcheck.extendedResults">false</str>
    
    <str name="spellcheck.count">1</str>
      <str name="echoParams">explicit</str>
    </lst>
    <arr name="last-components">
      <str>spellcheck</str>
    </arr>
  </requestHandler>

  <searchComponent name="spellcheck" class="solr.SpellCheckComponent">

    <str name="queryAnalyzerFieldType">textSpell</str>

    

    
    <lst name="spellchecker">
      <str name="name">default</str>
      <str name="field">itemDescSpell</str>
      <str name="buildOnOptimize">true</str>
      <str name="spellcheckIndexDir">spellchecker_mark</str>
      
    </lst>

    
    

    
    

    
    
  </searchComponent>




any help or suggestions would be appreciated,
mark




--
View this message in context: 
http://lucene.472066.n3.nabble.com/spellcheck-configuration-not-providing-suggestions-or-corrections-tp3740877p3740877.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to