From fef887380ca5b2208213f10825a5da92743adcc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Istv=C3=A1n=20Zolt=C3=A1n=20Szab=C3=B3?= Date: Wed, 27 Aug 2025 11:47:21 +0200 Subject: [PATCH 1/2] Fixes API examples. --- ...sterPutComponentTemplateRequestExample1.yaml | 4 ++-- .../indicesPutTemplateRequestExample1.yaml | 12 ++++++------ .../ReloadSearchAnalyzersRequestExample1.yaml | 14 -------------- .../ReloadSearchAnalyzersResponseExample1.yaml | 17 +++++++++++++++++ 4 files changed, 25 insertions(+), 22 deletions(-) create mode 100644 specification/indices/reload_search_analyzers/examples/response/ReloadSearchAnalyzersResponseExample1.yaml diff --git a/specification/cluster/put_component_template/examples/request/ClusterPutComponentTemplateRequestExample1.yaml b/specification/cluster/put_component_template/examples/request/ClusterPutComponentTemplateRequestExample1.yaml index 1e8407935b..590e2ddfc2 100644 --- a/specification/cluster/put_component_template/examples/request/ClusterPutComponentTemplateRequestExample1.yaml +++ b/specification/cluster/put_component_template/examples/request/ClusterPutComponentTemplateRequestExample1.yaml @@ -4,9 +4,9 @@ method_request: PUT _component_template/template_1 # type: request value: template: - settings: + settings: number_of_shards: 1 - mappings: + mappings: _source: enabled: false properties: diff --git a/specification/indices/put_template/examples/request/indicesPutTemplateRequestExample1.yaml b/specification/indices/put_template/examples/request/indicesPutTemplateRequestExample1.yaml index 227c451388..912f53e396 100644 --- a/specification/indices/put_template/examples/request/indicesPutTemplateRequestExample1.yaml +++ b/specification/indices/put_template/examples/request/indicesPutTemplateRequestExample1.yaml @@ -11,9 +11,9 @@ value: mappings: _source: enabled: false - properties: - host_name: - type: keyword - created_at: - type: date - format: 'EEE MMM dd HH:mm:ss Z yyyy' + properties: + host_name: + type: keyword + created_at: + type: date + format: 'EEE MMM dd HH:mm:ss Z yyyy' diff --git a/specification/indices/reload_search_analyzers/examples/request/ReloadSearchAnalyzersRequestExample1.yaml b/specification/indices/reload_search_analyzers/examples/request/ReloadSearchAnalyzersRequestExample1.yaml index 0c9fb35bf3..ca3f51e07c 100644 --- a/specification/indices/reload_search_analyzers/examples/request/ReloadSearchAnalyzersRequestExample1.yaml +++ b/specification/indices/reload_search_analyzers/examples/request/ReloadSearchAnalyzersRequestExample1.yaml @@ -1,15 +1 @@ -# summary: method_request: POST /my-index-000001/_reload_search_analyzers -# description: '' -# type: request -value: - _shards: - total: 2 - successful: 2 - failed: 0 - reload_details: - - index: my-index-000001 - reloaded_analyzers: - - my_synonyms - reloaded_node_ids: - - mfdqTXn_T7SGr2Ho2KT8uw diff --git a/specification/indices/reload_search_analyzers/examples/response/ReloadSearchAnalyzersResponseExample1.yaml b/specification/indices/reload_search_analyzers/examples/response/ReloadSearchAnalyzersResponseExample1.yaml new file mode 100644 index 0000000000..f33b589b52 --- /dev/null +++ b/specification/indices/reload_search_analyzers/examples/response/ReloadSearchAnalyzersResponseExample1.yaml @@ -0,0 +1,17 @@ +# summary: +description: A successful response when reloading a search analyzer of an index. +# type: response +# response_code: 200 +value: + template: + settings: + number_of_shards: 1 + mappings: + _source: + enabled: false + properties: + host_name: + type: keyword + created_at: + type: date + format: 'EEE MMM dd HH:mm:ss Z yyyy' \ No newline at end of file From f85b9a01d4a19ac6a3f96490e6c352861e732771 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Istv=C3=A1n=20Zolt=C3=A1n=20Szab=C3=B3?= Date: Wed, 27 Aug 2025 11:59:59 +0200 Subject: [PATCH 2/2] Format fix. --- ...erPutComponentTemplateRequestExample1.yaml | 22 +++++++++---------- .../indicesPutTemplateRequestExample1.yaml | 10 ++++----- ...ReloadSearchAnalyzersResponseExample1.yaml | 22 +++++++++---------- 3 files changed, 27 insertions(+), 27 deletions(-) diff --git a/specification/cluster/put_component_template/examples/request/ClusterPutComponentTemplateRequestExample1.yaml b/specification/cluster/put_component_template/examples/request/ClusterPutComponentTemplateRequestExample1.yaml index 590e2ddfc2..ba540b236d 100644 --- a/specification/cluster/put_component_template/examples/request/ClusterPutComponentTemplateRequestExample1.yaml +++ b/specification/cluster/put_component_template/examples/request/ClusterPutComponentTemplateRequestExample1.yaml @@ -4,14 +4,14 @@ method_request: PUT _component_template/template_1 # type: request value: template: - settings: - number_of_shards: 1 - mappings: - _source: - enabled: false - properties: - host_name: - type: keyword - created_at: - type: date - format: 'EEE MMM dd HH:mm:ss Z yyyy' + settings: + number_of_shards: 1 + mappings: + _source: + enabled: false + properties: + host_name: + type: keyword + created_at: + type: date + format: 'EEE MMM dd HH:mm:ss Z yyyy' diff --git a/specification/indices/put_template/examples/request/indicesPutTemplateRequestExample1.yaml b/specification/indices/put_template/examples/request/indicesPutTemplateRequestExample1.yaml index 912f53e396..aa3a2bf52a 100644 --- a/specification/indices/put_template/examples/request/indicesPutTemplateRequestExample1.yaml +++ b/specification/indices/put_template/examples/request/indicesPutTemplateRequestExample1.yaml @@ -12,8 +12,8 @@ value: _source: enabled: false properties: - host_name: - type: keyword - created_at: - type: date - format: 'EEE MMM dd HH:mm:ss Z yyyy' + host_name: + type: keyword + created_at: + type: date + format: 'EEE MMM dd HH:mm:ss Z yyyy' diff --git a/specification/indices/reload_search_analyzers/examples/response/ReloadSearchAnalyzersResponseExample1.yaml b/specification/indices/reload_search_analyzers/examples/response/ReloadSearchAnalyzersResponseExample1.yaml index f33b589b52..4c23bc6d1e 100644 --- a/specification/indices/reload_search_analyzers/examples/response/ReloadSearchAnalyzersResponseExample1.yaml +++ b/specification/indices/reload_search_analyzers/examples/response/ReloadSearchAnalyzersResponseExample1.yaml @@ -4,14 +4,14 @@ description: A successful response when reloading a search analyzer of an index. # response_code: 200 value: template: - settings: - number_of_shards: 1 - mappings: - _source: - enabled: false - properties: - host_name: - type: keyword - created_at: - type: date - format: 'EEE MMM dd HH:mm:ss Z yyyy' \ No newline at end of file + settings: + number_of_shards: 1 + mappings: + _source: + enabled: false + properties: + host_name: + type: keyword + created_at: + type: date + format: 'EEE MMM dd HH:mm:ss Z yyyy'