Skip to content
ClickHouse Docs
ClickHouse DocsClickHouse Docs

text_index_* 会话设置

这些设置可在 system.settings 中查看,并根据 源代码 自动生成。

text_index_hint_max_selectivity

类型
Float
默认值
0.2
版本历史
版本默认值注释
25.120.2新设置

使用基于倒排文本索引构建的 hint 时,过滤器允许的最大选择性。

text_index_lazy_intersection_density_threshold

别名: text_index_density_threshold

类型
Float
默认值
0.2
版本历史
版本默认值注释
26.70.2由 `text_index_density_threshold` 重命名而来(保留为别名);用于在惰性倒排列表应用模式下选择倒排列表交集算法。

在惰性倒排列表应用模式 (text_index_posting_list_apply_mode = 'lazy') 下,用于选择交集算法的倒排列表密度阈值。 低于该阈值:leapfrog 交集 (更适合稀疏倒排列表) 。等于或高于该阈值:穷举 bitmap 交集 (更适合稠密倒排列表) 。

text_index_like_max_postings_to_read

类型
UInt64
默认值
50
版本历史
版本默认值注释
26.450新增设置

启用通过字典扫描进行文本索引 LIKE 评估时,可读取的大型 postings 的最大数量。

要求启用 use_text_index_like_evaluation_by_dictionary_scan

text_index_like_min_pattern_length

类型
UInt64
默认值
4
版本历史
版本默认值注释
26.44新增设置

在 LIKE/ILIKE 模式中,要使用通过字典扫描进行的文本索引 LIKE 评估,字母数字 needle 需要达到的最小长度。 短于此阈值的模式会匹配过多字典标记,因此会被跳过,以避免代价高昂的扫描。

要求启用 use_text_index_like_evaluation_by_dictionary_scan

text_index_posting_list_apply_mode

类型
TextIndexPostingListApplyMode
默认值
lazy
版本历史
版本默认值注释
26.8lazy文本索引查询现在使用游标按需解码倒排列表,而非将其物化为 Roaring Bitmaps,从而降低选择性查询的内存使用量和 CPU 时间。
26.6materialize惰性倒排列表应用模式的新增设置

控制在文本索引查询期间如何应用倒排列表。 'materialize' 会立即将倒排列表解码为 Roaring Bitmaps。 'lazy' (默认) 使用基于游标的按需解码 (要求索引格式使用序列化 codec) 。 'lazy' 仅在支持的情况下使用:包含模式 (如 LIKE) 的查询,以及索引由旧版本写入的 parts,都会回退到 'materialize'。

Navigation