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

# Literal

> Indexes the text in its raw form, without any splitting or processing

> [!NOTE]
>
> The literal tokenizer is not ideal for text search queries like
> [match](https://www.paradedb.com/docs/reference/full-text/match.md) or [phrase](https://www.paradedb.com/docs/reference/full-text/phrase.md).
> If you need to do text search over a field that is literal tokenized, consider
> using [multiple tokenizers](https://www.paradedb.com/docs/reference/tokenizers/multiple-per-field.md).

> [!NOTE]
>
> Because the literal tokenizer preserves the source text exactly, [token
> filters](https://www.paradedb.com/docs/reference/token-filters/overview.md) cannot be configured for this
> tokenizer.

The literal tokenizer applies no tokenization to the text, preserving it as-is. It is the default for `uuid` fields (since
exact UUID matching is a common use case), and is useful for doing exact string matching over text fields.

Text fields used as a sort field in a [Top K](https://www.paradedb.com/docs/reference/full-text/top-k.md) query, or as part of an [aggregate](https://www.paradedb.com/docs/reference/aggregates/overview.md),
must use either this tokenizer or [`literal_normalized`](https://www.paradedb.com/docs/reference/tokenizers/available-tokenizers/literal-normalized).

```sql theme={null}
CREATE INDEX search_idx ON mock_items
USING paradedb (id, (description::pdb.literal));
```

To get a feel for this tokenizer, run the following command and replace the text with your own:

```sql theme={null}
SELECT 'Tokenize me!'::pdb.literal::text[];
```

```ini Expected Response theme={null}
       text
------------------
 {"Tokenize me!"}
(1 row)
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.