Direct sparse-vector nearest-neighbor retrieval over a SparseVectorFieldIndex.
SparseVectorQuery
Direct sparse-vector nearest-neighbor retrieval over a SparseVectorFieldIndex.
Declaration
class SparseVectorQuery
Constructors
constructor
```ts
constructor(__namedParameters: SparseVectorQueryParams): SparseVectorQuery
```
Parameters:
- `__namedParameters: SparseVectorQueryParams`Members
boost
```ts
boost: number | undefined
```hits
```ts
hits(documentIndex: DocumentIndex, context: QueryContext): Promise
```
Parameters:
- `documentIndex: DocumentIndex`
- `context: QueryContext`highlightClauses
```ts
highlightClauses(): []
```