fix: fix incomplete hybrid search result when nq > 1 (#32177)

issue: https://github.com/milvus-io/milvus/issues/25639

Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>
This commit is contained in:
zhenshan.cao 2024-04-17 17:09:32 +08:00 committed by GitHub
parent 7add7248e2
commit 02f17b842a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -738,17 +738,6 @@ func (t *searchTask) Requery() error {
UseDefaultConsistency: false,
GuaranteeTimestamp: t.SearchRequest.GuaranteeTimestamp,
}
if t.SearchRequest.GetIsAdvanced() {
queryReq.QueryParams = []*commonpb.KeyValuePair{
{
Key: LimitKey,
Value: strconv.FormatInt(t.rankParams.limit, 10),
},
}
} else {
queryReq.QueryParams = t.request.GetSearchParams()
}
return doRequery(t.ctx, t.GetCollectionID(), t.node, t.schema.CollectionSchema, queryReq, t.result, t.queryChannelsTs, t.GetPartitionIDs())
}