未验证 提交 a970c7f2 编写于 作者: B BossZou 提交者: GitHub

Add log to check search result structure (#2786)

* Add log to check search result structure
Signed-off-by: Nyhz <413554850@qq.com>

* CI retry
Signed-off-by: Nyhz <413554850@qq.com>

* Retry
Signed-off-by: Nyhz <413554850@qq.com>
上级 4922c953
......@@ -317,6 +317,9 @@ XSearchTask::Execute() {
std::unique_lock<std::mutex> lock(search_job->mutex());
XSearchTask::MergeTopkToResultSet(output_ids, output_distance, spec_k, nq, topk, ascending_reduce,
search_job->GetResultIds(), search_job->GetResultDistances());
LOG_ENGINE_DEBUG_ << "Merged result: "
<< "nq = " << nq << ", topk = " << topk << ", len of ids = " << output_ids.size()
<< ", len of distance = " << output_distance.size();
}
// span = rc.RecordSection(hdr + ", reduce topk");
......
......@@ -519,6 +519,9 @@ GrpcRequestHandler::Search(::grpc::ServerContext* context, const ::milvus::grpc:
Status status = request_handler_.Search(GetContext(context), request->collection_name(), vectors, request->topk(),
json_params, partitions, file_ids, result);
LOG_SERVER_DEBUG_C << "row num = " << result.row_num_ << ", id list length = " << result.id_list_.size()
<< ", distance list length = " << result.distance_list_.size();
// step 5: construct and return result
ConstructResults(result, response);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册