Querylight TS Demo

SimpleTextSearchIndex

Bundle returned by createSimpleTextSearchIndex.

Back to docs search

Reference Entry

SimpleTextSearchIndex

API Reference · foundation · order 127

Bundle returned by createSimpleTextSearchIndex.

SimpleTextSearchIndex

Bundle returned by createSimpleTextSearchIndex.

Declaration

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

Members

documentIndex

```ts documentIndex: DocumentIndex ```

fuzzyIndex

```ts fuzzyIndex: DocumentIndex ```

documents

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

documentsById

```ts documentsById: Map ```

idField

```ts idField: string ```

primaryFields

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

secondaryFields

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

ranking

```ts ranking: RankingAlgorithm ```

primarySuggestField

```ts primarySuggestField: string ```

secondarySuggestField

```ts secondarySuggestField: string ```

fuzzyField

```ts fuzzyField: string ```