I'm building an ecommerce website using elastic search engine for my products. Product have tags that can be used for filtering using checkbox. I display the tags ordered by descending docs count with a limit of 5 lines, 25 if the user clicks a "show more" button.
The issue i'm having having is that i need to display active tags first in the list. I could do it on the client side but that would require getting all possible tag values because at some point, the selected tag may not be one of the 25 first matching.
Is there a way to boost an aggregated term using a specific value?