Sorting in scroll API



We are using scroll API (Elastic Search 2.x) to retrieve large number of records. Though we are able to retrieve the logs the sorting seems to be an issue. We have specified sort in the query but still see the logs jumbled over. Is this an expected behavior?


(Nik Everett) #2

I believe that sorting isn't supported with the deprecated scan search type (search this page for scan). In the middle 2.x versions Elasticsearch introduced sorting by _doc to get the performance of scanwithout a different search type. Anyway, if you don't use scan then scroll should support sorting without trouble.

(system) #3

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