mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-08 01:58:34 +08:00
relate: https://github.com/milvus-io/milvus/issues/44758 Wrong code which should be `(result.seg_offsets_[i] >= 0 && result.seg_offsets_[j] < 0)`, but was `(result.seg_offsets_[j] >= 0 && result.seg_offsets_[j] < 0) ` now. But because all placeholder which was offset -1, will fill with worst distance value. For IP, L2 or COSIN, it will be +inf or -inf. So sort distance was enough. But when use BM25, it will be NAN. Will case sort out of ordered. Signed-off-by: aoiasd <zhicheng.yue@zilliz.com>