Hi, thanks,
I m sending my whole configurations in schema and solrconfig.xml files. ************************************************************ schema.xml ----------- <fieldType name="edgytext" class="solr.TextField" positionIncrementGap="100" omitNorms="true"> <analyzer type="index"> <tokenizer class="solr.KeywordTokenizerFactory" /> <filter class="solr.LowerCaseFilterFactory" /> <filter class="solr.PatternReplaceFilterFactory" pattern="\s+" replacement=" " replace="all"/> <filter class="solr.EdgeNGramFilterFactory" minGramSize="1" maxGramSize="15" side="front" /> </analyzer> <analyzer type="query"> <tokenizer class="solr.KeywordTokenizerFactory" /> <filter class="solr.LowerCaseFilterFactory" /> <filter class="solr.PatternReplaceFilterFactory" pattern="\s+" replacement=" " replace="all"/> </analyzer> </fieldType> <field name="title" type="edgytext" indexed="true" stored="true" /> <field name="empname" type="edgytext" indexed="true" stored="true" /> <field name="autocomplete_text" type="edgytext" indexed="true" stored="false" multiValued="true" omitNorms="true" omitTermFreqAndPositions="false" /> <copyField source="title" dest="autocomplete_text"/> <copyField source="empname" dest="autocomplete_text"/> ********************************************************* solrconfig.xml ------------- <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.FSTLookup</str> <str name="storeDir">suggest</str> <str name="field">autocomplete_text</str> <bool name="exactMatchFirst">true</bool> <float name="threshold">0.005</float> <str name="buildOnCommit">true</str> <str name="buildOnOptimize">true</str> </lst> <lst name="spellchecker"> <str name="name">jarowinkler</str> <str name="field">lowerfilt</str> <str name="distanceMeasure">org.apache.lucene.search.spell.JaroWinklerDistance</str> <str name="spellcheckIndexDir">spellchecker</str> </lst> <str name="queryAnalyzerFieldType">edgytext</str> </searchComponent> <requestHandler class="org.apache.solr.handler.component.SearchHandler" name="/suggest" startup="lazy"> <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">false</str> <str name="spellcheck.maxCollations">5</str> <str name="spellcheck.maxCollationTries">1000</str> <str name="spellcheck.collateExtendedResults">true</str> </lst> <arr name="last-components"> <str>suggest</str> <str>query</str> </arr> </requestHandler> URL : suggest/?q="michael b" ------------------------- Response : <?xml version="1.0" encoding="UTF-8" ?> <response> <lst name="responseHeader"> <int name="status">0</int> <int name="QTime">3</int> </lst> <result name="response" numFound="0" start="0" /> <lst name="spellcheck"> <lst name="suggestions"> <lst name="michael"> <int name="numFound">10</int> <int name="startOffset">1</int> <int name="endOffset">8</int> <arr name="suggestion"> <str>michael bully herbig</str> <str>michael bolton</str> <str>michael bolton: arias</str> <str>michael falch</str> <str>michael holm</str> <str>michael jackson</str> <str>michael neale</str> <str>michael penn</str> <str>michael salgado</str> <str>michael w. smith</str> </arr> </lst> <lst name="b"> <int name="numFound">10</int> <int name="startOffset">9</int> <int name="endOffset">10</int> <arr name="suggestion"> <str>b in the mix - the remixes</str> <str>b2k</str> <str>backstreet boys</str> <str>backyard babies</str> <str>banda maguey</str> <str>barbra streisand</str> <str>barry manilow</str> <str>benny goodman</str> <str>beny more</str> <str>beyonce</str> </arr> </lst> <str name="collation">"michael bully herbig b in the mix - the remixes"</str> </lst> </lst> </response> -- View this message in context: http://lucene.472066.n3.nabble.com/auto-completion-search-with-solr-using-NGrams-in-SOLR-tp3998559p4005490.html Sent from the Solr - User mailing list archive at Nabble.com.