mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-30 15:35:33 +08:00
MS-151 Fix topk problem
Former-commit-id: 40f952e4c6e1ed9f5ca3a300601c51d410c8e86b
This commit is contained in:
parent
f185a8b606
commit
854dfeb85b
@ -138,7 +138,6 @@ Status FaissExecutionEngine::Search(long n,
|
||||
auto start_time = METRICS_NOW_TIME;
|
||||
|
||||
std::shared_ptr<faiss::IndexIVF> ivf_index = std::dynamic_pointer_cast<faiss::IndexIVF>(pIndex_);
|
||||
//ENGINE_LOG_DEBUG << "Index nlist: " << ivf_index->nlist << ", ntotal: "<< ivf_index->ntotal;
|
||||
if(ivf_index) {
|
||||
ENGINE_LOG_DEBUG << "Index type: IVFFLAT nProbe: " << nprobe_;
|
||||
ivf_index->nprobe = nprobe_;
|
||||
|
||||
@ -167,14 +167,6 @@ 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");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user