Querylight TS Demo

TermQuery

Exact term-level query against a single text field.

Back to docs search

Reference Entry

TermQuery

API Reference · foundation · order 65

Exact term-level query against a single text field.

Relevant APIs

TermQuery

Exact term-level query against a single text field.

Declaration

class TermQuery

Constructors

constructor

```ts constructor(__namedParameters: TermQueryParams): TermQuery ``` Parameters: - `__namedParameters: TermQueryParams`

Members

boost

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

hits

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

highlightClauses

```ts highlightClauses(): [] ```