Specifying Sort field


(Velusamy Velu) #1

I wonder why the sort isn't working the following query. I get the results in the same sequence for either of the queries below.

http://localhost:9200///_search?q=creatorId:admin&sort=dateLastEdited:desc
http://localhost:9200///_search?q=creatorId:admin&sort=dateLastEdited:asc

Thank you


(Velusamy Velu) #2

Found the answer. The sort should be either asc or dsc not desc, as below.

http://localhost:9200///_search?q=creatorId:admin&sort=dateLastEdited:dsc
http://localhost:9200///_search?q=creatorId:admin&sort=dateLastEdited:asc

Thank you for your time.


(system) #3

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