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

pr: #31302

Signed-off-by: luzhang <luzhang@zilliz.com>
Co-authored-by: luzhang <luzhang@zilliz.com>
pull/31344/head
zhagnlu 2024-03-18 12:29:04 +08:00 committed by GitHub
parent 506534c29d
commit 7e3ac66617
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

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()))