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?
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.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.