@terascope/opensearch-client / client/method-helpers/create
client/method-helpers/create
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;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: opensearch-client/src/client/method-helpers/create.ts:3
Parameters
| Parameter | Type |
|---|---|
params | CreateParams |
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; 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; }