Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Aggregations top_hits: Fixed inconsistent sorting of the hits
In the reduce logic of the top_hits aggregation if the first shard result to process contained has no results then the merging of all the shard results can go wrong resulting in an incorrect sorted hits. This bug can only manifest with a sort other than score. Closes elastic#7697
- Loading branch information