autosuggest - Auto suggest both words and phrases in solr? -


i have been able implement either word specific suggestion solr or phrase specific 1 example

 <tokenizer class="solr.whitespacetokenizerfactory"/>   <filter class="solr.worddelimiterfilterfactory"            generatewordparts="1"            generatenumberparts="1"            catenatewords="1"            catenatenumbers="1"            catenateall="0"            splitoncasechange="1"/>  <filter class="solr.lowercasefilterfactory"/>  </analyzer> 

the above code help's in getting single word suggestion he => help, hell, hello etc.

 <analyzer>        <tokenizer class="solr.keywordtokenizerfactory"/>        <filter class="solr.lowercasefilterfactory"/> </analyzer> 

the above code help's in getting whole phrase he => hell boy movie, hell you etc.

how integrate both he => hell, hello, hell boy movie etc.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -