mirror of
https://github.com/milvus-io/milvus.git
synced 2026-07-21 10:15:43 +00:00
fix: highlight queries not work when not BM25 search (#46288)
Should aways init highlight queries. relate: https://github.com/milvus-io/milvus/issues/42589 Signed-off-by: aoiasd <zhicheng.yue@zilliz.com>
This commit is contained in:
@@ -606,10 +606,8 @@ func (t *searchTask) createLexicalHighlighter(highlighter *commonpb.Highlighter,
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return h.initHighlightQueries(t)
|
||||
}
|
||||
return nil
|
||||
return h.initHighlightQueries(t)
|
||||
}
|
||||
|
||||
func (t *searchTask) addHighlightTask(highlighter *commonpb.Highlighter, metricType string, annsField int64, placeholder []byte, analyzerName string) error {
|
||||
|
||||
Reference in New Issue
Block a user