From d4a3dfe0f0d477550b6edbdd49d751c3ee541f18 Mon Sep 17 00:00:00 2001 From: Miguel Grinberg Date: Wed, 9 Jul 2025 12:49:37 +0100 Subject: [PATCH 1/3] Fixed a badly formatted example --- output/openapi/elasticsearch-openapi.json | 2 +- .../elasticsearch-serverless-openapi.json | 2 +- output/schema/schema.json | 12 +-- .../request/EqlSearchRequestExample2.yaml | 2 +- .../request/QueryRequestExample1.yaml | 2 +- .../indicesPutSettingsRequestExample3.yaml | 84 +++++++++++++------ .../request/MlInferTrainedModelExample1.yaml | 2 +- 7 files changed, 68 insertions(+), 38 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index f309f0a46c..2c040a596c 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -121166,7 +121166,7 @@ "indicesPutSettingsRequestExample3": { "summary": "Update index analysis", "description": "To add an analyzer, you must close the index, define the analyzer, then reopen the index.", - "value": "{\n \"analysis\" : {\n \"analyzer\":{\n \"content\":{\n \"type\":\"custom\",\n \"tokenizer\":\"whitespace\"\n }\n }\n }\n}\n\nPOST /my-index-000001/_open" + "value": "{\n \"analysis\": {\n \"analyzer\": {\n \"content\": {\n \"type\": \"custom\",\n \"tokenizer\": \"whitespace\"\n }\n }\n }\n}" } } } diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 46d606bd07..e1752fd19c 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -72931,7 +72931,7 @@ "indicesPutSettingsRequestExample3": { "summary": "Update index analysis", "description": "To add an analyzer, you must close the index, define the analyzer, then reopen the index.", - "value": "{\n \"analysis\" : {\n \"analyzer\":{\n \"content\":{\n \"type\":\"custom\",\n \"tokenizer\":\"whitespace\"\n }\n }\n }\n}\n\nPOST /my-index-000001/_open" + "value": "{\n \"analysis\": {\n \"analyzer\": {\n \"content\": {\n \"type\": \"custom\",\n \"tokenizer\": \"whitespace\"\n }\n }\n }\n}" } } } diff --git a/output/schema/schema.json b/output/schema/schema.json index 47f7af0020..6598215910 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -158198,30 +158198,30 @@ "indicesPutSettingsRequestExample3": { "alternatives": [ { - "code": "resp = client.indices.close(\n index=\"my-index-000001\",\n)\n\nresp1 = client.indices.open(\n index=\"my-index-000001\",\n)", + "code": "resp = client.indices.close(\n index=\"my-index-000001\",\n)\n\nresp1 = client.indices.put_settings(\n index=\"my-index-000001\",\n settings={\n \"analysis\": {\n \"analyzer\": {\n \"content\": {\n \"type\": \"custom\",\n \"tokenizer\": \"whitespace\"\n }\n }\n }\n },\n)\n\nresp2 = client.indices.open(\n index=\"my-index-000001\",\n)", "language": "Python" }, { - "code": "const response = await client.indices.close({\n index: \"my-index-000001\",\n});\n\nconst response1 = await client.indices.open({\n index: \"my-index-000001\",\n});", + "code": "const response = await client.indices.close({\n index: \"my-index-000001\",\n});\n\nconst response1 = await client.indices.putSettings({\n index: \"my-index-000001\",\n settings: {\n analysis: {\n analyzer: {\n content: {\n type: \"custom\",\n tokenizer: \"whitespace\",\n },\n },\n },\n },\n});\n\nconst response2 = await client.indices.open({\n index: \"my-index-000001\",\n});", "language": "JavaScript" }, { - "code": "response = client.indices.close(\n index: \"my-index-000001\",\n body: {\n \"analysis\": {\n \"analyzer\": {\n \"content\": {\n \"type\": \"custom\",\n \"tokenizer\": \"whitespace\"\n }\n }\n }\n }\n)\n\nresponse1 = client.indices.open(\n index: \"my-index-000001\"\n)", + "code": "response = client.indices.close(\n index: \"my-index-000001\"\n)\n\nresponse1 = client.indices.put_settings(\n index: \"my-index-000001\",\n body: {\n \"analysis\": {\n \"analyzer\": {\n \"content\": {\n \"type\": \"custom\",\n \"tokenizer\": \"whitespace\"\n }\n }\n }\n }\n)\n\nresponse2 = client.indices.open(\n index: \"my-index-000001\"\n)", "language": "Ruby" }, { - "code": "$resp = $client->indices()->close([\n \"index\" => \"my-index-000001\",\n \"body\" => [\n \"analysis\" => [\n \"analyzer\" => [\n \"content\" => [\n \"type\" => \"custom\",\n \"tokenizer\" => \"whitespace\",\n ],\n ],\n ],\n ],\n]);\n\n$resp1 = $client->indices()->open([\n \"index\" => \"my-index-000001\",\n]);", + "code": "$resp = $client->indices()->close([\n \"index\" => \"my-index-000001\",\n]);\n\n$resp1 = $client->indices()->putSettings([\n \"index\" => \"my-index-000001\",\n \"body\" => [\n \"analysis\" => [\n \"analyzer\" => [\n \"content\" => [\n \"type\" => \"custom\",\n \"tokenizer\" => \"whitespace\",\n ],\n ],\n ],\n ],\n]);\n\n$resp2 = $client->indices()->open([\n \"index\" => \"my-index-000001\",\n]);", "language": "PHP" }, { - "code": "curl -X POST -H \"Authorization: ApiKey $ELASTIC_API_KEY\" -H \"Content-Type: application/json\" -d '{\"analysis\":{\"analyzer\":{\"content\":{\"type\":\"custom\",\"tokenizer\":\"whitespace\"}}}}' \"$ELASTICSEARCH_URL/my-index-000001/_close\"\ncurl -X POST -H \"Authorization: ApiKey $ELASTIC_API_KEY\" \"$ELASTICSEARCH_URL/my-index-000001/_open\"", + "code": "curl -X POST -H \"Authorization: ApiKey $ELASTIC_API_KEY\" \"$ELASTICSEARCH_URL/my-index-000001/_close\"\ncurl -X PUT -H \"Authorization: ApiKey $ELASTIC_API_KEY\" -H \"Content-Type: application/json\" -d '{\"analysis\":{\"analyzer\":{\"content\":{\"type\":\"custom\",\"tokenizer\":\"whitespace\"}}}}' \"$ELASTICSEARCH_URL/my-index-000001/_settings\"\ncurl -X POST -H \"Authorization: ApiKey $ELASTIC_API_KEY\" \"$ELASTICSEARCH_URL/my-index-000001/_open\"", "language": "curl" } ], "description": "To add an analyzer, you must close the index, define the analyzer, then reopen the index.", "method_request": "POST /my-index-000001/_close", "summary": "Update index analysis", - "value": "{\n \"analysis\" : {\n \"analyzer\":{\n \"content\":{\n \"type\":\"custom\",\n \"tokenizer\":\"whitespace\"\n }\n }\n }\n}\n\nPOST /my-index-000001/_open" + "value": "PUT /my-index-000001/_settings\n{\n \"analysis\": {\n \"analyzer\": {\n \"content\": {\n \"type\": \"custom\",\n \"tokenizer\": \"whitespace\"\n }\n }\n }\n}\nPOST /my-index-000001/_open" } }, "inherits": { diff --git a/specification/eql/search/examples/request/EqlSearchRequestExample2.yaml b/specification/eql/search/examples/request/EqlSearchRequestExample2.yaml index 15b73338c5..ecc5f9052c 100644 --- a/specification/eql/search/examples/request/EqlSearchRequestExample2.yaml +++ b/specification/eql/search/examples/request/EqlSearchRequestExample2.yaml @@ -51,7 +51,7 @@ alternatives: ]\\n [ process where stringContains(process.executable, \\\"regsvr32\\\") ]\\n \"}' \"$ELASTICSEARCH_URL/my-data-stream/_eql/search\"" - language: Java - code: | + code: > client.eql().search(s -> s .index("my-data-stream") .query(" sequence by process.pid [ file where file.name == \"cmd.exe\" and process.pid != 2013 ][ process where stringContains(process.executable, \"regsvr32\") ] ") diff --git a/specification/esql/query/examples/request/QueryRequestExample1.yaml b/specification/esql/query/examples/request/QueryRequestExample1.yaml index 158720686b..681a7b933b 100644 --- a/specification/esql/query/examples/request/QueryRequestExample1.yaml +++ b/specification/esql/query/examples/request/QueryRequestExample1.yaml @@ -49,7 +49,7 @@ alternatives: library,remote-*:library\\n | EVAL year = DATE_TRUNC(1 YEARS, release_date)\\n | STATS MAX(page_count) BY year\\n | SORT year\\n | LIMIT 5\\n \",\"include_ccs_metadata\":true}' \"$ELASTICSEARCH_URL/_query\"" - language: Java - code: | + code: > client.esql().query(q -> q .includeCcsMetadata(true) .query(" FROM library,remote-*:library | EVAL year = DATE_TRUNC(1 YEARS, release_date) | STATS MAX(page_count) BY year | SORT year | LIMIT 5 ") diff --git a/specification/indices/put_settings/examples/request/indicesPutSettingsRequestExample3.yaml b/specification/indices/put_settings/examples/request/indicesPutSettingsRequestExample3.yaml index a4b1c52b5e..469a8fa0e8 100644 --- a/specification/indices/put_settings/examples/request/indicesPutSettingsRequestExample3.yaml +++ b/specification/indices/put_settings/examples/request/indicesPutSettingsRequestExample3.yaml @@ -2,28 +2,19 @@ summary: Update index analysis method_request: POST /my-index-000001/_close description: To add an analyzer, you must close the index, define the analyzer, then reopen the index. # type: request -value: "{ - - \ \"analysis\" : { - - \ \"analyzer\":{ - - \ \"content\":{ - - \ \"type\":\"custom\", - - \ \"tokenizer\":\"whitespace\" - - \ } - - \ } - - \ } - +value: |- + PUT /my-index-000001/_settings + { + "analysis": { + "analyzer": { + "content": { + "type": "custom", + "tokenizer": "whitespace" + } + } + } } - - - POST /my-index-000001/_open" + POST /my-index-000001/_open alternatives: - language: Python code: |- @@ -31,7 +22,21 @@ alternatives: index="my-index-000001", ) - resp1 = client.indices.open( + resp1 = client.indices.put_settings( + index="my-index-000001", + settings={ + "analysis": { + "analyzer": { + "content": { + "type": "custom", + "tokenizer": "whitespace" + } + } + } + }, + ) + + resp2 = client.indices.open( index="my-index-000001", ) - language: JavaScript @@ -40,12 +45,30 @@ alternatives: index: "my-index-000001", }); - const response1 = await client.indices.open({ + const response1 = await client.indices.putSettings({ + index: "my-index-000001", + settings: { + analysis: { + analyzer: { + content: { + type: "custom", + tokenizer: "whitespace", + }, + }, + }, + }, + }); + + const response2 = await client.indices.open({ index: "my-index-000001", }); - language: Ruby code: |- response = client.indices.close( + index: "my-index-000001" + ) + + response1 = client.indices.put_settings( index: "my-index-000001", body: { "analysis": { @@ -59,13 +82,17 @@ alternatives: } ) - response1 = client.indices.open( + response2 = client.indices.open( index: "my-index-000001" ) - language: PHP code: |- $resp = $client->indices()->close([ "index" => "my-index-000001", + ]); + + $resp1 = $client->indices()->putSettings([ + "index" => "my-index-000001", "body" => [ "analysis" => [ "analyzer" => [ @@ -78,12 +105,15 @@ alternatives: ], ]); - $resp1 = $client->indices()->open([ + $resp2 = $client->indices()->open([ "index" => "my-index-000001", ]); - language: curl code: >- - curl -X POST -H "Authorization: ApiKey $ELASTIC_API_KEY" -H "Content-Type: application/json" -d - '{"analysis":{"analyzer":{"content":{"type":"custom","tokenizer":"whitespace"}}}}' "$ELASTICSEARCH_URL/my-index-000001/_close" + curl -X POST -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/my-index-000001/_close" + + curl -X PUT -H "Authorization: ApiKey $ELASTIC_API_KEY" -H "Content-Type: application/json" -d + '{"analysis":{"analyzer":{"content":{"type":"custom","tokenizer":"whitespace"}}}}' + "$ELASTICSEARCH_URL/my-index-000001/_settings" curl -X POST -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/my-index-000001/_open" diff --git a/specification/ml/infer_trained_model/examples/request/MlInferTrainedModelExample1.yaml b/specification/ml/infer_trained_model/examples/request/MlInferTrainedModelExample1.yaml index b10a3fe433..2d671a7d2f 100644 --- a/specification/ml/infer_trained_model/examples/request/MlInferTrainedModelExample1.yaml +++ b/specification/ml/infer_trained_model/examples/request/MlInferTrainedModelExample1.yaml @@ -55,7 +55,7 @@ alternatives: ''{"docs":[{"text":"The fool doth think he is wise, but the wise man knows himself to be a fool."}]}'' "$ELASTICSEARCH_URL/_ml/trained_models/lang_ident_model_1/_infer"' - language: Java - code: | + code: > client.ml().inferTrainedModel(i -> i .docs(Map.of("text", JsonData.fromJson("\"The fool doth think he is wise, but the wise man knows himself to be a fool.\""))) .modelId("lang_ident_model_1") From eb281adb8c11d4ee7b0607a0576a45910a5785cf Mon Sep 17 00:00:00 2001 From: lcawl Date: Thu, 10 Jul 2025 10:14:06 -0700 Subject: [PATCH 2/3] Update indicesPutSettingsRequestExample3.yaml --- output/openapi/elasticsearch-openapi.json | 2 +- .../elasticsearch-serverless-openapi.json | 2 +- output/schema/schema.json | 16 ++--- .../indicesPutSettingsRequestExample3.yaml | 60 ++++--------------- 4 files changed, 22 insertions(+), 58 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 2c040a596c..9d452302f7 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -121165,7 +121165,7 @@ }, "indicesPutSettingsRequestExample3": { "summary": "Update index analysis", - "description": "To add an analyzer, you must close the index, define the analyzer, then reopen the index.", + "description": "To add an analyzer, you must close the index (`POST /my-index-000001/_open`), define the analyzer, then reopen the index (`POST /my-index-000001/_open`).", "value": "{\n \"analysis\": {\n \"analyzer\": {\n \"content\": {\n \"type\": \"custom\",\n \"tokenizer\": \"whitespace\"\n }\n }\n }\n}" } } diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index e1752fd19c..65ac32e168 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -72930,7 +72930,7 @@ }, "indicesPutSettingsRequestExample3": { "summary": "Update index analysis", - "description": "To add an analyzer, you must close the index, define the analyzer, then reopen the index.", + "description": "To add an analyzer, you must close the index (`POST /my-index-000001/_open`), define the analyzer, then reopen the index (`POST /my-index-000001/_open`).", "value": "{\n \"analysis\": {\n \"analyzer\": {\n \"content\": {\n \"type\": \"custom\",\n \"tokenizer\": \"whitespace\"\n }\n }\n }\n}" } } diff --git a/output/schema/schema.json b/output/schema/schema.json index 6598215910..5e8b1cfa79 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -158198,30 +158198,30 @@ "indicesPutSettingsRequestExample3": { "alternatives": [ { - "code": "resp = client.indices.close(\n index=\"my-index-000001\",\n)\n\nresp1 = client.indices.put_settings(\n index=\"my-index-000001\",\n settings={\n \"analysis\": {\n \"analyzer\": {\n \"content\": {\n \"type\": \"custom\",\n \"tokenizer\": \"whitespace\"\n }\n }\n }\n },\n)\n\nresp2 = client.indices.open(\n index=\"my-index-000001\",\n)", + "code": "resp = client.indices.put_settings(\n index=\"my-index-000001\",\n settings={\n \"analysis\": {\n \"analyzer\": {\n \"content\": {\n \"type\": \"custom\",\n \"tokenizer\": \"whitespace\"\n }\n }\n }\n },\n)", "language": "Python" }, { - "code": "const response = await client.indices.close({\n index: \"my-index-000001\",\n});\n\nconst response1 = await client.indices.putSettings({\n index: \"my-index-000001\",\n settings: {\n analysis: {\n analyzer: {\n content: {\n type: \"custom\",\n tokenizer: \"whitespace\",\n },\n },\n },\n },\n});\n\nconst response2 = await client.indices.open({\n index: \"my-index-000001\",\n});", + "code": "const response = await client.indices.putSettings({\n index: \"my-index-000001\",\n settings: {\n analysis: {\n analyzer: {\n content: {\n type: \"custom\",\n tokenizer: \"whitespace\",\n },\n },\n },\n },\n});", "language": "JavaScript" }, { - "code": "response = client.indices.close(\n index: \"my-index-000001\"\n)\n\nresponse1 = client.indices.put_settings(\n index: \"my-index-000001\",\n body: {\n \"analysis\": {\n \"analyzer\": {\n \"content\": {\n \"type\": \"custom\",\n \"tokenizer\": \"whitespace\"\n }\n }\n }\n }\n)\n\nresponse2 = client.indices.open(\n index: \"my-index-000001\"\n)", + "code": "response = client.indices.put_settings(\n index: \"my-index-000001\",\n body: {\n \"analysis\": {\n \"analyzer\": {\n \"content\": {\n \"type\": \"custom\",\n \"tokenizer\": \"whitespace\"\n }\n }\n }\n }\n)", "language": "Ruby" }, { - "code": "$resp = $client->indices()->close([\n \"index\" => \"my-index-000001\",\n]);\n\n$resp1 = $client->indices()->putSettings([\n \"index\" => \"my-index-000001\",\n \"body\" => [\n \"analysis\" => [\n \"analyzer\" => [\n \"content\" => [\n \"type\" => \"custom\",\n \"tokenizer\" => \"whitespace\",\n ],\n ],\n ],\n ],\n]);\n\n$resp2 = $client->indices()->open([\n \"index\" => \"my-index-000001\",\n]);", + "code": "$resp = $client->indices()->putSettings([\n \"index\" => \"my-index-000001\",\n \"body\" => [\n \"analysis\" => [\n \"analyzer\" => [\n \"content\" => [\n \"type\" => \"custom\",\n \"tokenizer\" => \"whitespace\",\n ],\n ],\n ],\n ],\n]);", "language": "PHP" }, { - "code": "curl -X POST -H \"Authorization: ApiKey $ELASTIC_API_KEY\" \"$ELASTICSEARCH_URL/my-index-000001/_close\"\ncurl -X PUT -H \"Authorization: ApiKey $ELASTIC_API_KEY\" -H \"Content-Type: application/json\" -d '{\"analysis\":{\"analyzer\":{\"content\":{\"type\":\"custom\",\"tokenizer\":\"whitespace\"}}}}' \"$ELASTICSEARCH_URL/my-index-000001/_settings\"\ncurl -X POST -H \"Authorization: ApiKey $ELASTIC_API_KEY\" \"$ELASTICSEARCH_URL/my-index-000001/_open\"", + "code": "curl -X PUT -H \"Authorization: ApiKey $ELASTIC_API_KEY\" -H \"Content-Type: application/json\" -d '{\"analysis\":{\"analyzer\":{\"content\":{\"type\":\"custom\",\"tokenizer\":\"whitespace\"}}}}' \"$ELASTICSEARCH_URL/my-index-000001/_settings\"", "language": "curl" } ], - "description": "To add an analyzer, you must close the index, define the analyzer, then reopen the index.", - "method_request": "POST /my-index-000001/_close", + "description": "To add an analyzer, you must close the index (`POST /my-index-000001/_open`), define the analyzer, then reopen the index (`POST /my-index-000001/_open`).", + "method_request": "PUT /my-index-000001/_settings", "summary": "Update index analysis", - "value": "PUT /my-index-000001/_settings\n{\n \"analysis\": {\n \"analyzer\": {\n \"content\": {\n \"type\": \"custom\",\n \"tokenizer\": \"whitespace\"\n }\n }\n }\n}\nPOST /my-index-000001/_open" + "value": "{\n \"analysis\": {\n \"analyzer\": {\n \"content\": {\n \"type\": \"custom\",\n \"tokenizer\": \"whitespace\"\n }\n }\n }\n}" } }, "inherits": { diff --git a/specification/indices/put_settings/examples/request/indicesPutSettingsRequestExample3.yaml b/specification/indices/put_settings/examples/request/indicesPutSettingsRequestExample3.yaml index 469a8fa0e8..ac3f90fb2b 100644 --- a/specification/indices/put_settings/examples/request/indicesPutSettingsRequestExample3.yaml +++ b/specification/indices/put_settings/examples/request/indicesPutSettingsRequestExample3.yaml @@ -1,9 +1,10 @@ summary: Update index analysis -method_request: POST /my-index-000001/_close -description: To add an analyzer, you must close the index, define the analyzer, then reopen the index. +method_request: PUT /my-index-000001/_settings +description: + To add an analyzer, you must close the index (`POST /my-index-000001/_open`), define the analyzer, then reopen the + index (`POST /my-index-000001/_open`). # type: request value: |- - PUT /my-index-000001/_settings { "analysis": { "analyzer": { @@ -14,15 +15,10 @@ value: |- } } } - POST /my-index-000001/_open alternatives: - language: Python code: |- - resp = client.indices.close( - index="my-index-000001", - ) - - resp1 = client.indices.put_settings( + resp = client.indices.put_settings( index="my-index-000001", settings={ "analysis": { @@ -35,17 +31,9 @@ alternatives: } }, ) - - resp2 = client.indices.open( - index="my-index-000001", - ) - language: JavaScript code: |- - const response = await client.indices.close({ - index: "my-index-000001", - }); - - const response1 = await client.indices.putSettings({ + const response = await client.indices.putSettings({ index: "my-index-000001", settings: { analysis: { @@ -58,17 +46,9 @@ alternatives: }, }, }); - - const response2 = await client.indices.open({ - index: "my-index-000001", - }); - language: Ruby code: |- - response = client.indices.close( - index: "my-index-000001" - ) - - response1 = client.indices.put_settings( + response = client.indices.put_settings( index: "my-index-000001", body: { "analysis": { @@ -81,17 +61,9 @@ alternatives: } } ) - - response2 = client.indices.open( - index: "my-index-000001" - ) - language: PHP code: |- - $resp = $client->indices()->close([ - "index" => "my-index-000001", - ]); - - $resp1 = $client->indices()->putSettings([ + $resp = $client->indices()->putSettings([ "index" => "my-index-000001", "body" => [ "analysis" => [ @@ -104,16 +76,8 @@ alternatives: ], ], ]); - - $resp2 = $client->indices()->open([ - "index" => "my-index-000001", - ]); - language: curl - code: >- - curl -X POST -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/my-index-000001/_close" - - curl -X PUT -H "Authorization: ApiKey $ELASTIC_API_KEY" -H "Content-Type: application/json" -d - '{"analysis":{"analyzer":{"content":{"type":"custom","tokenizer":"whitespace"}}}}' - "$ELASTICSEARCH_URL/my-index-000001/_settings" - - curl -X POST -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/my-index-000001/_open" + code: + 'curl -X PUT -H "Authorization: ApiKey $ELASTIC_API_KEY" -H "Content-Type: application/json" -d + ''{"analysis":{"analyzer":{"content":{"type":"custom","tokenizer":"whitespace"}}}}'' + "$ELASTICSEARCH_URL/my-index-000001/_settings"' From 386170abe16bbd3f569d63153c6fb3f723db1f87 Mon Sep 17 00:00:00 2001 From: Miguel Grinberg Date: Thu, 10 Jul 2025 20:15:34 +0100 Subject: [PATCH 3/3] Update specification/indices/put_settings/examples/request/indicesPutSettingsRequestExample3.yaml --- .../examples/request/indicesPutSettingsRequestExample3.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/indices/put_settings/examples/request/indicesPutSettingsRequestExample3.yaml b/specification/indices/put_settings/examples/request/indicesPutSettingsRequestExample3.yaml index ac3f90fb2b..d4b59359ca 100644 --- a/specification/indices/put_settings/examples/request/indicesPutSettingsRequestExample3.yaml +++ b/specification/indices/put_settings/examples/request/indicesPutSettingsRequestExample3.yaml @@ -1,7 +1,7 @@ summary: Update index analysis method_request: PUT /my-index-000001/_settings description: - To add an analyzer, you must close the index (`POST /my-index-000001/_open`), define the analyzer, then reopen the + To add an analyzer, you must close the index (`POST /my-index-000001/_close`), define the analyzer, then reopen the index (`POST /my-index-000001/_open`). # type: request value: |-