Querylight TS Demo

StoredSourceIndex

Stores `_source` payloads as gzipped JSON strings with index-state round-tripping.

Back to docs search

Reference Entry

StoredSourceIndex

API Reference · foundation · order 25

Stores `_source` payloads as gzipped JSON strings with index-state round-tripping.

Relevant APIs

StoredSourceIndex

Stores _source payloads as gzipped JSON strings with index-state round-tripping.

Declaration

class StoredSourceIndex

Constructors

constructor

```ts constructor(documents: Record): StoredSourceIndex ``` Parameters: - `documents: Record`

Members

indexState

```ts get indexState(): StoredSourceIndexState ```

loadState

```ts loadState(fieldIndexState: IndexState): FieldIndex ``` Parameters: - `fieldIndexState: IndexState`

indexDocument

```ts indexDocument(document: Document): void ``` Parameters: - `document: Document`

get

```ts get(id: string): Record | undefined ``` Parameters: - `id: string`