Try using something larger than 2 for alternativeTermCount.  5 is probably ok 
here.  If that doesn't work, then post the exact query you are using and the 
full extended spellcheck results.

James Dyer
Ingram Content Group


-----Original Message-----
From: fabio.bozzo [mailto:f.bo...@3-w.it] 
Sent: Tuesday, January 27, 2015 3:59 PM
To: solr-user@lucene.apache.org
Subject: RE: Suggesting broken words with solr.WordBreakSolrSpellChecker

I have this in my solrconfig:

<requestHandler name="/select" class="solr.SearchHandler">

                <lst name="defaults">
                        <str name="echoParams">explicit</str>
                        <int name="rows">10</int>
                        <str name="df">catch_all</str>

                        <str name="spellcheck">on</str>
                        <str name="spellcheck.dictionary">default</str>
                        <str name="spellcheck.dictionary">wordbreak</str>
                        <str name="spellcheck.extendedResults">false</str>
                        <str name="spellcheck.count">5</str>
                        <str name="spellcheck.alternativeTermCount">2</str>
                        <str name="spellcheck.maxResultsForSuggest">100</str>
                        <str name="spellcheck.collate">true</str>
                        <str name="spellcheck.collateExtendedResults">true</str>
                        <str name="spellcheck.maxCollationTries">5</str>
                        <str name="spellcheck.maxCollations">3</str>
                </lst>

                <arr name="last-components">
                        <str>spellcheck</str>
                </arr>

        </requestHandler>

Although my spellchecker does work, suggesting for misspelled terms, it
doesn't work for the example above:
I mean terms which are both valid, ("gopro"=100 docs; "go pro"=150 'others'
docs).
I want to suggest "gopro" for "go pro" search term and vice-versa, even if
they're both perfectly valid terms in the index. Thank you



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Suggesting-broken-words-with-solr-WordBreakSolrSpellChecker-tp4182172p4182398.html
Sent from the Solr - User mailing list archive at Nabble.com.


Reply via email to