> ## Documentation Index
> Fetch the complete documentation index at: https://clickhouse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# use_text_* 会话设置

> 自动生成的 use_text_* 组中的 ClickHouse 会话设置。

这些设置可在 [system.settings](https://clickhouse.com/docs/zh/reference/system-tables/settings.md) 中查看，并由 [源文件](https://github.com/ClickHouse/ClickHouse/blob/master/src/Core/Settings.cpp) 自动生成。

## use\_text\_index\_header\_cache

类型

Bool

默认值

1

是否将反序列化后的文本索引头部缓存在内存中。
在处理大量文本索引查询时，使用文本索引头部缓存可显著降低延迟并提高吞吐量。

## use\_text\_index\_like\_evaluation\_by\_dictionary\_scan

类型

Bool

默认值

1

启用通过扫描倒排文本索引字典对 LIKE/ILIKE 查询进行求值。

可加速的模式包括 `%value%`、`value%` 和 `%value`，以及被 `optimize_rewrite_like_perfect_affix` 改写为 `value%` 和 `%value` 的 `startsWith` 与 `endsWith` 调用。
对于仅包含一个 needle 的 `multiSearchAny`、`multiSearchAnyUTF8`、`multiSearchAnyCaseInsensitive` 或 `multiSearchAnyCaseInsensitiveUTF8` 调用，会按 `%value%` 模式进行搜索。

## use\_text\_index\_negative\_tokens\_cache

类型

Bool

默认值

1

是否缓存数据分区片段中不存在的文本索引标记。
负标记缓存使用文本索引标记缓存，避免重复查找不存在的标记。

## use\_text\_index\_pattern\_bypass\_cache

类型

Bool

默认值

1

是否缓存超出 `text_index_like_max_postings_to_read` 的文本索引模式 dictionary scan 结果。
模式绕过缓存基于文本索引标记缓存实现，对于此前已回退为对原始谓词求值的 dictionary scan，可避免重复执行。

## use\_text\_index\_postings\_cache

类型

Bool

默认值

1

是否在内存中缓存反序列化后的文本索引倒排列表。
在处理大量文本索引查询时，使用文本索引倒排列表缓存可以显著降低延迟并提高吞吐量。

## use\_text\_index\_tokens\_cache

类型

Bool

默认值

1

是否在内存中缓存反序列化后的文本索引标记信息。
使用文本索引标记缓存时，在处理大量文本索引查询时可显著降低延迟并提高吞吐量。
