Skip to content

Commit 0664ce5

Browse files
authored
Add more index API examples (#3430)
1 parent 683239b commit 0664ce5

File tree

95 files changed

+1534
-346
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+1534
-346
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 100 additions & 66 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/openapi/elasticsearch-serverless-openapi.json

Lines changed: 60 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 346 additions & 172 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_doc_ids/table.csv

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ connector-update-status,https://www.elastic.co/guide/en/elasticsearch/reference/
119119
convert-processor,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/convert-processor.html
120120
cron-expressions,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/api-conventions.html#api-cron-expressions
121121
csv-processor,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/csv-processor.html
122+
dangling-index-delete,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/dangling-index-delete.html
123+
dangling-index-import,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/dangling-index-import.html
124+
dangling-indices-list,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/dangling-indices-list.html
122125
data-processor,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/date-processor.html
123126
data-stream-path-param,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indices-create-data-stream.html#indices-create-data-stream-api-path-params
124127
data-streams,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/data-streams.html
@@ -226,6 +229,7 @@ index,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/index.htm
226229
indexing-buffer,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indexing-buffer.html
227230
index-modules-merge,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/index-modules-merge.html
228231
index-templates,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/index-templates.html
232+
index-templates-v1,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indices-templates-v1.html
229233
indices-aliases,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indices-aliases.html
230234
indices-analyze,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indices-analyze.html
231235
indices-clearcache,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indices-clearcache.html
@@ -234,28 +238,39 @@ indices-close,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/i
234238
indices-component-template,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indices-component-template.html
235239
indices-create-data-stream,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indices-create-data-stream.html
236240
indices-create-index,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indices-create-index.html
241+
indices-delete-alias,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indices-delete-alias.html
237242
indices-delete-index,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indices-delete-index.html
243+
indices-delete-template,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indices-delete-template.html
244+
indices-delete-template-v1,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indices-delete-template-v1.html
238245
indices-disk-usage,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indices-disk-usage.html
239246
indices-downsample-data-stream,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indices-downsample-data-stream.html
240247
indices-exists,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indices-exists.html
241248
indices-flush,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indices-flush.html
242249
indices-forcemerge,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indices-forcemerge.html
250+
indices-get-alias,
251+
https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indices-get-alias.html
243252
indices-get-field-mapping,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indices-get-field-mapping.html
244253
indices-get-index,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indices-get-index.html
245254
indices-get-mapping,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indices-get-mapping.html
246255
indices-get-settings,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indices-get-settings.html
256+
indices-get-template,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indices-get-template.html
257+
indices-get-template-v1,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indices-get-template-v1.html
247258
indices-open-close,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indices-open-close.html
248259
indices-put-mapping,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indices-put-mapping.html
249260
indices-recovery,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indices-recovery.html
250261
indices-refresh,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indices-refresh.html
251262
indices-reload-analyzers,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indices-reload-analyzers.html
263+
indices-resolve-cluster-api,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indices-resolve-cluster-api.html
252264
indices-resolve-index-api,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indices-resolve-index-api.html
253265
indices-rollover-index,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indices-rollover-index.html
254266
indices-segments,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indices-segments.html
255267
indices-shards-stores,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indices-shards-stores.html
256268
indices-shrink-index,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indices-shrink-index.html
269+
indices-simulate,https://www.elastic.co/guide/en/elasticsearch/reference/{master}/indices-simulate-index.html
270+
indices-simulate-template,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indices-simulate-template.html
257271
indices-split-index,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indices-split-index.html
258272
indices-stats,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indices-stats.html
273+
indices-template-exists-v1,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indices-template-exists-v1.html
259274
indices-templates,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indices-templates.html
260275
indices-update-settings,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indices-update-settings.html
261276
infer-trained-model-deployment,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/infer-trained-model-deployment.html
@@ -281,6 +296,7 @@ logstash-logstash-settings-file,https://www.elastic.co/guide/en/logstash/{branch
281296
lowercase-processor,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/lowercase-processor.html
282297
mapping-date-format,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/mapping-date-format.html
283298
mapping-meta-field,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/mapping-meta-field.html
299+
mapping-params,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/mapping-params.html
284300
mapping-metadata,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/mapping-fields.html
285301
mapping-roles,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/mapping-roles.html
286302
mapping-settings-limit,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/mapping-settings-limit.html

specification/_global/field_caps/FieldCapabilitiesRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import { QueryContainer } from '@_types/query_dsl/abstractions'
3333
* @rest_spec_name field_caps
3434
* @availability stack since=5.4.0 stability=stable
3535
* @availability serverless stability=stable visibility=public
36-
* @index_privileges view_index_metadata,read,manage
36+
* @index_privileges view_index_metadata,read
3737
* @doc_tag search
3838
*/
3939
export interface Request extends RequestBase {

specification/cluster/delete_component_template/ClusterDeleteComponentTemplateRequest.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import { Duration } from '@_types/Time'
2323

2424
/**
2525
* Delete component templates.
26-
* Deletes component templates.
2726
* Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
2827
* @rest_spec_name cluster.delete_component_template
2928
* @availability stack since=7.8.0 stability=stable

specification/cluster/get_component_template/ClusterGetComponentTemplateRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { Duration } from '@_types/Time'
2323

2424
/**
2525
* Get component templates.
26-
* Retrieves information about component templates.
26+
* Get information about component templates.
2727
* @rest_spec_name cluster.get_component_template
2828
* @availability stack since=7.8.0 stability=stable
2929
* @availability serverless stability=stable visibility=public

specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import { Duration } from '@_types/Time'
2424

2525
/**
2626
* Create or update a component template.
27-
* Creates or updates a component template.
2827
* Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
2928
*
3029
* An index template can be composed of multiple component templates.
@@ -39,6 +38,11 @@ import { Duration } from '@_types/Time'
3938
*
4039
* You can use C-style `/* *\/` block comments in component templates.
4140
* You can include comments anywhere in the request body except before the opening curly bracket.
41+
*
42+
* **Applying component templates**
43+
*
44+
* You cannot directly apply a component template to a data stream or index.
45+
* To be applied, a component template must be included in an index template's `composed_of` list.
4246
* @rest_spec_name cluster.put_component_template
4347
* @availability stack since=7.8.0 stability=stable
4448
* @availability serverless stability=stable visibility=public
@@ -81,7 +85,7 @@ export interface Request extends RequestBase {
8185
version?: VersionNumber
8286
/**
8387
* Optional user metadata about the component template.
84-
* May have any contents. This map is not automatically generated by Elasticsearch.
88+
* It may have any contents. This map is not automatically generated by Elasticsearch.
8589
* This information is stored in the cluster state, so keeping it short is preferable.
8690
* To unset `_meta`, replace the template without specifying this information.
8791
*/
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
summary: Create a template
2+
# method_request: PUT _component_template/template_1
3+
# description:
4+
# type: request
5+
value:
6+
template:
7+
settings:
8+
number_of_shards: 1
9+
mappings:
10+
_source:
11+
enabled: false
12+
properties:
13+
host_name:
14+
type: keyword
15+
created_at:
16+
type: date
17+
format: 'EEE MMM dd HH:mm:ss Z yyyy'
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
summary: Create a template with aliases
2+
# method_request: PUT _component_template/template_1
3+
description: >
4+
You can include index aliases in a component template.
5+
During index creation, the `{index}` placeholder in the alias name will be replaced with the actual index name that the template gets applied to.
6+
# type: request
7+
value:
8+
template:
9+
settings:
10+
number_of_shards: 1
11+
aliases:
12+
alias1: {}
13+
alias2:
14+
filter:
15+
term:
16+
user.id: kimchy
17+
routing: shard-1
18+
'{index}-alias': {}

specification/dangling_indices/delete_dangling_index/DeleteDanglingIndexRequest.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@ import { Duration } from '@_types/Time'
2323

2424
/**
2525
* Delete a dangling index.
26-
*
2726
* If Elasticsearch encounters index data that is absent from the current cluster state, those indices are considered to be dangling.
2827
* For example, this can happen if you delete more than `cluster.indices.tombstones.size` indices while an Elasticsearch node is offline.
2928
* @rest_spec_name dangling_indices.delete_dangling_index
3029
* @availability stack since=7.9.0 stability=stable
3130
* @doc_tag indices
31+
* @doc_id dangling-index-delete
32+
* @cluster_privileges manage
3233
*/
3334
export interface Request extends RequestBase {
3435
path_parts: {

specification/dangling_indices/import_dangling_index/ImportDanglingIndexRequest.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ import { Duration } from '@_types/Time'
2929
* @rest_spec_name dangling_indices.import_dangling_index
3030
* @availability stack since=7.9.0 stability=stable
3131
* @doc_tag indices
32+
* @doc_id dangling-index-import
33+
* @cluster_privileges manage
3234
*/
3335
export interface Request extends RequestBase {
3436
path_parts: {
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# summary: ''
2+
description: >
3+
A successful response from `POST /_dangling/zmM4e0JtBkeUjiHD-MihPQ?accept_data_loss=true`.
4+
# type: response
5+
# response_code: 200
6+
value:
7+
acknowledged: true

specification/dangling_indices/list_dangling_indices/ListDanglingIndicesRequest.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,7 @@ import { RequestBase } from '@_types/Base'
2929
* @rest_spec_name dangling_indices.list_dangling_indices
3030
* @availability stack since=7.9.0 stability=stable
3131
* @doc_tag indices
32+
* @doc_id dangling-indices-list
33+
* @cluster_privileges manage
3234
*/
3335
export interface Request extends RequestBase {}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# summary:
2+
# description: ''
3+
# type: response
4+
# response_code: 200
5+
value:
6+
"{\n \"dangling_indices\": [\n {\n \"index_name\": \"my-index-000001\"\
7+
,\n \"index_uuid\": \"zmM4e0JtBkeUjiHD-MihPQ\",\n \"creation_date_millis\"\
8+
: 1589414451372,\n \"node_ids\": [\n \"pL47UN3dAb2d5RCWP6lQ3e\"\n ]\n\
9+
\ }\n ]\n}"

specification/indices/analyze/IndicesAnalyzeRequest.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,18 @@ import { TextToAnalyze } from './types'
2626

2727
/**
2828
* Get tokens from text analysis.
29-
* The analyze API performs [analysis](https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis.html) on a text string and returns the resulting tokens.
29+
* The analyze API performs analysis on a text string and returns the resulting tokens.
30+
*
31+
* Generating excessive amount of tokens may cause a node to run out of memory.
32+
* The `index.analyze.max_token_count` setting enables you to limit the number of tokens that can be produced.
33+
* If more than this limit of tokens gets generated, an error occurs.
34+
* The `_analyze` endpoint without a specified index will always use `10000` as its limit.
3035
* @doc_id indices-analyze
36+
* @ext_doc_id analysis
3137
* @rest_spec_name indices.analyze
3238
* @availability stack stability=stable
3339
* @availability serverless stability=stable visibility=public
40+
* @index_privileges index
3441
*/
3542
export interface Request extends RequestBase {
3643
path_parts: {
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
summary: Perform analysis on a text string and returns the resulting tokens.
2-
method_request: GET /_analyze
3-
# description: ''
1+
summary: No index specified
2+
# method_request: GET /_analyze
3+
description: You can apply any of the built-in analyzers to the text string without specifying an index.
44
# type: request
5-
value: "{\n \"analyzer\" : \"standard\",\n \"text\" : \"Quick Brown Foxes!\"\n}"
5+
value:
6+
analyzer: standard
7+
text: this is a test
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
summary: An array of text strings
2+
# method_request: GET /_analyze
3+
description: If the text parameter is provided as array of strings, it is analyzed as a multi-value field.
4+
# type: request
5+
value:
6+
analyzer: standard
7+
text:
8+
- this is a test
9+
- the second text
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
summary: Custom analyzer example 1
2+
# method_request: GET /_analyze
3+
description: You can test a custom transient analyzer built from tokenizers, token filters, and char filters. Token filters use the filter parameter.
4+
# type: request
5+
value:
6+
tokenizer: keyword
7+
filter:
8+
- lowercase
9+
char_filter:
10+
- html_strip
11+
text: 'this is a <b>test</b>'
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
summary: Custom analyzer example 2
2+
# method_request: GET /_analyze
3+
description: Custom tokenizers, token filters, and character filters can be specified in the request body.
4+
# type: request
5+
value:
6+
tokenizer: whitespace
7+
filter:
8+
- lowercase
9+
- type: stop
10+
stopwords:
11+
- a
12+
- is
13+
- this
14+
text: this is a test
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
summary: Derive analyzer from field mapping
2+
# method_request: GET /analyze_sample/_analyze
3+
description: Run `GET /analyze_sample/_analyze` to run an analysis on the text using the default index analyzer associated with the `analyze_sample` index. Alternatively, the analyzer can be derived based on a field mapping.
4+
# type: request
5+
value:
6+
field: obj1.field1
7+
text: this is a test
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
summary: Normalizer
2+
# method_request: GET /analyze_sample/_analyze
3+
description: Run `GET /analyze_sample/_analyze` and supply a normalizer for a keyword field if there is a normalizer associated with the specified index.
4+
# type: request
5+
value:
6+
normalizer: my_normalizer
7+
text: BaR
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
summary: Explain analysis
2+
# method_request: GET /_analyze
3+
description: >
4+
If you want to get more advanced details, set `explain` to `true`. It will output all token attributes for each token. You can filter token attributes you want to output by setting the `attributes` option. NOTE: The format of the additional detail information is labelled as experimental in Lucene and it may change in the future.
5+
# type: request
6+
value:
7+
tokenizer: standard
8+
filter:
9+
- snowball
10+
text: detailed output
11+
explain: true
12+
attributes:
13+
- keyword
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# summary: ''
2+
description: A successful response for an analysis with `explain` set to `true`.
3+
# type: response
4+
# response_code: 200
5+
value:
6+
detail:
7+
custom_analyzer: true
8+
charfilters: []
9+
tokenizer:
10+
name: standard
11+
tokens:
12+
- token: detailed
13+
start_offset: 0
14+
end_offset: 8
15+
type: <ALPHANUM>
16+
position: 0
17+
- token: output
18+
start_offset: 9
19+
end_offset: 15
20+
type: <ALPHANUM>
21+
position: 1
22+
tokenfilters:
23+
- name: snowball
24+
tokens:
25+
- token: detail
26+
start_offset: 0
27+
end_offset: 8
28+
type: <ALPHANUM>
29+
position: 0
30+
keyword: false
31+
- token: output
32+
start_offset: 9
33+
end_offset: 15
34+
type: <ALPHANUM>
35+
position: 1
36+
keyword: false

specification/indices/clear_cache/IndicesIndicesClearCacheRequest.ts renamed to specification/indices/clear_cache/IndicesClearCacheRequest.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,14 @@ import { ExpandWildcards, Fields, Indices } from '@_types/common'
2424
* Clear the cache.
2525
* Clear the cache of one or more indices.
2626
* For data streams, the API clears the caches of the stream's backing indices.
27+
*
28+
* By default, the clear cache API clears all caches.
29+
* To clear only specific caches, use the `fielddata`, `query`, or `request` parameters.
30+
* To clear the cache only of specific fields, use the `fields` parameter.
2731
* @rest_spec_name indices.clear_cache
2832
* @availability stack stability=stable
2933
* @availability serverless stability=stable visibility=private
34+
* @index_privileges manage
3035
*/
3136
export interface Request extends RequestBase {
3237
path_parts: {

specification/indices/clone/IndicesCloneRequest.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,34 @@ import { Duration } from '@_types/Time'
4545
*
4646
* IMPORTANT: Indices can only be cloned if they meet the following requirements:
4747
*
48+
* * The index must be marked as read-only and have a cluster health status of green.
4849
* * The target index must not exist.
4950
* * The source index must have the same number of primary shards as the target index.
5051
* * The node handling the clone process must have sufficient free disk space to accommodate a second copy of the existing index.
5152
*
53+
* The current write index on a data stream cannot be cloned.
54+
* In order to clone the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be cloned.
55+
*
56+
* NOTE: Mappings cannot be specified in the `_clone` request. The mappings of the source index will be used for the target index.
57+
*
58+
* **Monitor the cloning process**
59+
*
60+
* The cloning process can be monitored with the cat recovery API or the cluster health API can be used to wait until all primary shards have been allocated by setting the `wait_for_status` parameter to `yellow`.
61+
*
62+
* The `_clone` API returns as soon as the target index has been added to the cluster state, before any shards have been allocated.
63+
* At this point, all shards are in the state unassigned.
64+
* If, for any reason, the target index can't be allocated, its primary shard will remain unassigned until it can be allocated on that node.
65+
*
66+
* Once the primary shard is allocated, it moves to state initializing, and the clone process begins.
67+
* When the clone operation completes, the shard will become active.
68+
* At that point, Elasticsearch will try to allocate any replicas and may decide to relocate the primary shard to another node.
69+
*
70+
* **Wait for active shards**
71+
*
72+
* Because the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well.
5273
* @rest_spec_name indices.clone
5374
* @availability stack since=7.4.0 stability=stable
75+
* @index_privileges manage
5476
*/
5577
export interface Request extends RequestBase {
5678
path_parts: {

0 commit comments

Comments
 (0)