Rescore
/ Rescore, / RelevanceRescore #
rescore re-ranks the top window of hits with a second query — an
expensive precision pass (phrase, vector similarity, a narrow filter
match) applied only where it can change the final page, instead of to
every matching document.
POST /my-collection/_search
How it works #
Rescore is engine-native. When a request carries a rescore block, the
collector widens its gather to max(from + size, window) candidates, the
first-pass query ranks them, and the store layer then applies the rescore
to the collected set (apply_rescore_to_result in
lib/engine/src/store/layered/generic_reader.rs, blending in
lib/engine/src/search/scorer/mod.rs):