@@@ operator. @@@ takes a column on the left-hand side and a query builder function on the
right-hand side. It means “find all rows where the column matches the given query.”
For example:
Expected Output
Expected Output
description matches the regex expression key.*rd.
When to Use Query Builder Functions
For most use cases, we recommend using the full text search operators instead of query builder functions. However, there are three situations where query builder functions are useful.- If you need an advanced query type, like regex.
- If you want to leverage ParadeDB’s support for JSON query syntax.
-
If you want to force query pushdown into the ParadeDB custom scan. There are some cases where queries that don’t contain a ParadeDB
operator can be more efficiently executed by ParadeDB vs. standard Postgres, like TopN or aggregate queries. In this situation, adding an
AND ... pdb.all()WHEREclause is semantically equivalent and forces ParadeDB to execute the query.