Hi All, Last day I was able to configure Solr Suggester for recommendation in my site with the following settings
<field name="query_suggest" type="text_suggester" indexed="true" stored="true" /> <fieldType name="text_suggester" class="solr.TextField" positionIncrementGap="100" multiValued="true"> <analyzer type="index"> <tokenizer class="solr.StandardTokenizerFactory"/> <filter class="solr.LowerCaseFilterFactory"/> </analyzer> <analyzer type="query"> <tokenizer class="solr.StandardTokenizerFactory"/> <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/> <filter class="solr.LowerCaseFilterFactory"/> </analyzer> </fieldType> <searchComponent name="suggest" class="solr.SuggestComponent"> <lst name="suggester"> <str name="name">mySuggester</str> <str name="lookupImpl">AnalyzingLookupFactory</str> <str name="dictionaryImpl">DocumentDictionaryFactory</str> <str name="field">query_suggest</str> <str name="suggestAnalyzerFieldType">text_suggester</str> <str name="buildOnStartup">false</str> <str name="highlight">false</str> </lst> </searchComponent> <requestHandler name="/suggest" class="solr.SearchHandler" startup="lazy" > <lst name="defaults"> <str name="suggest">true</str> <str name="suggest.count">10</str> <str name="suggest.dictionary">mySuggester</str> </lst> <arr name="components"> <str>suggest</str> </arr> </requestHandler> With the above configuration I am able to get suggestion from Solr. But only point of confusion is when I repeatedly hit the same search word, results are coming in different order. Is this an expected pattern with respect to suggester component. Example for mentioned pattern is given below for reference localhost:8983/solr/techproduct/suggest?suggest=true&suggest.build=true&suggest.dictionary=mySuggester&wt=json&suggest.q=lat&suggest.cfq=memory Sample Result 1 {"responseHeader":{"zkConnected":true,"status":0,"QTime":16},"command":"build","suggest":{"mySuggester":{"lat":{"numFound":3,"suggestions":[{"term":"latest development in electrification","weight":0,"payload":""},{"term":"latest development in the area of digital pdp","weight":0,"payload":""},{"term":"latest technology for materials","weight":0,"payload":""}]}}}} Sample Result 2 {"responseHeader":{"zkConnected":true,"status":0,"QTime":14},"command":"build","suggest":{"mySuggester":{"lat":{"numFound":3,"suggestions":[{"term":"latest development in the area of digital pdp","weight":0,"payload":""},{"term":"latest technology for materials","weight":0,"payload":""},{"term":"latest development in electrification","weight":0,"payload":""}]}}}} First Suggestion in both the case are different. Please advice Thanks, Arun -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html