Skip to content

Commit

Permalink
[fix][index] Fix vector search for scalar pre filter bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
Haijun Yu authored and rock-git committed Mar 15, 2024
1 parent 6242cdf commit ce85c71
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/vector/vector_reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -817,13 +817,6 @@ butil::Status VectorReader::DoVectorSearchForScalarPreFilter(
VectorIndexWrapperPtr vector_index, pb::common::Range region_range,
const std::vector<pb::common::VectorWithId>& vector_with_ids, const pb::common::VectorSearchParameter& parameter,
std::vector<pb::index::VectorWithDistanceResult>& vector_with_distance_results) { // NOLINT
if (vector_with_ids.empty()) {
return butil::Status(pb::error::EVECTOR_EMPTY, "vector_with_ids is empty");
}
if (vector_with_ids[0].scalar_data().scalar_data_size() == 0) {
return butil::Status(pb::error::EVECTOR_SCALAR_DATA_NOT_FOUND, "scalar data is empty");
}

// scalar pre filter search
butil::Status status;
bool use_coprocessor = parameter.has_vector_coprocessor();
Expand Down

0 comments on commit ce85c71

Please sign in to comment.