Query wrapper that replaces the base score with a custom script score.
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`