GitHub user sebbASF opened an issue:

    https://github.com/apache/incubator-ponymail/issues/322

    Bug: scroll/scan ignores sort order

    Using search_type=scan ignores any sort order in the query [1].
    
    Code which depends on the order needs to sort the results, or the order 
will be indeterminate.
    This applies to pminfo.lua currently (stats.lua already sorts to get round 
this).
    As a result, the thread count generated by pminfo.lua will not agree wit 
stats.lua
    
    Note: this is a temporary fix; scroll/scan is deprecated since 2.1 and 
dropped in 5.0.
    
    [1] 
https://www.elastic.co/guide/en/elasticsearch/reference/2.0/search-request-scroll.html#scroll-scan

----

----


---
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.
---

Reply via email to