Fix incorrect IP distance (#25527)

Signed-off-by: longjiquan <jiquan.long@zilliz.com>
pull/25549/head
Jiquan Long 2023-07-12 19:28:29 +08:00 committed by GitHub
parent f9e2d00f91
commit a577cac46b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -442,6 +442,10 @@ func (t *searchTask) PostExecute(ctx context.Context) error {
return err
}
if len(toReduceResults) >= 1 {
MetricType = toReduceResults[0].GetMetricType()
}
// Decode all search results
tr.CtxRecord(ctx, "decodeResultStart")
validSearchResults, err := decodeSearchResults(ctx, toReduceResults)