elasticsearch-store / interfaces
interfaces
Index
Interfaces
Interface | Description |
---|---|
BulkResponse | - |
BulkResponseItem | - |
DataSchema | Data Schema and Version |
IndexConfig | A versioned Index Configuration |
IndexModelOptions | A list of options that are configured during run time and will always override the config |
IndexModelRecord | - |
IndexSchema | Elasticsearch 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
, keyofIndexModelRecord
> &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: keyofT
[]
includes?
optional
includes: keyofT
[]
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: keyofT
[]
from?
optional
from:number
includes?
optional
includes: keyofT
[]
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: keyofT
[]
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
, keyofIndexModelRecord
>> &object
Type declaration
client_id?
optional
client_id:number
Type parameters
Type parameter |
---|
T extends IndexModelRecord |