Just to be sure, reproduced this with example config from 3.5.

1. add to schema.xml
                <fieldType name="simpletext" class="solr.TextField"
positionIncrementGap="100">
                        <analyzer>
                                <charFilter 
class="solr.MappingCharFilterFactory"
mapping="mapping-ISOLatin1Accent.txt"/>
                                <tokenizer 
class="solr.KeywordTokenizerFactory"/>
                                <filter class="solr.LowerCaseFilterFactory"/>
                                <filter class="solr.TrimFilterFactory" />
                        </analyzer>
                </fieldType>    
        <field name="a_suggest" type="simpletext" stored="true" omitNorms="true"
multiValued="true"/>
        <copyField source="*" dest="a_suggest"/>

2 1. add to solrconfig.xml
        <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>
3. wipe data and undex sample docs
4. 
        http://localhost:8983/solr/suggest?&q=720&debugQuery=true   --- 0 result
        http://localhost:8983/solr/select/?q={!prefix%20f=a_suggest}720 ---
1 result


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

Reply via email to