Querylight TS Demo

PrefixQuery

Prefix lookup query over trie-backed text fields.

Back to docs search

Reference Entry

PrefixQuery

API Reference · foundation · order 75

Prefix lookup query over trie-backed text fields.

Relevant APIs

PrefixQuery

Prefix lookup query over trie-backed text fields.

Declaration

class PrefixQuery

Constructors

constructor

```ts constructor(__namedParameters: PrefixQueryParams): PrefixQuery ``` Parameters: - `__namedParameters: PrefixQueryParams`

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 }[] ```