For AI agents: this page is also available as Markdown at /docs/limits-and-errors.md. Every docs page is: add .md to its URL. llms.txt lists them all.
Limits and errors
WarpSearch has two kinds of limits. Plan limits depend on your plan, and their values change, so they are not listed here: see the free tier and /pricing, or call GET /v1/usage to see yours. Fixed limits are properties of the engine and are the same on every plan. A request that breaks either kind fails with one of the error codes below.
#Plan limits
| Limit | What happens when you exceed it |
|---|---|
| Collections | Creating another answers 403 limit_exceeded. |
| Stored data | Writes are throttled or refused according to your plan. Check usage in the console. |
| Documents and bytes per write request | 413 request_too_large. Send smaller batches. |
Hits per search (limit) and result window (offset + limit) | 422 limit_exceeded. |
| Facets per request and buckets per facet | 422 limit_exceeded. A size of -1 is capped at the plan's limit. |
| Query size, clause count and nesting depth | 422 limit_exceeded. Query size counts filters, variables, facets and sorts as well as the query. |
| Time per request | 504 timeout. |
| Requests per second and at the same time (document writes and deletes are exempt) | 429 rate_limited or too_many_concurrent_requests. |
| Regex and wildcard queries | 403 forbidden when your plan does not include them. rwildcard and substring count as wildcard queries, and substring with regex as a regex query. |
| Response size and monthly returned data | Per-response caps apply on the free tier, and returned data is billed beyond the allowance. |
| Exact (brute-force) vector search | Disabled above a vector count on the free tier. |
See API keys, roles and rate limits for how rate limits behave and Pricing for the cost side.
#Fixed limits
| Limit | Value |
|---|---|
| Collection name | ^[a-z][a-z0-9_]*$ |
| Collection description | 2000 characters |
| Collection metadata | 16 KB of JSON |
| Field name | ASCII letters, digits and _, starting with a letter, no __, at most 127 bytes |
| Indexed term length | 255 bytes. Longer keyword values are kept distinct, but pattern queries may not reach the cut-off tail. |
| Vector dimensions | 8192 |
kNN num_candidates | 10000. k is bounded by your result window. |
| Date histogram buckets | 5000, and 1024 when the histogram has metrics or nested facets |
| Fuzzy edit distance | 2 |
cardinality precision_threshold | 40000 |
Percentile compression | 20 to 1000 |
#Error format
REST errors from /v1 follow RFC 9457 problem details, with the content type application/problem+json:
{
"type": "https://warpsearch.io/docs/errors/limit_exceeded",
"title": "Unprocessable Entity",
"status": 422,
"code": "limit_exceeded",
"detail": "offset + limit exceeds the result window for your plan",
"request_id": "7d1c1a3e0f9b4c2e"
}
Branch on code, show detail to a developer, and include request_id when you contact support. Responses to calls on the Elasticsearch, OpenSearch and Solr compatible endpoints use those APIs' own error shapes with the same HTTP status, so existing clients keep working.
#Error codes
| Status | code | Meaning | What to do |
|---|---|---|---|
400 | invalid_request | Malformed body, unknown request field, no documents, or a schema that does not parse (unknown type or option, bad field name). The detail names the problem. | Fix the request. |
400 | invalid_collection_name | The name breaks the naming rule. | Use lowercase letters, digits and _, starting with a letter. |
400 | invalid_schema | A schema update defines nothing, or clashes with a name already in use. | Check the schema format. |
400 | invalid_class, invalid_labels | A collection's class or labels are not valid. | Read detail. See Create a collection. |
400 | invalid_mapping | On the Elasticsearch and OpenSearch compatible endpoints: the mapping is malformed or empty, or uses an unsupported type. | Check the field types. |
400 | invalid_field | A field name does not exist or is not allowed. | Check the collection's fields with GET /v1/collections/{c}. |
400 | query_error | The query could not be parsed or is invalid. | Read detail, which names the position. |
400 | unsupported_feature | The query uses something WarpSearch does not offer. | See the status notes in Query languages. |
401 | unauthenticated | Missing or invalid credentials. | Check the key. |
401 | key_expired | The API key has expired. | Create a new key. |
401 | credentials_expired | The account the key belongs to has expired. | Contact your organization's admin. |
403 | forbidden | Your role is too low for this call, or the query uses wildcard or regex queries your plan does not include. | Use a key with the role named in detail, or change the query or plan. |
403 | tenant_suspended | The organization's account is suspended. | Contact support. |
403 | tls_required | Password authentication was sent over plain HTTP. | Use HTTPS. |
403 | ip_not_allowed | The key or account does not accept requests from your address. | Call from an allowed address. |
403 | limit_exceeded | You have reached your plan's collection limit. | Delete a collection or change plan. |
403 | no_organization | The signed-in user has no active organization. | Pick an organization in the console. |
404 | not_found | No such collection or document, or you hold no role on it. | Check the name and your key. |
404 | unknown_endpoint | The request went to a host name WarpSearch does not serve. | Use api.warpsearch.io. |
409 | already_exists | A collection with that name exists. | Choose another name. |
409 | collection_deleting | The collection is being deleted, or a collection of that name is still being removed. | Wait, then retry. |
409 | collection_cloning | A write or schema change reached a collection that is still being cloned. | Wait for the clone to finish (clone.state on the collection). See Clone a collection. |
409 | source_not_stored | A clone with documents of a collection that keeps no document sources, such as a stream collection. | Clone without documents. |
409 | failed_precondition | The collection is not in a state that allows the operation. | Read detail, then retry. |
409 | incompatible_schema | A schema change would break data already indexed (a new type, vector dimensions, analyzer and so on). The detail names the field. | Add a new field and reindex. See Changes that are refused. |
413 | request_too_large | The request is over the plan's documents or bytes per request. | Split it. |
415 | unsupported_media_type | The body is not sent as JSON (or NDJSON for documents), or its Content-Encoding is not gzip or identity. | Set Content-Type: application/json. |
422 | clone_encrypted_source | A clone with documents into another organization (made by WarpSearch support) of a collection encrypted with your own key. | Clone within the organization. |
422 | limit_exceeded | A plan limit on a search, such as page size, result window, facets or clauses. | Reduce the request, or change plan. |
429 | rate_limited | Over your request rate. | Wait for Retry-After. |
429 | too_many_concurrent_requests | Too many requests at once. | Retry shortly. |
429 | too_many_auth_failures | Too many failed authentications from your address. | Fix the credentials. |
429 | resource_exhausted | The search backend is overloaded. | Retry later with backoff. |
500 | internal | Something failed on our side. | Retry, then report the request_id. |
503 | warming_up | The collection is loading after being idle, or waiting for capacity. | Retry after Retry-After. |
503 | unavailable, moving | The search backend is temporarily unavailable, or the collection is being moved. | Retry with backoff. |
503 | auth_unavailable, auth_busy | Authentication is briefly unavailable or overloaded. | Retry shortly. |
503 | recovery_required | The collection needs recovery before it can serve. | Contact support with the request_id. |
503 | durability_unknown | The write applied, but its requested persistence could not be confirmed. | Retry full replacements with the same ids; read back before retrying increments or appends. |
202 | commit_running | A commit continues in the background. | Repeat the refresh to wait for completion. |
504 | timeout | The request ran past your plan's time limit. | Narrow it with filters or a time range. |
Two kinds of code appear in the body of a write response rather than as the HTTP error: unknown_field (the document uses a field that is not in the schema and has no type suffix) and the per-document codes in errors. See Ingesting documents.
#Retrying
| Situation | Retry? |
|---|---|
429, 503, 504 | Use backoff and jitter, honoring Retry-After; read back non-idempotent patches before retrying an uncertain write. |
500 | Yes, a few times. |
| Network error or timeout on a write | Full replacements with stable ids are safe to retry. Read back non-idempotent patches first. |
400, 401, 403, 404, 409, 413, 422 | No. The same request will fail again until you change something. |
A 413 write is not retried as is: split the batch first. A 422 search is not retried either: lower the limit, the page depth or the facet size.
#Warnings
When WarpSearch approximates something instead of rejecting it, the request succeeds and the response carries a warnings array (and a Warning: 299 header on compatible endpoints). Examples are a score approximation in a multi_match, an analyzer that fell back to standard, a clamped percentile compression or an ignored index setting. Read warnings while you develop: they show where WarpSearch differs from the engine you are migrating from.
#Common situations
| Symptom | Cause and fix |
|---|---|
unknown_field on every document | The collection's schema does not define your field names and they have no type suffix. Add the fields to the schema, add a template, or rename the fields. |
invalid_value on some documents | A value cannot be converted to its field's type, such as "abc" in an int field. Only those documents fail. See Checks at ingest. |
403 on a call that worked yesterday | The creator of the key may have left the organization, or the key's role was lowered. Check GET /v1/auth/me. |
404 for a collection you just created | Names are per organization. Check which organization the key belongs to. |
503 warming_up on the first request of the day | An idle collection is loading. Retry. Always warm avoids it; see Pricing. |
422 on a histogram | The span has too many buckets. Use a larger interval or a narrower range. |
| Slow total counts | Set track_total to false when you do not show the total. |