1 Commits
Author SHA1 Message Date
hylinandGeorge Panchuk e37b9ea25e fix(local): apply score_threshold strictly to match server semantics (#1387)
* fix(local): apply score_threshold strictly to match server semantics

The Qdrant server keeps only points whose score is *better* than
score_threshold (strict inequality): a point whose score equals the
threshold is excluded. Local mode used non-strict comparisons, so such
boundary points were incorrectly kept for Cosine/Dot/Euclid/Manhattan.

Fusion and formula post-filters remain inclusive, matching observed
server behavior for those paths.

Includes parametrized regression tests covering all four distance metrics.

* tests: update tests

* tests: update tests to include other query points ways

---------

Co-authored-by: George Panchuk <george.panchuk@qdrant.tech>
2026-09-16 00:26:23 +07:00