Querylight TS Demo

DisMaxQuery

Best-field query that keeps the strongest clause dominant with an optional tie breaker.

Back to docs search

Reference Entry

DisMaxQuery

API Reference · foundation · order 73

Best-field query that keeps the strongest clause dominant with an optional tie breaker.

Relevant APIs

DisMaxQuery

Best-field query that keeps the strongest clause dominant with an optional tie breaker.

Declaration

class DisMaxQuery

Constructors

constructor

```ts constructor(__namedParameters: DisMaxQueryParams): DisMaxQuery ``` Parameters: - `__namedParameters: DisMaxQueryParams`

Members

boost

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

hits

```ts hits(documentIndex: DocumentIndex, context: QueryContext): Promise ``` Parameters: - `documentIndex: DocumentIndex` - `context: QueryContext`

highlightClauses

```ts highlightClauses(documentIndex: DocumentIndex): HighlightClause[] ``` Parameters: - `documentIndex: DocumentIndex`