Querylight TS Demo

DistanceFeatureQuery

Numeric/date feature query that boosts values closest to an origin.

Back to docs search

Reference Entry

DistanceFeatureQuery

API Reference · foundation · order 80

Numeric/date feature query that boosts values closest to an origin.

DistanceFeatureQuery

Numeric/date feature query that boosts values closest to an origin.

Declaration

class DistanceFeatureQuery

Constructors

constructor

```ts constructor(__namedParameters: DistanceFeatureQueryParams): DistanceFeatureQuery ``` Parameters: - `__namedParameters: DistanceFeatureQueryParams`

Members

boost

```ts boost: number | undefined ```

hits

```ts hits(documentIndex: DocumentIndex): Promise ``` Parameters: - `documentIndex: DocumentIndex`

highlightClauses

```ts highlightClauses(): [] ```