hi Alessandro, Thanks very much. I've read your article - which is really great by the way! , and configured my suggester in the following way:
<searchComponent name="suggest" class="solr.SuggestComponent"> <lst name="suggester"> <str name="name">mySuggester</str> <str name="lookupImpl">FreeTextLookupFactory</str> <str name="dictionaryImpl">DocumentDictionaryFactory</str> <str name="field">content_suggest</str> <str name="buildOnStartup">true</str> <str name="ngrams">3</str> <str name="separator"> </str> <str name="suggestFreeTextAnalyzerFieldType">text_general</str> </lst> </searchComponent> The issue is that i am still getting single term suggestions. Sometimes i am getting multiple terms but they are not separated by a space, but by other characters like _ and :, for example "breaking_news" or "breaking:news", whenever i type "brea" or "br". Do you see anything wrong with my setup ? Thank you Angel On Mon, Jun 26, 2017 at 6:04 PM, govind nitk <govind.n...@gmail.com> wrote: > Hi Alessandro, > > Thanks for clarification. > > > > On Mon, Jun 26, 2017 at 4:53 PM, alessandro.benedetti < > a.benede...@sease.io> > wrote: > > > " Don't use an heavy Analyzers, the suggested terms will come from the > > index, > > so be sure they are meaningful tokens. A really basic analyser is > > suggested, > > stop words and stemming are not " > > > > This means that your suggestions will come from the index, so if you use > > heavy analysers you can get terms suggested which are not really useful : > > > > e.g. > > > > Solr is an amazing search engine > > > > If you have some stemmer in your analysis chain, you will have this > > behavior > > : > > > > q= ama > > result : amaz search engin > > > > So it is better to have this lookup strategy configured on top of a light > > analysed field ( or copyfield). > > > > > > > > > > > > ----- > > --------------- > > Alessandro Benedetti > > Search Consultant, R&D Software Engineer, Director > > Sease Ltd. - www.sease.io > > -- > > View this message in context: http://lucene.472066.n3. > > nabble.com/SOLR-Suggester-returns-either-the-full-field- > > value-or-single-terms-only-tp4342763p4342807.html > > Sent from the Solr - User mailing list archive at Nabble.com. > > >