Querylight TS Demo

SimpleTextSearchIndexState

Gzipped, portable state payload for a SimpleTextSearchIndex.

Back to docs search

Reference Entry

SimpleTextSearchIndexState

API Reference · foundation · order 161

Gzipped, portable state payload for a SimpleTextSearchIndex.

SimpleTextSearchIndexState

Gzipped, portable state payload for a SimpleTextSearchIndex.

Declaration

interface SimpleTextSearchIndexState<T extends Record<string, unknown> = Record<string, unknown>>

Members

documents

```ts documents: T[] ```

idField

```ts idField: string ```

primaryFields

```ts primaryFields: string[] ```

secondaryFields

```ts secondaryFields: string[] ```

ranking

```ts ranking: RankingAlgorithm ```

documentIndexState

```ts documentIndexState: DocumentIndexState ```

fuzzyIndexState

```ts fuzzyIndexState: DocumentIndexState ```