MS-133 Change score to distance

Former-commit-id: f915dd99b33b808b0aa88a23bab8a073c7781289
This commit is contained in:
jinhai 2019-06-30 13:49:08 +08:00
parent 58969d48a8
commit 5cd966ef49

View File

@ -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);
}