Former-commit-id: 282768be582212cd6bf364ea1903a9ad716106c0
This commit is contained in:
yu yunfeng 2019-07-03 20:59:36 +08:00
parent 7512cc1e06
commit 55afa772d3

View File

@ -167,6 +167,14 @@ std::shared_ptr<IScheduleTask> SearchTask::Execute() {
ClusterResult(output_ids, output_distence, context->nq(), inner_k, result_set);
rc.Record("cluster result");
SERVER_LOG_DEBUG << "Query Result: ";
for(auto& id2score_vector: result_set) {
for(auto& pair: id2score_vector) {
SERVER_LOG_DEBUG << "id: " << pair.first << ", distance: " << pair.second;
}
}
//step 4: pick up topk result
TopkResult(result_set, inner_k, context->GetResult());
rc.Record("reduce topk");