Skip to main content

elasticsearch-store / interfaces

interfaces

Index

Interfaces

InterfaceDescription
BulkResponse-
BulkResponseItem-
DataSchemaData Schema and Version
IndexConfigA versioned Index Configuration
IndexModelOptionsA list of options that are configured during run time and will always override the config
IndexModelRecord-
IndexSchemaElasticsearch Index Schema, Mapping and Version
MigrateIndexOptions-

Type Aliases

AsyncFn()<T>

AsyncFn<T>: () => Promise<T>

Type parameters

Type parameter
T

Returns

Promise<T>

Source

elasticsearch-store/src/interfaces.ts:171


BulkAction

BulkAction: "index" | "create" | "delete" | "update"

Source

elasticsearch-store/src/interfaces.ts:173


BulkResponseItems

BulkResponseItems: { [key in BulkAction]?: BulkResponseItem }

Source

elasticsearch-store/src/interfaces.ts:187


CreateRecordInput<T>

CreateRecordInput<T>: Omit<T, keyof IndexModelRecord> & object

Type declaration

client_id

client_id: number

Type parameters

Type parameter
T extends IndexModelRecord

Source

elasticsearch-store/src/interfaces.ts:224


FindOneOptions<T>

FindOneOptions<T>: object

Type parameters

Type parameter
T

Type declaration

excludes?

optional excludes: keyof T[]

includes?

optional includes: keyof T[]

variables?

optional variables: xLuceneVariables

Source

elasticsearch-store/src/interfaces.ts:300


FindOptions<T>

FindOptions<T>: object

Type parameters

Type parameter
T

Type declaration

excludes?

optional excludes: keyof T[]

from?

optional from: number

includes?

optional includes: keyof T[]

size?

optional size: number

sort?

optional sort: string

variables?

optional variables: xLuceneVariables

Source

elasticsearch-store/src/interfaces.ts:291


IndexModelConfig<T>

IndexModelConfig<T>: Omit<IndexConfig<T>, "namespace" | "id_field" | "index_schema" | "data_schema" | "default_query_access" | "enable_index_mutations"> & object

Type declaration

sanitize_fields?

optional sanitize_fields: SanitizeFields

Sanitize / cleanup fields mapping, like trim or trimAndToLower

schema

schema: any

JSON Schema

strict_mode?

optional strict_mode: boolean

Specify whether the data should be strictly validated, defaults to true

timeseries?

optional timeseries: boolean

Use a Timeseries Index

unique_fields?

optional unique_fields: keyof T[]

Unique fields across on Index

version

version: number

Schema Version

Type parameters

Type parameter
T extends IndexModelRecord

Source

elasticsearch-store/src/interfaces.ts:234


MigrateIndexStoreOptions

MigrateIndexStoreOptions: Omit<MigrateIndexOptions, "config">

Source

elasticsearch-store/src/interfaces.ts:314


SanitizeFields

SanitizeFields: object

Index signature

[field: string]: "trimAndToLower" | "trim" | "toSafeString"

Source

elasticsearch-store/src/interfaces.ts:259


SearchResult<T>

SearchResult<T>: object

Type parameters

Type parameter
T

Type declaration

_fetched

_fetched: number

_total

_total: number

results

results: T[]

Source

elasticsearch-store/src/interfaces.ts:316


Shard

Shard: object

Type declaration

primary

primary: boolean

stage

stage: string

Source

elasticsearch-store/src/interfaces.ts:195


TimeSeriesFormat

TimeSeriesFormat: "daily" | "monthly" | "yearly"

Source

elasticsearch-store/src/interfaces.ts:132


UpdateRecordInput<T>

UpdateRecordInput<T>: Partial<Omit<T, keyof IndexModelRecord>> & object

Type declaration

client_id?

optional client_id: number

Type parameters

Type parameter
T extends IndexModelRecord

Source

elasticsearch-store/src/interfaces.ts:228