solr-autocomplete
solr-autocomplete copied to clipboard
Popularity Boost
Love this add-on team! I'm trying to figure out if i can add a popularity boost to make these results even better. Relevance is good, but sometimes we e.g. brands are better (based on e.g browsing history) etc.
Any tips on how I might achieve this?
Hi @aaronweatherall and thanks for your nice words!
Have you tried mixing the score with some other fields via a function score? I haven't tried it, but both sort and bf should work with autocomplete and do what you're after.
You can integrate popularity boost in autocomplete searchHandler. That can be edismax handler with bf or bq where you can add popularity boost.
<searchComponent name="acComponent" class="com.sematext.autocomplete.solr.AutoCompleteSearchComponent">
<str name="searchHandler">dismax_ac_query</str>
...
<requestHandler name="dismax_ac_query" class="solr.SearchHandler" >
<lst name="defaults">
<str name="defType">dismax</str>
<str name="mm">100%</str>
<str name="bq">XXX</str>