MS-133 Change score to distance

Former-commit-id: 8e9e1c59187e046b3c5d85e708c27790140bc950
This commit is contained in:
jinhai 2019-06-30 13:49:08 +08:00
parent aa840917e5
commit 3d00521267

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