WHERE clauses and operators.
For instance, the following query filters out results that do not meet rating > 2.
In order for the ParadeDB index to be used, at least one ParadeDB operator must be present in the query. Any of the following search operators qualify:
For queries that do not require text search, add
pdb.all to force the ParadeDB
index without changing the query output.Filter Pushdown
Non-Text Fields
While not required, filtering performance over non-text columns can be improved by including them in the ParadeDB index. When these columns are part of the index,WHERE clauses that reference them can be pushed down into the index scan itself.
This can result in faster query execution over large datasets.
For example, if rating and created_at are frequently used in filters, they can be added to the ParadeDB index during index creation:
Text Fields
Suppose we have a text filter that looks for an exact string match likecategory = 'Footwear':
category = 'Footwear' filter, category must be indexed using the literal tokenizer: