Elasticsearch Store: `Elasticsearch Client Method Helpers Index Method`
Table of contents
Functions
Functions
convertIndexParams
▸ convertIndexParams(params
, distributionMeta
): { body?
: unknown
; id?
: string
; if_primary_term?
: number
; if_seq_no?
: number
; index
: string
; op_type?
: OpType
; refresh?
: IndexRefresh
; routing?
: string
; timeout?
: string
| number
; version?
: number
; version_type?
: VersionType
; wait_for_active_shards?
: WaitForActiveShards
} | { document
: unknown
= body; id?
: string
; if_primary_term?
: number
; if_seq_no?
: number
; index
: string
; op_type?
: OpType
; refresh?
: IndexRefresh
; routing?
: string
; timeout?
: string
| number
; version?
: number
; version_type?
: VersionType
; wait_for_active_shards?
: WaitForActiveShards
} | { body?
: unknown
; id?
: string
; if_primary_term?
: number
; if_seq_no?
: number
; index
: string
; op_type?
: OpType
; refresh?
: IndexRefresh
; routing?
: string
; timeout?
: string
| number
; type
: string
; version?
: number
; version_type?
: VersionType
; wait_for_active_shards?
: WaitForActiveShards
}
Parameters
Name | Type |
---|---|
params | IndexParams <unknown > |
distributionMeta | ClientMetadata |
Returns
{ body?
: unknown
; id?
: string
; if_primary_term?
: number
; if_seq_no?
: number
; index
: string
; op_type?
: OpType
; refresh?
: IndexRefresh
; routing?
: string
; timeout?
: string
| number
; version?
: number
; version_type?
: VersionType
; wait_for_active_shards?
: WaitForActiveShards
} | { document
: unknown
= body; id?
: string
; if_primary_term?
: number
; if_seq_no?
: number
; index
: string
; op_type?
: OpType
; refresh?
: IndexRefresh
; routing?
: string
; timeout?
: string
| number
; version?
: number
; version_type?
: VersionType
; wait_for_active_shards?
: WaitForActiveShards
} | { body?
: unknown
; id?
: string
; if_primary_term?
: number
; if_seq_no?
: number
; index
: string
; op_type?
: OpType
; 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/index-method.ts:3