This is a beta feature available in versions
0.22.0 and above.ROW() expression cast to a composite type. ParadeDB will unpack the composite type and index each
field individually.
Creating a Composite Type
First, define a composite type whose field names and types match the columns you want to index:ROW() expression cast to the composite type:
Configuring Tokenizers
Fields in the composite type can use tokenizers and token filters by specifying them as the field type:Constraints
The following are not supported and will produce an error:- Anonymous ROW expressions:
ROW(a, b)without a type cast is not allowed. Always cast to a named composite type. - Nested composites: A composite type cannot contain another composite type as a field.
- Duplicate field names: Field names must be unique within a single BM25 index, across all composite types and regular columns in that index.