> ## 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.

# text_index_* MergeTree table settings

> ClickHouse MergeTree table settings in the text_index_* generated group.

These settings are available in [system.merge\_tree\_settings](https://clickhouse.com/docs/reference/system-tables/merge_tree_settings.md) and are autogenerated from ClickHouse source.

## text\_index\_dictionary\_block\_frontcoding\_compression

Type

Bool

Default

1

Default front-coding compression for text index dictionary blocks.
Can be overridden by explicit `dictionary_block_frontcoding_compression` index argument.

## text\_index\_dictionary\_block\_size

Type

NonZeroUInt64

Default

512

Default dictionary block size for text indexes.
Can be overridden by explicit `dictionary_block_size` index argument.

## text\_index\_max\_memory\_usage\_before\_flush

Type

NonZeroUInt64

Default

1073741824

Maximum estimated memory retained by a text index builder before flushing a temporary segment.

## text\_index\_max\_processed\_tokens\_before\_flush

Type

NonZeroUInt64

Default

100000000

Maximum number of processed tokens accumulated by a text index builder before flushing a temporary segment.

## text\_index\_posting\_list\_block\_size

Type

NonZeroUInt64

Default

1048576

Default posting list block size for text indexes (rows).
Can be overridden by explicit `posting_list_block_size` index argument.

## text\_index\_posting\_list\_codec

Type

TextIndexPostingListCodec

Default

pfor

Default posting list codec for text indexes. One of `none`, `bitpacking`, `pfor`.
Can be overridden by explicit `posting_list_codec` index argument.

## text\_index\_serialization\_version

Type

MergeTreeTextIndexSerializationVersion

Default

v2\_with\_positions

The preferred on-disk serialization format version for writing text indexes.

The setting is a preference rather than a hard constraint: if the configured version cannot
represent an index, a newer version that can represent it is chosen automatically, and
writing a text index never fails because of this setting.

During a rolling upgrade, pin the format with the profile-level `compatibility` setting on
the already upgraded servers, so that they keep writing the format that older servers can still read.

Possible values:

* `v0_initial` — The original format. Does not persist the posting list codec type.
* `v1_with_codec` — Persists the posting list codec type in the text index header.
* `v2_with_positions` — Persists token positions for indexes with `support_phrase_search`.
