Search by part of word with solr dismax -


how can search part of word dismax? example when query "wor" want results "word" "world" "adwords" etc. fields values. possible?

check edgengramfilterfactory filter

<filter class="solr.edgengramfilterfactory" mingramsize="3" maxgramsize="25" side="front"/> 

edgengramfilterfactory generates edge grams token e.g.

word generate -> wo, wor, word .....

you can use @ index time generate tokens. when search wor, documents word match

however, if want search in mid of words check ngramfilterfactory


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -