percolate query sorted by "_doc" is incorrectly matching date range query #52618
Labels
>bug
:Search Relevance/Percolator
Reverse search: find queries that match a document
Team:Search Relevance
Meta label for the Search Relevance team in Elasticsearch
Elasticsearch version 7.5.1
Plugins installed: []
JVM version 1.8.0_232
OS version Darwin C02XF3HBJHD2 18.7.0 Darwin Kernel Version 18.7.0: Sun Dec 1 18:59:03 PST 2019; root:xnu-4903.278.19~1/RELEASE_X86_64 x86_64
Sorting a percolate search by "_doc" results in range queries being incorrectly matched.
Note: this could be related to #52617
Steps to reproduce:
Expected: Only one of the saved queries should match (document id "2").
Actual: Both of the saved queries match.
Note that you do get the correct behaviour if you do not sort the results. ie.
The text was updated successfully, but these errors were encountered: