@terascope/opensearch-client / client/method-helpers/reindex
client/method-helpers/reindex
Functions
convertReIndexParams()
convertReIndexParams(
params,distributionMeta): {body:ReindexBody;refresh?:boolean;requests_per_second?:number;slices?:string|number;timeout?:string;wait_for_active_shards?:number|"all";wait_for_completion?:boolean; } | {dest: {index:string;op_type?:OpType;type?:string;version_type?:VersionType; };max_docs?:number;refresh?:boolean;requests_per_second?:number;scroll?:string;slices?:string|number;source: {_source?:string|boolean|string[];index:string;query?:Record<string,any>;remote?:Remote;size?:number;slice?: {id?:number;max?:number; }; };timeout?:string;wait_for_active_shards?:number|"all";wait_for_completion?:boolean; }
Defined in: opensearch-client/src/client/method-helpers/reindex.ts:4
Parameters
| Parameter | Type |
|---|---|
params | ReindexParams |
distributionMeta | ClientMetadata |
Returns
{ body: ReindexBody; refresh?: boolean; requests_per_second?: number; slices?: string | number; timeout?: string; wait_for_active_shards?: number | "all"; wait_for_completion?: boolean; } | { dest: { index: string; op_type?: OpType; type?: string; version_type?: VersionType; }; max_docs?: number; refresh?: boolean; requests_per_second?: number; scroll?: string; slices?: string | number; source: { _source?: string | boolean | string[]; index: string; query?: Record<string, any>; remote?: Remote; size?: number; slice?: { id?: number; max?: number; }; }; timeout?: string; wait_for_active_shards?: number | "all"; wait_for_completion?: boolean; }