GitHub user sebbASF opened an issue:
https://github.com/apache/incubator-ponymail/issues/316
Bug: elastic.scan with search_type=scan disables sort yet callers use sort
Both pminfo.lua and stats.lua use elastic.scan.
The queries include sort clauses (by date or epoch desc), however these are
ignored when search_type=scan is used (as is currently the case for
elastic.scan).
Does it even make sense to sort scrolled queries ?
By their very nature such queries are intended for large numbers of
results, which will be very expensive to sort in general.
ES 5.0 no longer supports search_type=scan [1]
Instead one can sort by _doc which is optimised to behave like
search_type=scan
[1] [1]
https://www.elastic.co/guide/en/elasticsearch/reference/5.1/breaking_50_search_changes.html#_literal_search_type_scan_literal_removed
----
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---