---
title: Exists
---

Matches all documents with a non-null value in the specified field. All matched documents get a BM25 score of `1.0`.
This query produces the same results as Postgres' `IS NOT NULL`.

<Note>Will error if the field has not been indexed as a fast field.</Note>

```sql
SELECT description, rating, category
FROM mock_items
WHERE rating @@@ pdb.exists()
LIMIT 5;
```
