Own sort order

Hi!
I need use in elasticsearch my own sort order for example:
I have info about Food with food_category_id and I want sort result by food_category_id in order [5,8,2] (First with id = 5, second with id = 8. third with id = 2).
It is possible to do that? Can you help me?

hey,

how about just executing three queries instead then? alternatively have a look at the function score query

--Alex

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.