Order by field


(Ridvan Gyundogan) #1

Hello,
I try to do the following:
Find all t-shirts and order them by price.

How can I do this with ES, I do not know how to specify the "order by
price" thing?


(Ridvan Gyundogan) #2

I've found it - it is called sort :slight_smile:
http://www.elasticsearch.org/guide/reference/api/search/sort.html

On Sep 2, 10:29 pm, Ridvan Gyundogan ridva...@gmail.com wrote:

Hello,
I try to do the following:
Find all t-shirts and order them by price.

How can I do this with ES, I do not know how to specify the "order by
price" thing?


(system) #3