Querylight TS Demo

TermsQuery

Any-of exact term query against a single text field.

Back to docs search

Reference Entry

TermsQuery

API Reference · foundation · order 66

Any-of exact term query against a single text field.

Relevant APIs

TermsQuery

Any-of exact term query against a single text field.

Declaration

class TermsQuery

Constructors

constructor

```ts constructor(__namedParameters: TermsQueryParams): TermsQuery ``` Parameters: - `__namedParameters: TermsQueryParams`

Members

boost

```ts boost: number | undefined ```

hits

```ts hits(documentIndex: DocumentIndex): Promise ``` Parameters: - `documentIndex: DocumentIndex`

highlightClauses

```ts highlightClauses(): { kind: "term"; field: string; text: string; operation: OP; prefixMatch: boolean }[] ```