> ## 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.

# Advanced Query Functions

> Query builder functions for advanced full-text query types

In addition to basic [match](https://www.paradedb.com/docs/reference/full-text/match.md), [phrase](https://www.paradedb.com/docs/reference/full-text/phrase.md), and
[term](https://www.paradedb.com/docs/reference/full-text/term.md) queries, additional advanced query types are exposed as query builder functions.

Query builder functions use the `@@@` 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:

```sql SQL theme={null}
SELECT description, rating, category
FROM mock_items
WHERE description @@@ pdb.regex('key.*rd');
```

```ts Drizzle theme={null}
import { search } from "@paradedb/drizzle-paradedb";

await db
  .select({
    description: mockItems.description,
    rating: mockItems.rating,
    category: mockItems.category,
  })
  .from(mockItems)
  .where(search.regex(mockItems.description, "key.*rd"));
```

```python Django theme={null}
from paradedb import ParadeDB, Regex

MockItem.objects.filter(
    description=ParadeDB(Regex('key.*rd'))
).values('description', 'rating', 'category')
```

```python SQLAlchemy theme={null}
from sqlalchemy import select
from sqlalchemy.orm import Session
from paradedb.sqlalchemy import search

stmt = (
    select(MockItem.description, MockItem.rating, MockItem.category)
    .where(search.regex(MockItem.description, "key.*rd"))
)

with Session(engine) as session:
    session.execute(stmt).all()
```

```ruby Rails theme={null}
MockItem.search(:description)
        .regex("key.*rd")
        .select(:description, :rating, :category)
```

```cs EF Core theme={null}
await dbContext
    .MockItems.Where(item => EF.Functions.Regex(item.Description, "key.*rd"))
    .Select(item => new { item.Description, item.Rating, item.Category })
    .ToListAsync();
```

```ini Expected Response theme={null}
       description        | rating |  category
--------------------------+--------+-------------
 Ergonomic metal keyboard |      4 | Electronics
 Plastic Keyboard         |      4 | Electronics
(2 rows)
```

This uses the [regex](https://www.paradedb.com/docs/reference/full-text/regex.md) builder function to match all rows where `description` matches the regex expression `key.*rd`.


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