提交 257a125e 编写于 作者: P peng.xu

Merge branch 'branch-0.3.1' into 'branch-0.3.1'

Branch 0.3.1

See merge request megasearch/milvus!238

Former-commit-id: 6319379d173384f61bb4b77874e8019c22c5c9b7
...@@ -687,7 +687,7 @@ ServerError SearchVectorTask2::ConstructResult(engine::QueryResults& results) { ...@@ -687,7 +687,7 @@ ServerError SearchVectorTask2::ConstructResult(engine::QueryResults& results) {
engine::IDNumber* ids_ptr = (engine::IDNumber*)str_ids.data(); engine::IDNumber* ids_ptr = (engine::IDNumber*)str_ids.data();
double* distance_ptr = (double*)str_distances.data(); double* distance_ptr = (double*)str_distances.data();
for(size_t k = 0; k < results.size(); k++) { for(size_t k = 0; k < result.size(); k++) {
auto& pair = result[k]; auto& pair = result[k];
ids_ptr[k] = pair.first; ids_ptr[k] = pair.first;
distance_ptr[k] = pair.second; distance_ptr[k] = pair.second;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册