Querylight TS Demo

ScriptScoreQuery

Query wrapper that replaces the base score with a custom script score.

Back to docs search

Reference Entry

ScriptScoreQuery

API Reference · foundation · order 83

Query wrapper that replaces the base score with a custom script score.

Relevant APIs

ScriptScoreQuery

Query wrapper that replaces the base score with a custom script score.

Declaration

class ScriptScoreQuery

Constructors

constructor

```ts constructor(__namedParameters: ScriptScoreQueryParams): ScriptScoreQuery ``` Parameters: - `__namedParameters: ScriptScoreQueryParams`

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`