Skip to content

Search syntax

The Explorer search box and the query field of POST /v1/records/search share one query language. Queries are checked against the blueprint before they run. A query that names an attribute or relationship that does not exist fails with a clear error instead of returning nothing.

A query is one or more terms separated by spaces. A record must match every term.

linen shirt

matches records that contain both “linen” and “shirt”.

There is no OR, NOT, grouping, or quoting, so a term cannot contain a space.

A term without a colon searches the chosen blueprint’s own scalar attributes. It matches anywhere in a value and ignores case. Numbers, dates, and times match by their stored form, such as 2026-05. It does not follow relationships.

linen

A trailing * matches any ending:

sku:ABC-12*

* is only allowed at the end of a term.

selector:term narrows where a term is matched. A selector is a dotted path.

Form Example Matches
attribute:term sku:ABC* The blueprint’s own sku.
blueprint:term product:linen Any own attribute of the chosen blueprint. The blueprint can be named by code or display name, so Produkt:lniana also works.
blueprint.attribute:term product.sku:ABC* Same as sku:ABC*, written explicitly.
relationship:term colors:red Any attribute of a record linked through colors.
relationship.attribute:term colors.name:red The name of a record linked through colors.
rel.rel.attribute:term category.parent.name:summer Follows up to three relationships, then matches one attribute.

Blueprint display names are matched without regard to case. If two blueprints share a display name, use the code.

The last part of a longer path must be a scalar attribute, not a relationship, file, or JSON attribute. A term can contain only one colon.

A relationship can link to records of several blueprints, such as an item that is either a product or a material. A term through it matches the linked records of all of them: item:steel searches every attribute of the linked product or material, and item.name:steel searches name on those that have it. An attribute only one of them has, such as item.sku:HK*, matches only that blueprint’s records. A path can’t continue past such a relationship, so item.brand.name:… is rejected.

When a one-part selector could be either the blueprint’s name or one of its attributes or relationships, the blueprint wins.

@id: matches records by ID instead of by value. List several IDs separated by commas, without spaces. A record matches when its ID is any one of them:

@id:0190a6f2-7c1e-7b3a-9c4d-2e5f6a7b8c9d,0190a6f2-7c1e-7b3a-9c4d-2e5f6a7b8c9e

Put @id at the end of a relationship path to match records linked to one of the listed IDs:

Form Example Matches
@id:ids @id:…9c9d,…9c9e The chosen blueprint’s records with one of these IDs.
blueprint.@id:ids product.@id:…9c9d Same as @id:…, written explicitly.
relationship.@id:ids colors.@id:…4a1b,…4a1c Records linked through colors to one of these records.
rel.rel.@id:ids category.parent.@id:…77e0 Follows up to three relationships, then matches the linked record’s ID.

A term lists at most 100 IDs, and wildcards are not allowed. IDs that do not exist, or that belong to another blueprint, match nothing. Other terms still apply, so @id:… linen keeps only the listed records that also contain “linen”.

Because the list is part of the query, saving the search as a saved search keeps a fixed selection of records.

*:term searches every blueprint, then walks back along relationships, up to three steps, to find records of the chosen blueprint connected to a match.

*:red

finds products that are red themselves, products linked to a color named red, and products linked to a family linked to something red.

Global search is the most expensive query form. It has server-side limits on how many values, records, and links it will examine and a 250 ms time limit on each database read. If a query exceeds them, the request fails with 422 rather than returning partial results. Narrow the query with a qualified selector when that happens.

Each result includes a match explanation per term: the record and attribute that matched, and the relationship path from the result to it. In the Explorer, open Search info on a result.

The query, attribute filters, relationship facets, version scope, and system-tag filters all narrow the same result set. Facet counts reflect only the query and version scope. Attribute filters and other facets do not change them, so a count can be higher than the filtered result list.