fix: fix wrong guaranteeTs for hybrid search (#31302)

#31281

Signed-off-by: luzhang <luzhang@zilliz.com>
Co-authored-by: luzhang <luzhang@zilliz.com>
This commit is contained in:
zhagnlu 2024-03-17 20:21:04 +08:00 committed by GitHub
parent ed0526a1a4
commit e396ad9580
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -163,7 +163,7 @@ func (t *hybridSearchTask) PreExecute(ctx context.Context) error {
log.Info("generate reScorer failed", zap.Any("rank params", t.request.GetRankParams()), zap.Error(err))
return err
}
t.HybridSearchRequest.GuaranteeTimestamp = guaranteeTs
t.searchTasks = make([]*searchTask, len(t.request.GetRequests()))
for index := range t.request.Requests {
searchReq := t.request.Requests[index]
@ -216,7 +216,7 @@ func (t *hybridSearchTask) PreExecute(ctx context.Context) error {
}
log.Debug("hybrid search preExecute done.",
zap.Uint64("guarantee_ts", t.request.GetGuaranteeTimestamp()),
zap.Uint64("guarantee_ts", guaranteeTs),
zap.Bool("use_default_consistency", t.request.GetUseDefaultConsistency()),
zap.Any("consistency level", t.request.GetConsistencyLevel()))