lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: Suggester not working for digit starting terms
Date Mon, 09 Apr 2012 22:32:26 GMT
Is it possible that your fieldType definition for a_suggest is
stripping out the digits? Consider using TermsComponent
http://wiki.apache.org/solr/TermsComponent or the admin
page or Luke to examine the terms actually _in_ your
index. Or look at the admin/analysis page and give it some
sample input to determine what the results of the analysis
chain is....

Best
Erick

On Sat, Apr 7, 2012 at 3:24 PM, jmlucjav <jmlucjav@gmail.com> wrote:
> 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.

Mime
View raw message