> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-3a82795f.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> MergeTree 테이블의 텍스트 인덱스 딕셔너리를 나타냅니다. 내부 검사에 사용할 수 있습니다.

# mergeTreeTextIndex

MergeTree 테이블의 텍스트 인덱스 딕셔너리를 나타냅니다.
토큰과 해당 포스팅 리스트 메타데이터를 반환합니다.
내부 검사에 사용할 수 있습니다.

<div id="syntax">
  ## 구문
</div>

```sql theme={null}
mergeTreeTextIndex(database, table, index_name)
```

<div id="arguments">
  ## 인수
</div>

| 인수           | 설명                         |
| ------------ | -------------------------- |
| `database`   | 텍스트 인덱스를 읽어올 데이터베이스 이름입니다. |
| `table`      | 텍스트 인덱스를 읽어올 테이블 이름입니다.    |
| `index_name` | 읽어올 텍스트 인덱스 이름입니다.         |

<div id="returned_value">
  ## 반환 값
</div>

토큰과 해당 포스팅 리스트 메타데이터가 포함된 테이블 객체입니다.

<div id="usage-example">
  ## 사용 예시
</div>

```sql title="Query" theme={null}
CREATE TABLE tab
(
    id UInt64,
    s String,
    INDEX idx_s (s) TYPE text(tokenizer = splitByNonAlpha)
)
ENGINE = MergeTree
ORDER BY id;

INSERT INTO tab SELECT number, concatWithSeparator(' ', 'apple', 'banana') FROM numbers(500);
INSERT INTO tab SELECT 500 + number, concatWithSeparator(' ', 'cherry', 'date') FROM numbers(500);

SELECT * FROM mergeTreeTextIndex(currentDatabase(), tab, idx_s);
```

```text title="Response" theme={null}
   ┌─part_name─┬─token──┬─dictionary_compression─┬─cardinality─┬─num_posting_blocks─┬─has_embedded_postings─┬─has_raw_postings─┬─has_compressed_postings─┐
1. │ all_1_1_0 │ apple  │ front_coded            │         500 │                  1 │                     0 │                0 │                       0 │
2. │ all_1_1_0 │ banana │ front_coded            │         500 │                  1 │                     0 │                0 │                       0 │
3. │ all_2_2_0 │ cherry │ front_coded            │         500 │                  1 │                     0 │                0 │                       0 │
4. │ all_2_2_0 │ date   │ front_coded            │         500 │                  1 │                     0 │                0 │                       0 │
   └───────────┴────────┴────────────────────────┴─────────────┴────────────────────┴───────────────────────┴──────────────────┴─────────────────────────┘
```
