Show fields with zero value in last

Hi, I have documents with the price field. I am sorting the documents by price. There are few documents which have price value zero. Problem is when I sort the documents with price field, it shows documents with zero fields on top(which is expected behaviour by elastic search), which I don't want, but I can't ignore those results also.
So what I want is to keep the documents with zero value in the end. Is there a way to achieve this where I can sort documents by price field in ascending order and keep the documents with zero price in the end.

Any help on this?

1 Like

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