Is it possible to sort results within the facet filter?


My use-case is as follows:

I have a category facet that I want to promote specific results in. For example, search in category “t-shirts” (without a text query) should return t-shirts with a few promoted items on top in a specific order.

I’m aware of sorting the results but using index replicas but I’m hoping for a more straight forward solution than creating 80+ replicas for each category.

Another solution I thought about is getting results from Algolia but order from the site API but it would impact the performance of the search.

Is there any other way I can approach this issue?


You covered the only 2 solutions available today. I’m not sure which one is the easiest to achieve, it probably depends on your data.