Skip to content

Commit

Permalink
Fix hybrid search rescore (#205)
Browse files Browse the repository at this point in the history
Signed-off-by: junjie.jiang <junjie.jiang@zilliz.com>
  • Loading branch information
junjiejiangjjj authored Aug 8, 2024
1 parent 3515d66 commit 77ef99b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hybrid_search_task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ HyBridSearchTask::ProcessSearch(
search_request.set_nq(req.nq());
std::string metric;
CHECK_STATUS(GetMetricType(search_request, &metric), "");
re_scorers_[0]->SetMetricType(metric);
re_scorers_[i]->SetMetricType(metric);
search_requests->push_back(search_request);
}
return Status::Ok();
Expand Down
2 changes: 1 addition & 1 deletion src/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ main(int argc, char** argv) {
std::string work_dir = argv[1];
std::string address = argv[2];
std::string log_level = "ERROR";
if (argc == 4) {
if (argc >= 4) {
log_level = argv[3];
}
if (log_level == "INFO") {
Expand Down

0 comments on commit 77ef99b

Please sign in to comment.