Skip to main content
Scalar fields hold individual values such as numbers, booleans, dates, and UUIDs. Include the columns used for filtering, sorting, grouping, aggregates, and join keys in the same ParadeDB index as your search fields. These fields are indexed using ParadeDB’s columnar format by default. This enables fast filtering pushdown, Top K ordering, and aggregates over these columns. For example, in the following index definition, rating and id are columnar indexed because they are integers, whereas description is not because it is text.

Text and JSON Values

For exact text filters and text sort keys, use the literal or literal normalized tokenizer. Both enable columnar storage by default. See Indexed Columns for supported filter operators and Sorting by Text for ordering requirements. To enable columnar indexing for other text and JSON columns, cast the column to a tokenizer with columnar set to true.
The columnar option for tokenizers is available in versions 0.22.0 and above.
Columnar defaults to false for all tokenizers besides literal and literal normalized, which default to true and do not require an explicit setting. The reason is that tokenized columns can represent large documents and would be expensive to store column-wise, whereas literal and literal normalized columns are typically single-value and much more compact.
The columnar value stores the raw text value regardless of the tokenizer. For example, if Hello world is split into tokens hello and world, the columnar value remains Hello world.This is important because operations like filtering and sorting require the original column value, not the tokens.