Merge pull request #398 from yhmo/0.6.0

#397 sdk_simple return incorrect result
pull/406/head
Jin Hai 2019-11-19 11:44:19 +08:00 committed by GitHub
commit 2abbcad294
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,7 @@ Please mark all change in change log and use the ticket from JIRA.
- \#340 - Test cases run failed on 0.6.0 - \#340 - Test cases run failed on 0.6.0
- \#353 - Rename config.h.in to version.h.in - \#353 - Rename config.h.in to version.h.in
- \#374 - sdk_simple return empty result - \#374 - sdk_simple return empty result
- \#397 - sdk_simple return incorrect result
## Feature ## Feature
- \#12 - Pure CPU version for Milvus - \#12 - Pure CPU version for Milvus

View File

@ -167,7 +167,7 @@ Utils::PrintSearchResult(const std::vector<std::pair<int64_t, milvus::RowRecord>
index++; index++;
std::cout << "No." << index << " vector " << search_id << " top " << topk << " search result:" << std::endl; std::cout << "No." << index << " vector " << search_id << " top " << topk << " search result:" << std::endl;
for (size_t j = 0; j < topk; j++) { for (size_t j = 0; j < topk; j++) {
size_t idx = i * nq + j; size_t idx = i * topk + j;
std::cout << "\t" << topk_query_result.ids[idx] << "\t" << topk_query_result.distances[idx] << std::endl; std::cout << "\t" << topk_query_result.ids[idx] << "\t" << topk_query_result.distances[idx] << std::endl;
} }
} }