Querylight TS Demo

BoostingQuery

Query wrapper that softly demotes hits matching a negative clause.

Back to docs search

Reference Entry

BoostingQuery

API Reference · foundation · order 77

Query wrapper that softly demotes hits matching a negative clause.

Relevant APIs

BoostingQuery

Query wrapper that softly demotes hits matching a negative clause.

Declaration

class BoostingQuery

Constructors

constructor

```ts constructor(__namedParameters: BoostingQueryParams): BoostingQuery ``` Parameters: - `__namedParameters: BoostingQueryParams`

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`