Elasticsearch Store: `Elasticsearch Client Method Helpers Create`
Table of contents
Functions
Functions
convertCreateParams
▸ convertCreateParams(params
, distributionMeta
): { body?
: unknown
; id
: string
; index
: string
; refresh?
: IndexRefresh
; routing?
: string
; timeout?
: string
| number
; version?
: number
; version_type?
: VersionType
; wait_for_active_shards?
: WaitForActiveShards
} | { document
: unknown
= body; id
: string
; index
: string
; refresh?
: IndexRefresh
; routing?
: string
; timeout?
: string
| number
; version?
: number
; version_type?
: VersionType
; wait_for_active_shards?
: WaitForActiveShards
} | { body?
: unknown
; id
: string
; index
: string
; refresh?
: IndexRefresh
; routing?
: string
; timeout?
: string
| number
; type
: string
; version?
: number
; version_type?
: VersionType
; wait_for_active_shards?
: WaitForActiveShards
}
Parameters
Name | Type |
---|---|
params | CreateParams <unknown > |
distributionMeta | ClientMetadata |
Returns
{ body?
: unknown
; id
: string
; index
: string
; refresh?
: IndexRefresh
; routing?
: string
; timeout?
: string
| number
; version?
: number
; version_type?
: VersionType
; wait_for_active_shards?
: WaitForActiveShards
} | { document
: unknown
= body; id
: string
; index
: string
; refresh?
: IndexRefresh
; routing?
: string
; timeout?
: string
| number
; version?
: number
; version_type?
: VersionType
; wait_for_active_shards?
: WaitForActiveShards
} | { body?
: unknown
; id
: string
; index
: string
; refresh?
: IndexRefresh
; routing?
: string
; timeout?
: string
| number
; type
: string
; version?
: number
; version_type?
: VersionType
; wait_for_active_shards?
: WaitForActiveShards
}
Defined in
elasticsearch-store/src/elasticsearch-client/method-helpers/create.ts:3