diff --git a/internal/core/src/segcore/InsertRecord.h b/internal/core/src/segcore/InsertRecord.h index 1dcc744b0142d..a009ca5e9d12a 100644 --- a/internal/core/src/segcore/InsertRecord.h +++ b/internal/core/src/segcore/InsertRecord.h @@ -179,7 +179,7 @@ class OffsetOrderedArray : public OffsetMap { [](const std::pair& elem, const T& value) { return elem.first < value; }); - return it != array_.end(); + return it != array_.end() && it->first == target; } std::vector