Skip to content

SearchQuery

Selects indexed Items by full-text term, by facets, or both.

With neither term nor facets, every Item in the index matches, which is how a picker obtains its default list. When both are given, an Item must satisfy both.

SearchIndexContext for how an index handler produces the text and facets matched here

readonly optional facets?: readonly string[]

Facet values every matching Item must carry, in the key:value form produced by the index handler, such as uuid:<id> or email:<address>.

undefined; no facet filter.


readonly optional term?: string

Free text to match against the indexed text. Surrounding whitespace is ignored and matching is case-insensitive. A single word matches as a prefix; a term containing spaces, quotes, +, or - uses web-search syntax, so "Hello World" matches the phrase and +Hello -Other requires and excludes words.

undefined; only facets constrain the result.