mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
MS-133 Change score to distance
Former-commit-id: f915dd99b33b808b0aa88a23bab8a073c7781289
This commit is contained in:
parent
58969d48a8
commit
5cd966ef49
@ -514,7 +514,7 @@ ServerError SearchVectorTask::OnExecute() {
|
||||
for(auto& pair : result) {
|
||||
thrift::QueryResult thrift_result;
|
||||
thrift_result.__set_id(pair.first);
|
||||
thrift_result.__set_score(pair.second);
|
||||
thrift_result.__set_distance(pair.second);
|
||||
|
||||
thrift_topk_result.query_result_arrays.emplace_back(thrift_result);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user