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
Post a Comment