Querylight TS Demo

ScriptExecutionContext

Runtime values exposed to ScriptQuery and ScriptScoreQuery callbacks.

Back to docs search

Reference Entry

ScriptExecutionContext

API Reference · foundation · order 40

Runtime values exposed to ScriptQuery and ScriptScoreQuery callbacks.

ScriptExecutionContext

Runtime values exposed to ScriptQuery and ScriptScoreQuery callbacks.

Declaration

interface ScriptExecutionContext

Members

documentIndex

```ts documentIndex: DocumentIndex ```

document

```ts document: Document ```

score

```ts score: number ```

values

```ts values(field: string): string[] ``` Parameters: - `field: string`

value

```ts value(field: string): string | undefined ``` Parameters: - `field: string`

numericValues

```ts numericValues(field: string): number[] ``` Parameters: - `field: string`

numericValue

```ts numericValue(field: string): number | undefined ``` Parameters: - `field: string`