OpenSearch/core
Jim Ferenczi abe83c4fac Fail query when a sort is provided in conjunction with rescorers (#26510)
This change fixes a regression introduced in 6 that removes the skipping of the rescore phase
when a sort other than _score is used.
We now fail the request when a sort is provided in conjunction with rescore instead of just skipping the rescore phase
This commit also adds an assert that checks if the topdocs are sorted by _score after the rescoring.
This is the responsibility of the rescorer to make sure that topdocs are sorted after rescore so we
just check that this condition is met in the rescore phase.
2017-09-07 14:17:37 +02:00
..
licenses Upgrade to Log4j 2.9.0 2017-08-31 09:54:35 -04:00
src Fail query when a sort is provided in conjunction with rescorers (#26510) 2017-09-07 14:17:37 +02:00
build.gradle Upgrade to Log4j 2.9.0 2017-08-31 09:54:35 -04:00