API generation

This commit is contained in:
delvedor
2020-03-17 11:38:44 +01:00
parent 9a9057db9e
commit f1fcf4746d
4 changed files with 118 additions and 102 deletions

View File

@ -18,6 +18,7 @@ function buildCatAliases (opts) {
'help',
's',
'v',
'expand_wildcards',
'pretty',
'human',
'error_trace',
@ -26,6 +27,7 @@ function buildCatAliases (opts) {
]
const snakeCase = {
expandWildcards: 'expand_wildcards',
errorTrace: 'error_trace',
filterPath: 'filter_path'
}

View File

@ -24,6 +24,7 @@ function buildCatIndices (opts) {
'time',
'v',
'include_unloaded_segments',
'expand_wildcards',
'pretty',
'human',
'error_trace',
@ -34,6 +35,7 @@ function buildCatIndices (opts) {
const snakeCase = {
masterTimeout: 'master_timeout',
includeUnloadedSegments: 'include_unloaded_segments',
expandWildcards: 'expand_wildcards',
errorTrace: 'error_trace',
filterPath: 'filter_path'
}

View File

@ -36,6 +36,7 @@ export interface CatAliases extends Generic {
help?: boolean;
s?: string | string[];
v?: boolean;
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
}
export interface CatAllocation extends Generic {
@ -98,6 +99,7 @@ export interface CatIndices extends Generic {
time?: 'd' | 'h' | 'm' | 's' | 'ms' | 'micros' | 'nanos';
v?: boolean;
include_unloaded_segments?: boolean;
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
}
export interface CatMaster extends Generic {
@ -267,7 +269,7 @@ export interface ClusterGetSettings extends Generic {
export interface ClusterHealth extends Generic {
index?: string | string[];
expand_wildcards?: 'open' | 'closed' | 'none' | 'all';
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
level?: 'cluster' | 'indices' | 'shards';
local?: boolean;
master_timeout?: string;
@ -315,7 +317,7 @@ export interface ClusterState extends Generic {
wait_for_timeout?: string;
ignore_unavailable?: boolean;
allow_no_indices?: boolean;
expand_wildcards?: 'open' | 'closed' | 'none' | 'all';
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
}
export interface ClusterStats extends Generic {
@ -329,7 +331,7 @@ export interface Count<T = any> extends Generic {
ignore_unavailable?: boolean;
ignore_throttled?: boolean;
allow_no_indices?: boolean;
expand_wildcards?: 'open' | 'closed' | 'none' | 'all';
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
min_score?: number;
preference?: string;
routing?: string | string[];
@ -383,7 +385,7 @@ export interface DeleteByQuery<T = any> extends Generic {
ignore_unavailable?: boolean;
allow_no_indices?: boolean;
conflicts?: 'abort' | 'proceed';
expand_wildcards?: 'open' | 'closed' | 'none' | 'all';
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
lenient?: boolean;
preference?: string;
q?: string;
@ -480,7 +482,7 @@ export interface FieldCaps extends Generic {
fields?: string | string[];
ignore_unavailable?: boolean;
allow_no_indices?: boolean;
expand_wildcards?: 'open' | 'closed' | 'none' | 'all';
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
include_unmapped?: boolean;
}
@ -556,7 +558,7 @@ export interface IndicesClearCache extends Generic {
query?: boolean;
ignore_unavailable?: boolean;
allow_no_indices?: boolean;
expand_wildcards?: 'open' | 'closed' | 'none' | 'all';
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
request?: boolean;
}
@ -575,7 +577,7 @@ export interface IndicesClose extends Generic {
master_timeout?: string;
ignore_unavailable?: boolean;
allow_no_indices?: boolean;
expand_wildcards?: 'open' | 'closed' | 'none' | 'all';
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
wait_for_active_shards?: string;
}
@ -593,7 +595,7 @@ export interface IndicesDelete extends Generic {
master_timeout?: string;
ignore_unavailable?: boolean;
allow_no_indices?: boolean;
expand_wildcards?: 'open' | 'closed' | 'none' | 'all';
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
}
export interface IndicesDeleteAlias extends Generic {
@ -614,7 +616,7 @@ export interface IndicesExists extends Generic {
local?: boolean;
ignore_unavailable?: boolean;
allow_no_indices?: boolean;
expand_wildcards?: 'open' | 'closed' | 'none' | 'all';
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
flat_settings?: boolean;
include_defaults?: boolean;
}
@ -624,7 +626,7 @@ export interface IndicesExistsAlias extends Generic {
index?: string | string[];
ignore_unavailable?: boolean;
allow_no_indices?: boolean;
expand_wildcards?: 'open' | 'closed' | 'none' | 'all';
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
local?: boolean;
}
@ -640,7 +642,7 @@ export interface IndicesExistsType extends Generic {
type: string | string[];
ignore_unavailable?: boolean;
allow_no_indices?: boolean;
expand_wildcards?: 'open' | 'closed' | 'none' | 'all';
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
local?: boolean;
}
@ -650,7 +652,7 @@ export interface IndicesFlush extends Generic {
wait_if_ongoing?: boolean;
ignore_unavailable?: boolean;
allow_no_indices?: boolean;
expand_wildcards?: 'open' | 'closed' | 'none' | 'all';
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
}
export interface IndicesForcemerge extends Generic {
@ -658,7 +660,7 @@ export interface IndicesForcemerge extends Generic {
flush?: boolean;
ignore_unavailable?: boolean;
allow_no_indices?: boolean;
expand_wildcards?: 'open' | 'closed' | 'none' | 'all';
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
max_num_segments?: number;
only_expunge_deletes?: boolean;
}
@ -668,7 +670,7 @@ export interface IndicesGet extends Generic {
local?: boolean;
ignore_unavailable?: boolean;
allow_no_indices?: boolean;
expand_wildcards?: 'open' | 'closed' | 'none' | 'all';
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
flat_settings?: boolean;
include_defaults?: boolean;
master_timeout?: string;
@ -679,7 +681,7 @@ export interface IndicesGetAlias extends Generic {
index?: string | string[];
ignore_unavailable?: boolean;
allow_no_indices?: boolean;
expand_wildcards?: 'open' | 'closed' | 'none' | 'all';
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
local?: boolean;
}
@ -689,7 +691,7 @@ export interface IndicesGetFieldMapping extends Generic {
include_defaults?: boolean;
ignore_unavailable?: boolean;
allow_no_indices?: boolean;
expand_wildcards?: 'open' | 'closed' | 'none' | 'all';
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
local?: boolean;
}
@ -697,7 +699,7 @@ export interface IndicesGetMapping extends Generic {
index?: string | string[];
ignore_unavailable?: boolean;
allow_no_indices?: boolean;
expand_wildcards?: 'open' | 'closed' | 'none' | 'all';
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
master_timeout?: string;
local?: boolean;
}
@ -708,7 +710,7 @@ export interface IndicesGetSettings extends Generic {
master_timeout?: string;
ignore_unavailable?: boolean;
allow_no_indices?: boolean;
expand_wildcards?: 'open' | 'closed' | 'none' | 'all';
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
flat_settings?: boolean;
local?: boolean;
include_defaults?: boolean;
@ -725,7 +727,7 @@ export interface IndicesGetUpgrade extends Generic {
index?: string | string[];
ignore_unavailable?: boolean;
allow_no_indices?: boolean;
expand_wildcards?: 'open' | 'closed' | 'none' | 'all';
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
}
export interface IndicesOpen extends Generic {
@ -734,7 +736,7 @@ export interface IndicesOpen extends Generic {
master_timeout?: string;
ignore_unavailable?: boolean;
allow_no_indices?: boolean;
expand_wildcards?: 'open' | 'closed' | 'none' | 'all';
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
wait_for_active_shards?: string;
}
@ -752,7 +754,7 @@ export interface IndicesPutMapping<T = any> extends Generic {
master_timeout?: string;
ignore_unavailable?: boolean;
allow_no_indices?: boolean;
expand_wildcards?: 'open' | 'closed' | 'none' | 'all';
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
body: T;
}
@ -763,7 +765,7 @@ export interface IndicesPutSettings<T = any> extends Generic {
preserve_existing?: boolean;
ignore_unavailable?: boolean;
allow_no_indices?: boolean;
expand_wildcards?: 'open' | 'closed' | 'none' | 'all';
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
flat_settings?: boolean;
body: T;
}
@ -788,7 +790,7 @@ export interface IndicesRefresh extends Generic {
index?: string | string[];
ignore_unavailable?: boolean;
allow_no_indices?: boolean;
expand_wildcards?: 'open' | 'closed' | 'none' | 'all';
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
}
export interface IndicesRollover<T = any> extends Generic {
@ -805,7 +807,7 @@ export interface IndicesSegments extends Generic {
index?: string | string[];
ignore_unavailable?: boolean;
allow_no_indices?: boolean;
expand_wildcards?: 'open' | 'closed' | 'none' | 'all';
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
verbose?: boolean;
}
@ -814,7 +816,7 @@ export interface IndicesShardStores extends Generic {
status?: string | string[];
ignore_unavailable?: boolean;
allow_no_indices?: boolean;
expand_wildcards?: 'open' | 'closed' | 'none' | 'all';
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
}
export interface IndicesShrink<T = any> extends Generic {
@ -846,7 +848,7 @@ export interface IndicesStats extends Generic {
types?: string | string[];
include_segment_file_sizes?: boolean;
include_unloaded_segments?: boolean;
expand_wildcards?: 'open' | 'closed' | 'none' | 'all';
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
forbid_closed_indices?: boolean;
}
@ -859,7 +861,7 @@ export interface IndicesUpdateAliases<T = any> extends Generic {
export interface IndicesUpgrade extends Generic {
index?: string | string[];
allow_no_indices?: boolean;
expand_wildcards?: 'open' | 'closed' | 'none' | 'all';
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
ignore_unavailable?: boolean;
wait_for_completion?: boolean;
only_ancient_segments?: boolean;
@ -871,7 +873,7 @@ export interface IndicesValidateQuery<T = any> extends Generic {
explain?: boolean;
ignore_unavailable?: boolean;
allow_no_indices?: boolean;
expand_wildcards?: 'open' | 'closed' | 'none' | 'all';
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
q?: string;
analyzer?: string;
analyze_wildcard?: boolean;
@ -1024,7 +1026,7 @@ export interface RankEval<T = any> extends Generic {
index?: string | string[];
ignore_unavailable?: boolean;
allow_no_indices?: boolean;
expand_wildcards?: 'open' | 'closed' | 'none' | 'all';
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
search_type?: 'query_then_fetch' | 'dfs_query_then_fetch';
body: T;
}
@ -1078,7 +1080,7 @@ export interface Search<T = any> extends Generic {
ignore_unavailable?: boolean;
ignore_throttled?: boolean;
allow_no_indices?: boolean;
expand_wildcards?: 'open' | 'closed' | 'none' | 'all';
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
lenient?: boolean;
preference?: string;
q?: string;
@ -1118,7 +1120,7 @@ export interface SearchShards extends Generic {
local?: boolean;
ignore_unavailable?: boolean;
allow_no_indices?: boolean;
expand_wildcards?: 'open' | 'closed' | 'none' | 'all';
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
}
export interface SearchTemplate<T = any> extends Generic {
@ -1126,7 +1128,7 @@ export interface SearchTemplate<T = any> extends Generic {
ignore_unavailable?: boolean;
ignore_throttled?: boolean;
allow_no_indices?: boolean;
expand_wildcards?: 'open' | 'closed' | 'none' | 'all';
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
preference?: string;
routing?: string | string[];
scroll?: string;
@ -1281,7 +1283,7 @@ export interface UpdateByQuery<T = any> extends Generic {
ignore_unavailable?: boolean;
allow_no_indices?: boolean;
conflicts?: 'abort' | 'proceed';
expand_wildcards?: 'open' | 'closed' | 'none' | 'all';
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
lenient?: boolean;
pipeline?: string;
preference?: string;

View File

@ -54,7 +54,7 @@ const result = await client.search({
maxRetries: 3
})
// calback API
// callback API
client.search({
index: 'my-index',
from: 20,
@ -163,7 +163,8 @@ client.cat.aliases({
h: string | string[],
help: boolean,
s: string | string[],
v: boolean
v: boolean,
expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all'
})
----
link:{ref}/cat-alias.html[Documentation] +
@ -190,6 +191,10 @@ link:{ref}/cat-alias.html[Documentation] +
|`v`
|`boolean` - Verbose mode. Display column headers
|`expand_wildcards` or `expandWildcards`
|`'open' \| 'closed' \| 'hidden' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
_Default:_ `all`
|===
=== cat.allocation
@ -394,7 +399,8 @@ client.cat.indices({
s: string | string[],
time: 'd' | 'h' | 'm' | 's' | 'ms' | 'micros' | 'nanos',
v: boolean,
include_unloaded_segments: boolean
include_unloaded_segments: boolean,
expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all'
})
----
link:{ref}/cat-indices.html[Documentation] +
@ -439,6 +445,10 @@ link:{ref}/cat-indices.html[Documentation] +
|`include_unloaded_segments` or `includeUnloadedSegments`
|`boolean` - If set to true segment stats will include stats for segments that are not currently loaded into memory
|`expand_wildcards` or `expandWildcards`
|`'open' \| 'closed' \| 'hidden' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
_Default:_ `all`
|===
=== cat.master
@ -1109,7 +1119,7 @@ link:{ref}/cluster-update-settings.html[Documentation] +
----
client.cluster.health({
index: string | string[],
expand_wildcards: 'open' | 'closed' | 'none' | 'all',
expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all',
level: 'cluster' | 'indices' | 'shards',
local: boolean,
master_timeout: string,
@ -1129,7 +1139,7 @@ link:{ref}/cluster-health.html[Documentation] +
|`string \| string[]` - Limit the information returned to a specific index
|`expand_wildcards` or `expandWildcards`
|`'open' \| 'closed' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
|`'open' \| 'closed' \| 'hidden' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
_Default:_ `all`
|`level`
@ -1276,7 +1286,7 @@ client.cluster.state({
wait_for_timeout: string,
ignore_unavailable: boolean,
allow_no_indices: boolean,
expand_wildcards: 'open' | 'closed' | 'none' | 'all'
expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all'
})
----
link:{ref}/cluster-state.html[Documentation] +
@ -1310,7 +1320,7 @@ link:{ref}/cluster-state.html[Documentation] +
|`boolean` - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|`expand_wildcards` or `expandWildcards`
|`'open' \| 'closed' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
|`'open' \| 'closed' \| 'hidden' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
_Default:_ `open`
|===
@ -1348,7 +1358,7 @@ client.count({
ignore_unavailable: boolean,
ignore_throttled: boolean,
allow_no_indices: boolean,
expand_wildcards: 'open' | 'closed' | 'none' | 'all',
expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all',
min_score: number,
preference: string,
routing: string | string[],
@ -1378,7 +1388,7 @@ link:{ref}/search-count.html[Documentation] +
|`boolean` - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|`expand_wildcards` or `expandWildcards`
|`'open' \| 'closed' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
|`'open' \| 'closed' \| 'hidden' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
_Default:_ `open`
|`min_score` or `minScore`
@ -1547,7 +1557,7 @@ client.deleteByQuery({
ignore_unavailable: boolean,
allow_no_indices: boolean,
conflicts: 'abort' | 'proceed',
expand_wildcards: 'open' | 'closed' | 'none' | 'all',
expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all',
lenient: boolean,
preference: string,
q: string,
@ -1607,7 +1617,7 @@ _Default:_ `OR`
_Default:_ `abort`
|`expand_wildcards` or `expandWildcards`
|`'open' \| 'closed' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
|`'open' \| 'closed' \| 'hidden' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
_Default:_ `open`
|`lenient`
@ -1936,7 +1946,7 @@ client.fieldCaps({
fields: string | string[],
ignore_unavailable: boolean,
allow_no_indices: boolean,
expand_wildcards: 'open' | 'closed' | 'none' | 'all',
expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all',
include_unmapped: boolean
})
----
@ -1956,7 +1966,7 @@ link:{ref}/search-field-caps.html[Documentation] +
|`boolean` - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|`expand_wildcards` or `expandWildcards`
|`'open' \| 'closed' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
|`'open' \| 'closed' \| 'hidden' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
_Default:_ `open`
|`include_unmapped` or `includeUnmapped`
@ -2212,7 +2222,7 @@ client.indices.clearCache({
query: boolean,
ignore_unavailable: boolean,
allow_no_indices: boolean,
expand_wildcards: 'open' | 'closed' | 'none' | 'all',
expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all',
request: boolean
})
----
@ -2238,7 +2248,7 @@ link:{ref}/indices-clearcache.html[Documentation] +
|`boolean` - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|`expand_wildcards` or `expandWildcards`
|`'open' \| 'closed' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
|`'open' \| 'closed' \| 'hidden' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
_Default:_ `open`
|`request`
@ -2292,7 +2302,7 @@ client.indices.close({
master_timeout: string,
ignore_unavailable: boolean,
allow_no_indices: boolean,
expand_wildcards: 'open' | 'closed' | 'none' | 'all',
expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all',
wait_for_active_shards: string
})
----
@ -2315,7 +2325,7 @@ link:{ref}/indices-open-close.html[Documentation] +
|`boolean` - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|`expand_wildcards` or `expandWildcards`
|`'open' \| 'closed' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
|`'open' \| 'closed' \| 'hidden' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
_Default:_ `open`
|`wait_for_active_shards` or `waitForActiveShards`
@ -2365,7 +2375,7 @@ client.indices.delete({
master_timeout: string,
ignore_unavailable: boolean,
allow_no_indices: boolean,
expand_wildcards: 'open' | 'closed' | 'none' | 'all'
expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all'
})
----
link:{ref}/indices-delete-index.html[Documentation] +
@ -2387,7 +2397,7 @@ link:{ref}/indices-delete-index.html[Documentation] +
|`boolean` - Ignore if a wildcard expression resolves to no concrete indices (default: false)
|`expand_wildcards` or `expandWildcards`
|`'open' \| 'closed' \| 'none' \| 'all'` - Whether wildcard expressions should get expanded to open or closed indices (default: open) +
|`'open' \| 'closed' \| 'hidden' \| 'none' \| 'all'` - Whether wildcard expressions should get expanded to open or closed indices (default: open) +
_Default:_ `open`
|===
@ -2453,7 +2463,7 @@ client.indices.exists({
local: boolean,
ignore_unavailable: boolean,
allow_no_indices: boolean,
expand_wildcards: 'open' | 'closed' | 'none' | 'all',
expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all',
flat_settings: boolean,
include_defaults: boolean
})
@ -2474,7 +2484,7 @@ link:{ref}/indices-exists.html[Documentation] +
|`boolean` - Ignore if a wildcard expression resolves to no concrete indices (default: false)
|`expand_wildcards` or `expandWildcards`
|`'open' \| 'closed' \| 'none' \| 'all'` - Whether wildcard expressions should get expanded to open or closed indices (default: open) +
|`'open' \| 'closed' \| 'hidden' \| 'none' \| 'all'` - Whether wildcard expressions should get expanded to open or closed indices (default: open) +
_Default:_ `open`
|`flat_settings` or `flatSettings`
@ -2494,7 +2504,7 @@ client.indices.existsAlias({
index: string | string[],
ignore_unavailable: boolean,
allow_no_indices: boolean,
expand_wildcards: 'open' | 'closed' | 'none' | 'all',
expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all',
local: boolean
})
----
@ -2514,7 +2524,7 @@ link:{ref}/indices-aliases.html[Documentation] +
|`boolean` - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|`expand_wildcards` or `expandWildcards`
|`'open' \| 'closed' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
|`'open' \| 'closed' \| 'hidden' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
_Default:_ `all`
|`local`
@ -2559,7 +2569,7 @@ client.indices.existsType({
type: string | string[],
ignore_unavailable: boolean,
allow_no_indices: boolean,
expand_wildcards: 'open' | 'closed' | 'none' | 'all',
expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all',
local: boolean
})
----
@ -2579,7 +2589,7 @@ link:{ref}/indices-types-exists.html[Documentation] +
|`boolean` - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|`expand_wildcards` or `expandWildcards`
|`'open' \| 'closed' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
|`'open' \| 'closed' \| 'hidden' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
_Default:_ `open`
|`local`
@ -2597,7 +2607,7 @@ client.indices.flush({
wait_if_ongoing: boolean,
ignore_unavailable: boolean,
allow_no_indices: boolean,
expand_wildcards: 'open' | 'closed' | 'none' | 'all'
expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all'
})
----
link:{ref}/indices-flush.html[Documentation] +
@ -2619,7 +2629,7 @@ link:{ref}/indices-flush.html[Documentation] +
|`boolean` - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|`expand_wildcards` or `expandWildcards`
|`'open' \| 'closed' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
|`'open' \| 'closed' \| 'hidden' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
_Default:_ `open`
|===
@ -2633,7 +2643,7 @@ client.indices.forcemerge({
flush: boolean,
ignore_unavailable: boolean,
allow_no_indices: boolean,
expand_wildcards: 'open' | 'closed' | 'none' | 'all',
expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all',
max_num_segments: number,
only_expunge_deletes: boolean
})
@ -2654,7 +2664,7 @@ link:{ref}/indices-forcemerge.html[Documentation] +
|`boolean` - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|`expand_wildcards` or `expandWildcards`
|`'open' \| 'closed' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
|`'open' \| 'closed' \| 'hidden' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
_Default:_ `open`
|`max_num_segments` or `maxNumSegments`
@ -2674,7 +2684,7 @@ client.indices.get({
local: boolean,
ignore_unavailable: boolean,
allow_no_indices: boolean,
expand_wildcards: 'open' | 'closed' | 'none' | 'all',
expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all',
flat_settings: boolean,
include_defaults: boolean,
master_timeout: string
@ -2696,7 +2706,7 @@ link:{ref}/indices-get-index.html[Documentation] +
|`boolean` - Ignore if a wildcard expression resolves to no concrete indices (default: false)
|`expand_wildcards` or `expandWildcards`
|`'open' \| 'closed' \| 'none' \| 'all'` - Whether wildcard expressions should get expanded to open or closed indices (default: open) +
|`'open' \| 'closed' \| 'hidden' \| 'none' \| 'all'` - Whether wildcard expressions should get expanded to open or closed indices (default: open) +
_Default:_ `open`
|`flat_settings` or `flatSettings`
@ -2719,7 +2729,7 @@ client.indices.getAlias({
index: string | string[],
ignore_unavailable: boolean,
allow_no_indices: boolean,
expand_wildcards: 'open' | 'closed' | 'none' | 'all',
expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all',
local: boolean
})
----
@ -2739,7 +2749,7 @@ link:{ref}/indices-aliases.html[Documentation] +
|`boolean` - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|`expand_wildcards` or `expandWildcards`
|`'open' \| 'closed' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
|`'open' \| 'closed' \| 'hidden' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
_Default:_ `all`
|`local`
@ -2757,7 +2767,7 @@ client.indices.getFieldMapping({
include_defaults: boolean,
ignore_unavailable: boolean,
allow_no_indices: boolean,
expand_wildcards: 'open' | 'closed' | 'none' | 'all',
expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all',
local: boolean
})
----
@ -2780,7 +2790,7 @@ link:{ref}/indices-get-field-mapping.html[Documentation] +
|`boolean` - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|`expand_wildcards` or `expandWildcards`
|`'open' \| 'closed' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
|`'open' \| 'closed' \| 'hidden' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
_Default:_ `open`
|`local`
@ -2796,7 +2806,7 @@ client.indices.getMapping({
index: string | string[],
ignore_unavailable: boolean,
allow_no_indices: boolean,
expand_wildcards: 'open' | 'closed' | 'none' | 'all',
expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all',
master_timeout: string,
local: boolean
})
@ -2814,7 +2824,7 @@ link:{ref}/indices-get-mapping.html[Documentation] +
|`boolean` - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|`expand_wildcards` or `expandWildcards`
|`'open' \| 'closed' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
|`'open' \| 'closed' \| 'hidden' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
_Default:_ `open`
|`master_timeout` or `masterTimeout`
@ -2835,7 +2845,7 @@ client.indices.getSettings({
master_timeout: string,
ignore_unavailable: boolean,
allow_no_indices: boolean,
expand_wildcards: 'open' | 'closed' | 'none' | 'all',
expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all',
flat_settings: boolean,
local: boolean,
include_defaults: boolean
@ -2860,7 +2870,7 @@ link:{ref}/indices-get-settings.html[Documentation] +
|`boolean` - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|`expand_wildcards` or `expandWildcards`
|`'open' \| 'closed' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
|`'open' \| 'closed' \| 'hidden' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
_Default:_ `open,closed`
|`flat_settings` or `flatSettings`
@ -2910,7 +2920,7 @@ client.indices.getUpgrade({
index: string | string[],
ignore_unavailable: boolean,
allow_no_indices: boolean,
expand_wildcards: 'open' | 'closed' | 'none' | 'all'
expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all'
})
----
link:{ref}/indices-upgrade.html[Documentation] +
@ -2926,7 +2936,7 @@ link:{ref}/indices-upgrade.html[Documentation] +
|`boolean` - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|`expand_wildcards` or `expandWildcards`
|`'open' \| 'closed' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
|`'open' \| 'closed' \| 'hidden' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
_Default:_ `open`
|===
@ -2941,7 +2951,7 @@ client.indices.open({
master_timeout: string,
ignore_unavailable: boolean,
allow_no_indices: boolean,
expand_wildcards: 'open' | 'closed' | 'none' | 'all',
expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all',
wait_for_active_shards: string
})
----
@ -2964,7 +2974,7 @@ link:{ref}/indices-open-close.html[Documentation] +
|`boolean` - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|`expand_wildcards` or `expandWildcards`
|`'open' \| 'closed' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
|`'open' \| 'closed' \| 'hidden' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
_Default:_ `closed`
|`wait_for_active_shards` or `waitForActiveShards`
@ -3014,7 +3024,7 @@ client.indices.putMapping({
master_timeout: string,
ignore_unavailable: boolean,
allow_no_indices: boolean,
expand_wildcards: 'open' | 'closed' | 'none' | 'all',
expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all',
body: object
})
----
@ -3037,7 +3047,7 @@ link:{ref}/indices-put-mapping.html[Documentation] +
|`boolean` - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|`expand_wildcards` or `expandWildcards`
|`'open' \| 'closed' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
|`'open' \| 'closed' \| 'hidden' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
_Default:_ `open`
|`body`
@ -3056,7 +3066,7 @@ client.indices.putSettings({
preserve_existing: boolean,
ignore_unavailable: boolean,
allow_no_indices: boolean,
expand_wildcards: 'open' | 'closed' | 'none' | 'all',
expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all',
flat_settings: boolean,
body: object
})
@ -3083,7 +3093,7 @@ link:{ref}/indices-update-settings.html[Documentation] +
|`boolean` - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|`expand_wildcards` or `expandWildcards`
|`'open' \| 'closed' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
|`'open' \| 'closed' \| 'hidden' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
_Default:_ `open`
|`flat_settings` or `flatSettings`
@ -3166,7 +3176,7 @@ client.indices.refresh({
index: string | string[],
ignore_unavailable: boolean,
allow_no_indices: boolean,
expand_wildcards: 'open' | 'closed' | 'none' | 'all'
expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all'
})
----
link:{ref}/indices-refresh.html[Documentation] +
@ -3182,7 +3192,7 @@ link:{ref}/indices-refresh.html[Documentation] +
|`boolean` - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|`expand_wildcards` or `expandWildcards`
|`'open' \| 'closed' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
|`'open' \| 'closed' \| 'hidden' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
_Default:_ `open`
|===
@ -3235,7 +3245,7 @@ client.indices.segments({
index: string | string[],
ignore_unavailable: boolean,
allow_no_indices: boolean,
expand_wildcards: 'open' | 'closed' | 'none' | 'all',
expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all',
verbose: boolean
})
----
@ -3252,7 +3262,7 @@ link:{ref}/indices-segments.html[Documentation] +
|`boolean` - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|`expand_wildcards` or `expandWildcards`
|`'open' \| 'closed' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
|`'open' \| 'closed' \| 'hidden' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
_Default:_ `open`
|`verbose`
@ -3269,7 +3279,7 @@ client.indices.shardStores({
status: string | string[],
ignore_unavailable: boolean,
allow_no_indices: boolean,
expand_wildcards: 'open' | 'closed' | 'none' | 'all'
expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all'
})
----
link:{ref}/indices-shards-stores.html[Documentation] +
@ -3288,7 +3298,7 @@ link:{ref}/indices-shards-stores.html[Documentation] +
|`boolean` - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|`expand_wildcards` or `expandWildcards`
|`'open' \| 'closed' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
|`'open' \| 'closed' \| 'hidden' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
_Default:_ `open`
|===
@ -3380,7 +3390,7 @@ client.indices.stats({
types: string | string[],
include_segment_file_sizes: boolean,
include_unloaded_segments: boolean,
expand_wildcards: 'open' | 'closed' | 'none' | 'all',
expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all',
forbid_closed_indices: boolean
})
----
@ -3419,7 +3429,7 @@ _Default:_ `indices`
|`boolean` - If set to true segment stats will include stats for segments that are not currently loaded into memory
|`expand_wildcards` or `expandWildcards`
|`'open' \| 'closed' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
|`'open' \| 'closed' \| 'hidden' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
_Default:_ `open`
|`forbid_closed_indices` or `forbidClosedIndices`
@ -3459,7 +3469,7 @@ link:{ref}/indices-aliases.html[Documentation] +
client.indices.upgrade({
index: string | string[],
allow_no_indices: boolean,
expand_wildcards: 'open' | 'closed' | 'none' | 'all',
expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all',
ignore_unavailable: boolean,
wait_for_completion: boolean,
only_ancient_segments: boolean
@ -3475,7 +3485,7 @@ link:{ref}/indices-upgrade.html[Documentation] +
|`boolean` - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|`expand_wildcards` or `expandWildcards`
|`'open' \| 'closed' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
|`'open' \| 'closed' \| 'hidden' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
_Default:_ `open`
|`ignore_unavailable` or `ignoreUnavailable`
@ -3499,7 +3509,7 @@ client.indices.validateQuery({
explain: boolean,
ignore_unavailable: boolean,
allow_no_indices: boolean,
expand_wildcards: 'open' | 'closed' | 'none' | 'all',
expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all',
q: string,
analyzer: string,
analyze_wildcard: boolean,
@ -3532,7 +3542,7 @@ WARNING: This parameter has been deprecated.
|`boolean` - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|`expand_wildcards` or `expandWildcards`
|`'open' \| 'closed' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
|`'open' \| 'closed' \| 'hidden' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
_Default:_ `open`
|`q`
@ -4114,7 +4124,7 @@ client.rankEval({
index: string | string[],
ignore_unavailable: boolean,
allow_no_indices: boolean,
expand_wildcards: 'open' | 'closed' | 'none' | 'all',
expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all',
search_type: 'query_then_fetch' | 'dfs_query_then_fetch',
body: object
})
@ -4132,7 +4142,7 @@ link:{ref}/search-rank-eval.html[Documentation] +
|`boolean` - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|`expand_wildcards` or `expandWildcards`
|`'open' \| 'closed' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
|`'open' \| 'closed' \| 'hidden' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
_Default:_ `open`
|`search_type` or `searchType`
@ -4301,7 +4311,7 @@ client.search({
ignore_unavailable: boolean,
ignore_throttled: boolean,
allow_no_indices: boolean,
expand_wildcards: 'open' | 'closed' | 'none' | 'all',
expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all',
lenient: boolean,
preference: string,
q: string,
@ -4380,7 +4390,7 @@ _Default:_ `OR`
|`boolean` - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|`expand_wildcards` or `expandWildcards`
|`'open' \| 'closed' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
|`'open' \| 'closed' \| 'hidden' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
_Default:_ `open`
|`lenient`
@ -4491,7 +4501,7 @@ client.searchShards({
local: boolean,
ignore_unavailable: boolean,
allow_no_indices: boolean,
expand_wildcards: 'open' | 'closed' | 'none' | 'all'
expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all'
})
----
link:{ref}/search-shards.html[Documentation] +
@ -4516,7 +4526,7 @@ link:{ref}/search-shards.html[Documentation] +
|`boolean` - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|`expand_wildcards` or `expandWildcards`
|`'open' \| 'closed' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
|`'open' \| 'closed' \| 'hidden' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
_Default:_ `open`
|===
@ -4530,7 +4540,7 @@ client.searchTemplate({
ignore_unavailable: boolean,
ignore_throttled: boolean,
allow_no_indices: boolean,
expand_wildcards: 'open' | 'closed' | 'none' | 'all',
expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all',
preference: string,
routing: string | string[],
scroll: string,
@ -4559,7 +4569,7 @@ link:{ref}/search-template.html[Documentation] +
|`boolean` - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|`expand_wildcards` or `expandWildcards`
|`'open' \| 'closed' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
|`'open' \| 'closed' \| 'hidden' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
_Default:_ `open`
|`preference`
@ -5129,7 +5139,7 @@ client.updateByQuery({
ignore_unavailable: boolean,
allow_no_indices: boolean,
conflicts: 'abort' | 'proceed',
expand_wildcards: 'open' | 'closed' | 'none' | 'all',
expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all',
lenient: boolean,
pipeline: string,
preference: string,
@ -5192,7 +5202,7 @@ _Default:_ `OR`
_Default:_ `abort`
|`expand_wildcards` or `expandWildcards`
|`'open' \| 'closed' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
|`'open' \| 'closed' \| 'hidden' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
_Default:_ `open`
|`lenient`