Hi,

I am using Suggester component, as advised in Solr3 book (using solr3.5):
        <searchComponent name="suggest" class="solr.SpellCheckComponent">
                <lst name="spellchecker">
                        <str name="name">a_suggest</str>
                        <str 
name="classname">org.apache.solr.spelling.suggest.Suggester</str>
                        <str
name="lookupImpl">org.apache.solr.spelling.suggest.fst.FSTLookup</str>
                        <str name="field">a_suggest</str>
                        <str name="buildOnCommit">true</str>
                        <int name="weightBuckets">100</int>
                </lst>
        </searchComponent>
        <requestHandler name="/suggest" class="solr.SearchHandler">
                <lst name="defaults">
                        <str name="spellcheck">true</str>
                        <str name="spellcheck.dictionary">a_suggest</str>
                        <str name="spellcheck.onlyMorePopular">true</str>
                        <str name="spellcheck.count">5</str>
                        <str name="spellcheck.collate">true</str>
                </lst>
                <arr name="components">
                        <str>suggest</str>
                </arr>
        </requestHandler>

But, even if it works fine with words, it seems it does not work for terms
starting with diggits. For example:
http://localhost:8983/solr/suggest?&q=500
gets 0 results, but I know '500 $' is in the a_suggest field, as I can find
many hits by:
http://localhost:8983/solr/select/?q={!prefix f=a_suggest}500

Am I missing something? I have been trying to play with
spellcheck.onlyMorePopular and spellcheck.accuracy but I get the same
results.

thansk
xab

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Suggester-not-working-for-digit-starting-terms-tp3893433p3893433.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to