mirror of https://github.com/milvus-io/milvus.git
Add log to check search result structure (#2786)
* Add log to check search result structure Signed-off-by: yhz <413554850@qq.com> * CI retry Signed-off-by: yhz <413554850@qq.com> * Retry Signed-off-by: yhz <413554850@qq.com>pull/2789/head^2
parent
4922c9532f
commit
a970c7f2fd
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue