For AI agents: this page is also available as Markdown at /docs/concepts.md. Every docs page is: add .md to its URL. llms.txt lists them all.
Core concepts
WarpSearch stores JSON documents in collections and lets you search them with keywords, vectors or both in one query. The terms below come up throughout the docs; each links to the page that covers it in depth.
#The building blocks
| Term | What it is |
|---|---|
| Organization | Your account. Collections, API keys, members and billing all belong to one organization. A person can belong to several. |
| Collection | A named set of documents that you search together. It is the unit you create, size and delete. See Collections. |
| Document | A JSON object with an id. Writing a document with an existing id replaces the old one. See Ingesting documents. |
| Field | A key in a document. Each field has a type that decides how it is searched, sorted and faceted. See Schemas and field types. |
| Schema | The definitions of a collection's fields and templates, written as JSON or YAML and set through the WarpSearch API. See Schemas and field types. |
| Query | What you ask for, in the query language you already know. See Query languages. |
| Facet and metric | Counts, buckets and numbers computed over every match, in the same request as the hits. See Facets and aggregations. |
| API key | A ws_... secret with a role. See API keys, roles and rate limits. |
#Documents and fields
A document is a JSON object with typed fields. Nested documents keep related child fields together; see Nested documents for their behavior and REST API limitations. Elasticsearch object mappings can flatten properties, which does not preserve same-child matching.
{
"id": "b1",
"title": "The Way of Kings",
"genre": "fantasy",
"year": 2010,
"embedding": [0.12, -0.08, 0.31]
}
Fields are typed. A text field is split into words and scored with BM25, so a search for kings finds the title above. A string field is matched whole, which suits filters, sorting and facets. Numbers, dates, geo points (Geo search) and vectors have their own types. You declare types in the schema when you create the collection, or let a field-name suffix such as _t or _s choose the type. Both are described in Schemas and field types.
#Keyword, vector and hybrid search
One collection serves all three. Keyword search matches words and phrases and ranks them with BM25, which suits names, codes and exact phrases; see Full-text search for an overview and Searching. Vector search finds the nearest neighbors of an embedding. You compute the embeddings and send them, because WarpSearch does not embed text for you; see Vector search. Hybrid search combines the two in one request so each covers the other's blind spots; see Hybrid search.
Filters, sorting, facets and metrics work the same way in all three.
#Query in the language you know
Every search goes to the WarpSearch API, POST /v1/search/{c}, and names its query language: search-box text (the default), Lucene, SQL, Elasticsearch Query DSL, Solr, LogQL, Grafana or a PPL pipeline. All of them run on the same engine, and the request's own filters, sort, facets, fields and limit work the same with each. "include_translation": true shows how WarpSearch runs a given query. See Searching and Query languages.
Existing Elasticsearch, OpenSearch, Solr and turbopuffer clients can point at WarpSearch unchanged instead, through the compatible endpoints under /compat. See Elasticsearch and Moving from Elasticsearch, OpenSearch or Solr.
#Writes, then searches
A write is accepted first and becomes searchable at the next commit. You can ask for the commit as part of the write (commit=true) or refresh the collection after a load. Otherwise WarpSearch commits pending writes according to its configured commit interval and durability policy. The details, including what to do after a timeout, are in Writes, visibility and durability.
#Serverless by design
You do not size or run anything. Data lives in durable storage, and compute is attached to a collection when you use it. The one place you notice this is the cold start: a collection that has been idle for a while is loaded on its next request, which can answer 503 warming_up with a Retry-After header. You retry. The optional Always warm setting avoids it; see Pricing and cost control.
#Who can do what
Every API key and organization member has one of four cumulative roles: viewer (search and read), writer (also write and delete documents), editor (also create collections and change schemas) and admin (also delete collections and manage members and keys). The full list of what each role allows is in API keys, roles and rate limits.
Collection names, field names and the rest of the naming rules are in Collections. Limits that depend on your plan, and the errors you get when you reach them, are in Limits and errors.
#Where to go next
- Quickstart to load data and run a first query.
- Collections and Schemas and field types to model your data.
- Ingesting documents and Searching to build.