solr-autocomplete icon indicating copy to clipboard operation
solr-autocomplete copied to clipboard

Popularity Boost

Open aaronweatherall opened this issue 8 years ago • 2 comments

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?

aaronweatherall avatar May 04 '17 03:05 aaronweatherall

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.

radu-gheorghe avatar May 04 '17 10:05 radu-gheorghe

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>

nmtien avatar May 09 '17 00:05 nmtien