# Milvus Hybrid Search 报错 "Group value is nil" #45755
-
Milvus Hybrid Search 报错 "Group value is nil" 但数据确实存在 group value问题描述在执行 Milvus 混合搜索(Hybrid Search)时,使用 这个问题之前也出现过,当时通过清空对应 collection 的数据后,问题就解决了,可以按照预期搜索到结果,没有报错,过几天就会重复出现。 错误信息环境版本
Milvus 表结构 (chunks collection)问题分析
预期行为应该返回两个分组的结果,每个分组对应一个 实际行为抛出异常: 异常发生在执行 注意:此问题在使用混合搜索(Dense + BM25)结合 RRF ranker 和分组功能时出现。单独使用向量搜索或标量查询时, |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 21 replies
-
|
这个报错在最新的代码里改成了"Group value is nil, this is due to empty results in search reduce phase" milvus/internal/util/function/rerank/util.go Line 520 in b0e490b 在2.6.5里,客户端不会接收到这个报错,而是返回一个空的结果集。这个报错的本意就是没搜索到任何的结果,结果是空的,所以没法做group by。 |
Beta Was this translation helpful? Give feedback.
-
|
你的用法看起来有点confusing,既然只搜索两个file,为啥还需要group呢? |
Beta Was this translation helpful? Give feedback.
-
|
不知道您是否理解 group_by_field="file_id", 既然这样,filter filed的意义是什么? |
Beta Was this translation helpful? Give feedback.
-
|
i think we will need verification on how groupby works with sparse index, and how it works can together with groupby. So far it's not battle tested. |
Beta Was this translation helpful? Give feedback.


standard默认是英文分词。jieba是中文分词
使用run_analyzer()这个接口可以测试分词器的效果:
输出结果:
所以你用standard分词,它会把整句中文当成一个词,那肯定匹配不上。
只有jieba才能正确地把中文句子分词。