> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pinakelai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Query too broad

> HTTP 422, query-too-broad. The search would match or scan too many records to answer.

| | |
| - | - |
| Type | `https://docs.pinakelai.com/errors/query-too-broad` |
| Status | 422 |
| Retry | No. Narrow the query; the same query fails again. |

## When it happens

* A phrase filter matches more than 100,000 records, or an exact filter more than 1,000,000. Short or very common terms, such as a single common Chinese character or `科技`, do this.
* An `international_registration_number` or `priority_number` search (without a number or `mark_text` filter) matches more than 1,000 records in the selected registers. Name fewer registers or fewer numbers.
* A broad search (no anchor filter) examined about 100 million records and found fewer than 100 matches.
* The query needed more memory than a single request may use.

## What to do

Narrow the search: name fewer registers in `jurisdiction`, add a filing-date range, Nice classes, or another anchor such as `owner_key`, or use a longer phrase. See [Searching](https://docs.pinakelai.com/guides/searching.md#anchored-and-broad-searches).

## Example

```json Body theme={null}
{
  "type": "https://docs.pinakelai.com/errors/query-too-broad",
  "title": "Query too broad",
  "status": 422,
  "detail": "mark_text_phrase matches more than 100,000 records. Narrow the search.",
  "request_id": "req_01M7Q40PQRSTVWXYZ012345678"
}
```

See the [errors catalogue](https://docs.pinakelai.com/api-reference/errors.md) for every error type, and [Handling errors](https://docs.pinakelai.com/guides/errors.md) for retry strategy.


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