now I have some suggest for single word by WFSTLookupFactory

  <searchComponent class="solr.SpellCheckComponent" name="suggest">
    <lst name="spellchecker">
      <str name="name">suggest</str>
      <str name="classname">org.apache.solr.spelling.suggest.Suggester</str>
      <str
name="lookupImpl">org.apache.solr.spelling.suggest.fst.WFSTLookupFactory</str>
      <str name="field">name</str>
      <float name="threshold">0.005</float>
      <str name="buildOnCommit">true</str>
       <str name="spellcheckIndexDir">./suggester</str>
       <bool name="exactMatchFirst">true</bool>
    </lst>
      ....
    <searchComponent>

  <requestHandler class="org.apache.solr.handler.component.SearchHandler"
name="/suggest">
    <lst name="defaults">
      <str name="spellcheck">true</str>
      <str name="spellcheck.dictionary">suggest</str>
      
      <str name="spellcheck.onlyMorePopular">true</str>
      <str name="spellcheck.count">5</str>
      <str name="spellcheck.collate">true</str>
      <str name="spellcheck.maxCollations">5</str>
    </lst>
    <arr name="last-components">
      <str>suggest</str>
    </arr>
  </requestHandler>


Now... i would add multiple words suggester by WordBreakSolrSpellChecker,
and so I add to my conf 

<searchComponent class="solr.SpellCheckComponent" name="suggest">
...
    <lst name="spellchecker">
      <str name="name">wordbreak</str>
      <str
name="classname">org.apache.solr.spelling.WordBreakSolrSpellChecker</str>      
      <str name="field">name</str>
      <str name="combineWords">true</str>
      <str name="breakWords">true</str>
      <int name="maxChanges">10</int>
      <str name="buildOnCommit">true</str>
      <str name="spellcheckIndexDir">./suggester</str>
    </lst>
</searchComponent>

and on requestHandler

<requestHandler class="org.apache.solr.handler.component.SearchHandler"
name="/suggest">
    <lst name="defaults">
      <str name="spellcheck">true</str>
      
      <str name="spellcheck.dictionary">wordbreak</str>
     ....
</requestHandler>

but I don't receive any suggestion :-(

any ideas?



-----
Complicare è facile, semplificare é difficile. 
Complicated is easy, simple is hard.
quote: http://it.wikipedia.org/wiki/Bruno_Munari
--
View this message in context: 
http://lucene.472066.n3.nabble.com/how-make-a-suggester-tp4020540p4027057.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to