elasticsearch/server
Luca Cavanna 905222613a
Disable concurrency when top_hits sorts on anything but _score (#123610)
We already disable inter-segment concurrency in SearchSourceBuilder whenever
the top-level sort provided is not _score. We shoudl apply the same rules
in top_hits. We recenly stumbled upon non deterministic behaviour caused by
script sorting defined within top hits. That is to be expected given that
script sorting does not support search concurrency.

The sort script can be replaced with a runtime field, either defined in the
mapping or in the search request, which does support concurrency and guarantees
predictable behaviour.
2025-02-27 21:22:17 +01:00
..
licenses Remove JNA from server dependencies (#110809) 2024-07-16 11:28:58 +03:00
src Disable concurrency when top_hits sorts on anything but _score (#123610) 2025-02-27 21:22:17 +01:00
build.gradle [Test] Separate testAcceptsMismatchedServerlessBuildHash (#122570) 2025-02-18 10:15:08 +11:00