diff --git a/docs/examples/00fea15cbca83be9d5f1a024ff2ec708.asciidoc b/docs/examples/00fea15cbca83be9d5f1a024ff2ec708.asciidoc index c9322a6a6..d6ce47875 100644 --- a/docs/examples/00fea15cbca83be9d5f1a024ff2ec708.asciidoc +++ b/docs/examples/00fea15cbca83be9d5f1a024ff2ec708.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// inference/service-elasticsearch.asciidoc:204 +// inference/service-elasticsearch.asciidoc:199 [source, python] ---- diff --git a/docs/examples/010d5e901a2690fa7b2396edbe6cd463.asciidoc b/docs/examples/010d5e901a2690fa7b2396edbe6cd463.asciidoc index c76a26693..90bdb6112 100644 --- a/docs/examples/010d5e901a2690fa7b2396edbe6cd463.asciidoc +++ b/docs/examples/010d5e901a2690fa7b2396edbe6cd463.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// ingest/common-log-format-example.asciidoc:161 +// ingest/common-log-format-example.asciidoc:162 [source, python] ---- diff --git a/docs/examples/015e6e6132b6d6d44bddb06bc3b316ed.asciidoc b/docs/examples/015e6e6132b6d6d44bddb06bc3b316ed.asciidoc index 1930760fd..2a6a12a51 100644 --- a/docs/examples/015e6e6132b6d6d44bddb06bc3b316ed.asciidoc +++ b/docs/examples/015e6e6132b6d6d44bddb06bc3b316ed.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/search-your-data/retrievers-examples.asciidoc:1051 +// search/search-your-data/retrievers-examples.asciidoc:1322 [source, python] ---- diff --git a/docs/examples/0165d22da5f2fc7678392b31d8eb5566.asciidoc b/docs/examples/0165d22da5f2fc7678392b31d8eb5566.asciidoc index b716f8df7..d2e7ad7ff 100644 --- a/docs/examples/0165d22da5f2fc7678392b31d8eb5566.asciidoc +++ b/docs/examples/0165d22da5f2fc7678392b31d8eb5566.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/search-your-data/retrievers-examples.asciidoc:1363 +// search/search-your-data/retrievers-examples.asciidoc:1655 [source, python] ---- diff --git a/docs/examples/01ae196538fac197eedbbf458a4ef31b.asciidoc b/docs/examples/01ae196538fac197eedbbf458a4ef31b.asciidoc index e087a80ec..cf35df41e 100644 --- a/docs/examples/01ae196538fac197eedbbf458a4ef31b.asciidoc +++ b/docs/examples/01ae196538fac197eedbbf458a4ef31b.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/keyword.asciidoc:260 +// mapping/types/keyword.asciidoc:254 [source, python] ---- diff --git a/docs/examples/01b23f09d2b7f140faf649eadbbf3ac3.asciidoc b/docs/examples/01b23f09d2b7f140faf649eadbbf3ac3.asciidoc index 7d37ed747..1f3839c3f 100644 --- a/docs/examples/01b23f09d2b7f140faf649eadbbf3ac3.asciidoc +++ b/docs/examples/01b23f09d2b7f140faf649eadbbf3ac3.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// indices/index-templates.asciidoc:86 +// indices/index-templates.asciidoc:85 [source, python] ---- diff --git a/docs/examples/01cd0ea360282a2c591a366679d7187d.asciidoc b/docs/examples/01cd0ea360282a2c591a366679d7187d.asciidoc index d52222ef9..79f5d0185 100644 --- a/docs/examples/01cd0ea360282a2c591a366679d7187d.asciidoc +++ b/docs/examples/01cd0ea360282a2c591a366679d7187d.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// troubleshooting/common-issues/task-queue-backlog.asciidoc:83 +// troubleshooting/common-issues/task-queue-backlog.asciidoc:60 [source, python] ---- diff --git a/docs/examples/0246f73cc2ed3dfec577119e8cd15404.asciidoc b/docs/examples/0246f73cc2ed3dfec577119e8cd15404.asciidoc index 670c9daa3..22265deef 100644 --- a/docs/examples/0246f73cc2ed3dfec577119e8cd15404.asciidoc +++ b/docs/examples/0246f73cc2ed3dfec577119e8cd15404.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// indices/put-mapping.asciidoc:183 +// indices/put-mapping.asciidoc:189 [source, python] ---- diff --git a/docs/examples/02b6aa3e5652839f03de3a655854b897.asciidoc b/docs/examples/02b6aa3e5652839f03de3a655854b897.asciidoc index bc1939367..99fe5374a 100644 --- a/docs/examples/02b6aa3e5652839f03de3a655854b897.asciidoc +++ b/docs/examples/02b6aa3e5652839f03de3a655854b897.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// data-streams/downsampling-manual.asciidoc:466 +// data-streams/downsampling-manual.asciidoc:469 [source, python] ---- diff --git a/docs/examples/02ef4cd3ca104bcb917e07272f82bee3.asciidoc b/docs/examples/02ef4cd3ca104bcb917e07272f82bee3.asciidoc new file mode 100644 index 000000000..8bf181535 --- /dev/null +++ b/docs/examples/02ef4cd3ca104bcb917e07272f82bee3.asciidoc @@ -0,0 +1,12 @@ +// This file is autogenerated, DO NOT EDIT +// data-streams/failure-store.asciidoc:820 + +[source, python] +---- +resp = client.cluster.put_settings( + persistent={ + "data_streams.lifecycle.retention.failures_default": "15d" + }, +) +print(resp) +---- diff --git a/docs/examples/0350410d11579f4e876c798ce1eaef5b.asciidoc b/docs/examples/0350410d11579f4e876c798ce1eaef5b.asciidoc index 41f174407..3aad0b601 100644 --- a/docs/examples/0350410d11579f4e876c798ce1eaef5b.asciidoc +++ b/docs/examples/0350410d11579f4e876c798ce1eaef5b.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/percolate-query.asciidoc:565 +// query-dsl/percolate-query.asciidoc:563 [source, python] ---- diff --git a/docs/examples/03891265df2111a38e0b6b24c1b967e1.asciidoc b/docs/examples/03891265df2111a38e0b6b24c1b967e1.asciidoc index cf65de095..b3429bbde 100644 --- a/docs/examples/03891265df2111a38e0b6b24c1b967e1.asciidoc +++ b/docs/examples/03891265df2111a38e0b6b24c1b967e1.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// rest-api/security/get-service-accounts.asciidoc:320 +// rest-api/security/get-service-accounts.asciidoc:288 [source, python] ---- diff --git a/docs/examples/0551626f75cbad56d9a63b11556dcfa7.asciidoc b/docs/examples/0551626f75cbad56d9a63b11556dcfa7.asciidoc new file mode 100644 index 000000000..1ea445c9e --- /dev/null +++ b/docs/examples/0551626f75cbad56d9a63b11556dcfa7.asciidoc @@ -0,0 +1,26 @@ +// This file is autogenerated, DO NOT EDIT +// data-streams/failure-store.asciidoc:143 + +[source, python] +---- +resp = client.bulk( + index="my-datastream-new", + operations=[ + { + "create": {} + }, + { + "@timestamp": "2025-05-01T00:00:00Z", + "id": 1234 + }, + { + "create": {} + }, + { + "@timestamp": "2025-05-01T00:00:00Z", + "id": "invalid_text" + } + ], +) +print(resp) +---- diff --git a/docs/examples/0737ebaea33631f001fb3f4226948492.asciidoc b/docs/examples/0737ebaea33631f001fb3f4226948492.asciidoc index 8b47a2a5b..d4a082a27 100644 --- a/docs/examples/0737ebaea33631f001fb3f4226948492.asciidoc +++ b/docs/examples/0737ebaea33631f001fb3f4226948492.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// ingest/processors/geoip.asciidoc:237 +// ingest/processors/geoip.asciidoc:238 [source, python] ---- diff --git a/docs/examples/074e4602d1ca54412380a40867d078bc.asciidoc b/docs/examples/074e4602d1ca54412380a40867d078bc.asciidoc index 8eab49b0b..0714cd63d 100644 --- a/docs/examples/074e4602d1ca54412380a40867d078bc.asciidoc +++ b/docs/examples/074e4602d1ca54412380a40867d078bc.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// index-modules/slowlog.asciidoc:180 +// index-modules/slowlog.asciidoc:181 [source, python] ---- diff --git a/docs/examples/07dadb9b0a774bd8e7f3527cf8a44afc.asciidoc b/docs/examples/07dadb9b0a774bd8e7f3527cf8a44afc.asciidoc index a2827083f..1994efccb 100644 --- a/docs/examples/07dadb9b0a774bd8e7f3527cf8a44afc.asciidoc +++ b/docs/examples/07dadb9b0a774bd8e7f3527cf8a44afc.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/semantic-query.asciidoc:17 +// query-dsl/semantic-query.asciidoc:15 [source, python] ---- diff --git a/docs/examples/083b92e8ea264e49bf9fd40fc6a3094b.asciidoc b/docs/examples/083b92e8ea264e49bf9fd40fc6a3094b.asciidoc index 6c94b6da2..ee247349f 100644 --- a/docs/examples/083b92e8ea264e49bf9fd40fc6a3094b.asciidoc +++ b/docs/examples/083b92e8ea264e49bf9fd40fc6a3094b.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// inference/service-elasticsearch.asciidoc:264 +// inference/service-elasticsearch.asciidoc:259 [source, python] ---- diff --git a/docs/examples/0a650401134f07e40216f0d0d1a66a32.asciidoc b/docs/examples/0a650401134f07e40216f0d0d1a66a32.asciidoc index 7dfc1b717..79ea752ef 100644 --- a/docs/examples/0a650401134f07e40216f0d0d1a66a32.asciidoc +++ b/docs/examples/0a650401134f07e40216f0d0d1a66a32.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// cat/allocation.asciidoc:126 +// cat/allocation.asciidoc:125 [source, python] ---- diff --git a/docs/examples/0bc6155e0c88062a4d8490da49db3aa8.asciidoc b/docs/examples/0bc6155e0c88062a4d8490da49db3aa8.asciidoc index 77db1349e..ddef8a6b5 100644 --- a/docs/examples/0bc6155e0c88062a4d8490da49db3aa8.asciidoc +++ b/docs/examples/0bc6155e0c88062a4d8490da49db3aa8.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/search-your-data/retrievers-examples.asciidoc:812 +// search/search-your-data/retrievers-examples.asciidoc:1083 [source, python] ---- diff --git a/docs/examples/0bee07a581c5776e068f6f4efad5a399.asciidoc b/docs/examples/0bee07a581c5776e068f6f4efad5a399.asciidoc index 5ef14fcc9..0b33c28da 100644 --- a/docs/examples/0bee07a581c5776e068f6f4efad5a399.asciidoc +++ b/docs/examples/0bee07a581c5776e068f6f4efad5a399.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// esql/esql-across-clusters.asciidoc:194 +// esql/esql-across-clusters.asciidoc:195 [source, python] ---- diff --git a/docs/examples/0bf6dfdf930904202e96d39a43cc3f47.asciidoc b/docs/examples/0bf6dfdf930904202e96d39a43cc3f47.asciidoc new file mode 100644 index 000000000..9458760dc --- /dev/null +++ b/docs/examples/0bf6dfdf930904202e96d39a43cc3f47.asciidoc @@ -0,0 +1,15 @@ +// This file is autogenerated, DO NOT EDIT +// data-streams/failure-store.asciidoc:97 + +[source, python] +---- +resp = client.cluster.put_settings( + persistent={ + "data_streams.failure_store.enabled": [ + "my-datastream-*", + "logs-*" + ] + }, +) +print(resp) +---- diff --git a/docs/examples/0c2d9ac7e3f28d4d802e21cbbbcfeb34.asciidoc b/docs/examples/0c2d9ac7e3f28d4d802e21cbbbcfeb34.asciidoc index 1ccb32524..13c62b64c 100644 --- a/docs/examples/0c2d9ac7e3f28d4d802e21cbbbcfeb34.asciidoc +++ b/docs/examples/0c2d9ac7e3f28d4d802e21cbbbcfeb34.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// cat/recovery.asciidoc:118 +// cat/recovery.asciidoc:214 [source, python] ---- diff --git a/docs/examples/0c3bcd8b59bd209614399c2f8c6cd5ce.asciidoc b/docs/examples/0c3bcd8b59bd209614399c2f8c6cd5ce.asciidoc new file mode 100644 index 000000000..41d0553dd --- /dev/null +++ b/docs/examples/0c3bcd8b59bd209614399c2f8c6cd5ce.asciidoc @@ -0,0 +1,13 @@ +// This file is autogenerated, DO NOT EDIT +// data-streams/failure-store.asciidoc:619 + +[source, python] +---- +resp = client.index( + index="my-datastream-ingest", + document={ + "data": "this field is invalid" + }, +) +print(resp) +---- diff --git a/docs/examples/0d689ac6e78be5d438f9b5d441be2b44.asciidoc b/docs/examples/0d689ac6e78be5d438f9b5d441be2b44.asciidoc index 89f2a7eeb..00c710d69 100644 --- a/docs/examples/0d689ac6e78be5d438f9b5d441be2b44.asciidoc +++ b/docs/examples/0d689ac6e78be5d438f9b5d441be2b44.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/search-your-data/retrievers-examples.asciidoc:1191 +// search/search-your-data/retrievers-examples.asciidoc:1462 [source, python] ---- diff --git a/docs/examples/0dfa9733c94bc43c6f14c7b6984c98fb.asciidoc b/docs/examples/0dfa9733c94bc43c6f14c7b6984c98fb.asciidoc index 1501cad9e..eaf7b69ae 100644 --- a/docs/examples/0dfa9733c94bc43c6f14c7b6984c98fb.asciidoc +++ b/docs/examples/0dfa9733c94bc43c6f14c7b6984c98fb.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// cat/component-templates.asciidoc:113 +// cat/component-templates.asciidoc:112 [source, python] ---- diff --git a/docs/examples/0e31b8ad176b31028becf9500989bcbd.asciidoc b/docs/examples/0e31b8ad176b31028becf9500989bcbd.asciidoc index fed70ff60..3f84ecc3e 100644 --- a/docs/examples/0e31b8ad176b31028becf9500989bcbd.asciidoc +++ b/docs/examples/0e31b8ad176b31028becf9500989bcbd.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// inference/service-watsonx-ai.asciidoc:102 +// inference/service-watsonx-ai.asciidoc:123 [source, python] ---- diff --git a/docs/examples/0e71a18d1aac61720cdc6b3f91fe643f.asciidoc b/docs/examples/0e71a18d1aac61720cdc6b3f91fe643f.asciidoc index 51907cae9..d5adcaa23 100644 --- a/docs/examples/0e71a18d1aac61720cdc6b3f91fe643f.asciidoc +++ b/docs/examples/0e71a18d1aac61720cdc6b3f91fe643f.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/simple-query-string-query.asciidoc:153 +// query-dsl/simple-query-string-query.asciidoc:156 [source, python] ---- diff --git a/docs/examples/0f028f71f04c1d569fab402869565a84.asciidoc b/docs/examples/0f028f71f04c1d569fab402869565a84.asciidoc deleted file mode 100644 index 295df000b..000000000 --- a/docs/examples/0f028f71f04c1d569fab402869565a84.asciidoc +++ /dev/null @@ -1,15 +0,0 @@ -// This file is autogenerated, DO NOT EDIT -// migration/migrate_9_0.asciidoc:476 - -[source, python] ----- -resp = client.indices.put_settings( - index=".reindexed-v9-ml-anomalies-custom-example", - settings={ - "index": { - "number_of_replicas": "" - } - }, -) -print(resp) ----- diff --git a/docs/examples/0f7aa40ad26d59a9268630b980a3d594.asciidoc b/docs/examples/0f7aa40ad26d59a9268630b980a3d594.asciidoc index d76d2022a..a96668bfe 100644 --- a/docs/examples/0f7aa40ad26d59a9268630b980a3d594.asciidoc +++ b/docs/examples/0f7aa40ad26d59a9268630b980a3d594.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// indices/simulate-template.asciidoc:61 +// indices/simulate-template.asciidoc:60 [source, python] ---- diff --git a/docs/examples/0fc4b589df5388da784c6d981e769e31.asciidoc b/docs/examples/0fc4b589df5388da784c6d981e769e31.asciidoc index e499f3289..6c8b86ea6 100644 --- a/docs/examples/0fc4b589df5388da784c6d981e769e31.asciidoc +++ b/docs/examples/0fc4b589df5388da784c6d981e769e31.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// indices/put-index-template-v1.asciidoc:155 +// indices/put-index-template-v1.asciidoc:154 [source, python] ---- diff --git a/docs/examples/10326e9a0a29ccb94c2d25bfbf063450.asciidoc b/docs/examples/10326e9a0a29ccb94c2d25bfbf063450.asciidoc new file mode 100644 index 000000000..cbd8f005e --- /dev/null +++ b/docs/examples/10326e9a0a29ccb94c2d25bfbf063450.asciidoc @@ -0,0 +1,17 @@ +// This file is autogenerated, DO NOT EDIT +// data-streams/failure-store-recipes.asciidoc:13 + +[source, python] +---- +resp = client.index( + index="my-datastream-ingest", + refresh=True, + document={ + "@timestamp": "2025-04-21T00:00:00Z", + "important": { + "info": "The rain in Spain falls mainly on the plain" + } + }, +) +print(resp) +---- diff --git a/docs/examples/103296e16b4233926ad1f07360385606.asciidoc b/docs/examples/103296e16b4233926ad1f07360385606.asciidoc index 311b42d6c..8becee40d 100644 --- a/docs/examples/103296e16b4233926ad1f07360385606.asciidoc +++ b/docs/examples/103296e16b4233926ad1f07360385606.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// analysis/analyzers/lang-analyzer.asciidoc:1794 +// analysis/analyzers/lang-analyzer.asciidoc:1793 [source, python] ---- diff --git a/docs/examples/10f0c8fed98455c460c374b50ffbb204.asciidoc b/docs/examples/10f0c8fed98455c460c374b50ffbb204.asciidoc index 5aedd6b3c..7496a2077 100644 --- a/docs/examples/10f0c8fed98455c460c374b50ffbb204.asciidoc +++ b/docs/examples/10f0c8fed98455c460c374b50ffbb204.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc:301 +// data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc:317 [source, python] ---- diff --git a/docs/examples/1147a02afa087278e51fa365fb9e06b7.asciidoc b/docs/examples/1147a02afa087278e51fa365fb9e06b7.asciidoc index 6b9ea7a99..c6a9bc9e5 100644 --- a/docs/examples/1147a02afa087278e51fa365fb9e06b7.asciidoc +++ b/docs/examples/1147a02afa087278e51fa365fb9e06b7.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// api-conventions.asciidoc:355 +// api-conventions.asciidoc:397 [source, python] ---- diff --git a/docs/examples/12433d2b637d002e8d5c9a1adce69d3b.asciidoc b/docs/examples/12433d2b637d002e8d5c9a1adce69d3b.asciidoc index 3d588dde2..f978c0bfa 100644 --- a/docs/examples/12433d2b637d002e8d5c9a1adce69d3b.asciidoc +++ b/docs/examples/12433d2b637d002e8d5c9a1adce69d3b.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// indices/put-mapping.asciidoc:106 +// indices/put-mapping.asciidoc:112 [source, python] ---- diff --git a/docs/examples/12adea5d76f73d94d80d42f53f67563f.asciidoc b/docs/examples/12adea5d76f73d94d80d42f53f67563f.asciidoc deleted file mode 100644 index 18270ad1c..000000000 --- a/docs/examples/12adea5d76f73d94d80d42f53f67563f.asciidoc +++ /dev/null @@ -1,11 +0,0 @@ -// This file is autogenerated, DO NOT EDIT -// migration/migrate_9_0.asciidoc:393 - -[source, python] ----- -resp = client.indices.add_block( - index=".ml-anomalies-custom-example", - block="read_only", -) -print(resp) ----- diff --git a/docs/examples/13d90ba227131aefbf4fcfd5992e662a.asciidoc b/docs/examples/13d90ba227131aefbf4fcfd5992e662a.asciidoc index fc457fe4e..1d7ddd0d8 100644 --- a/docs/examples/13d90ba227131aefbf4fcfd5992e662a.asciidoc +++ b/docs/examples/13d90ba227131aefbf4fcfd5992e662a.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/bool-query.asciidoc:159 +// query-dsl/bool-query.asciidoc:202 [source, python] ---- diff --git a/docs/examples/148edc235fcfbc263561f87f5533e688.asciidoc b/docs/examples/148edc235fcfbc263561f87f5533e688.asciidoc index 8b97c4933..9ed85a21a 100644 --- a/docs/examples/148edc235fcfbc263561f87f5533e688.asciidoc +++ b/docs/examples/148edc235fcfbc263561f87f5533e688.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/percolate-query.asciidoc:196 +// query-dsl/percolate-query.asciidoc:194 [source, python] ---- diff --git a/docs/examples/151d2b11807ec684b0c01aa89189a801.asciidoc b/docs/examples/151d2b11807ec684b0c01aa89189a801.asciidoc index b0926a099..ce49b8d45 100644 --- a/docs/examples/151d2b11807ec684b0c01aa89189a801.asciidoc +++ b/docs/examples/151d2b11807ec684b0c01aa89189a801.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/query-string-query.asciidoc:474 +// query-dsl/query-string-query.asciidoc:477 [source, python] ---- diff --git a/docs/examples/15755171c81ce65fec5d15f2bb93c58e.asciidoc b/docs/examples/15755171c81ce65fec5d15f2bb93c58e.asciidoc new file mode 100644 index 000000000..6eb28aef1 --- /dev/null +++ b/docs/examples/15755171c81ce65fec5d15f2bb93c58e.asciidoc @@ -0,0 +1,21 @@ +// This file is autogenerated, DO NOT EDIT +// data-streams/failure-store.asciidoc:37 + +[source, python] +---- +resp = client.indices.put_index_template( + name="my-index-template", + index_patterns=[ + "my-datastream-*" + ], + data_stream={}, + template={ + "data_stream_options": { + "failure_store": { + "enabled": True + } + } + }, +) +print(resp) +---- diff --git a/docs/examples/162b5b693b713f0bfab1209d59443c46.asciidoc b/docs/examples/162b5b693b713f0bfab1209d59443c46.asciidoc index 044c538d9..83ec7dd0b 100644 --- a/docs/examples/162b5b693b713f0bfab1209d59443c46.asciidoc +++ b/docs/examples/162b5b693b713f0bfab1209d59443c46.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/bool-query.asciidoc:133 +// query-dsl/bool-query.asciidoc:176 [source, python] ---- diff --git a/docs/examples/17b1647c8509543f2388c886f2584a20.asciidoc b/docs/examples/17b1647c8509543f2388c886f2584a20.asciidoc index bd99a92db..2e2f73e5c 100644 --- a/docs/examples/17b1647c8509543f2388c886f2584a20.asciidoc +++ b/docs/examples/17b1647c8509543f2388c886f2584a20.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// reranking/semantic-reranking.asciidoc:107 +// reranking/semantic-reranking.asciidoc:105 [source, python] ---- diff --git a/docs/examples/187733e50c60350f3f75921bea3b72c2.asciidoc b/docs/examples/187733e50c60350f3f75921bea3b72c2.asciidoc index 718144564..4d54d2a58 100644 --- a/docs/examples/187733e50c60350f3f75921bea3b72c2.asciidoc +++ b/docs/examples/187733e50c60350f3f75921bea3b72c2.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/search-your-data/paginate-search-results.asciidoc:615 +// search/search-your-data/paginate-search-results.asciidoc:630 [source, python] ---- diff --git a/docs/examples/18de6782bd18f4a9baec2feec8c02a8b.asciidoc b/docs/examples/18de6782bd18f4a9baec2feec8c02a8b.asciidoc new file mode 100644 index 000000000..999873e69 --- /dev/null +++ b/docs/examples/18de6782bd18f4a9baec2feec8c02a8b.asciidoc @@ -0,0 +1,18 @@ +// This file is autogenerated, DO NOT EDIT +// migration/migrate_8_0/migrate_to_java_time.asciidoc:268 + +[source, python] +---- +resp = client.indices.create( + index="my-index-000002", + mappings={ + "properties": { + "datetime": { + "type": "date", + "format": "uuuu/MM/dd HH:mm:ss||uuuu/MM/dd||epoch_millis" + } + } + }, +) +print(resp) +---- diff --git a/docs/examples/1a7483796087053ba55029d0dc2ab356.asciidoc b/docs/examples/1a7483796087053ba55029d0dc2ab356.asciidoc index c48bf98b9..6f2df178e 100644 --- a/docs/examples/1a7483796087053ba55029d0dc2ab356.asciidoc +++ b/docs/examples/1a7483796087053ba55029d0dc2ab356.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// esql/multivalued-fields.asciidoc:191 +// esql/multivalued-fields.asciidoc:199 [source, python] ---- diff --git a/docs/examples/1a9efb56adb2cd84faa9825a129381b9.asciidoc b/docs/examples/1a9efb56adb2cd84faa9825a129381b9.asciidoc index e0d883c89..870811976 100644 --- a/docs/examples/1a9efb56adb2cd84faa9825a129381b9.asciidoc +++ b/docs/examples/1a9efb56adb2cd84faa9825a129381b9.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// rollup/apis/rollup-search.asciidoc:222 +// rollup/apis/rollup-search.asciidoc:219 [source, python] ---- diff --git a/docs/examples/1aa91d3d48140d6367b6cabca8737b8f.asciidoc b/docs/examples/1aa91d3d48140d6367b6cabca8737b8f.asciidoc index 17dc48f5e..05c6b61e9 100644 --- a/docs/examples/1aa91d3d48140d6367b6cabca8737b8f.asciidoc +++ b/docs/examples/1aa91d3d48140d6367b6cabca8737b8f.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// docs/bulk.asciidoc:642 +// docs/bulk.asciidoc:638 [source, python] ---- diff --git a/docs/examples/f95a4d7ab02bf400246c8822f0245f02.asciidoc b/docs/examples/1af9742c71ce0587cd49a73ec7fc1f6c.asciidoc similarity index 92% rename from docs/examples/f95a4d7ab02bf400246c8822f0245f02.asciidoc rename to docs/examples/1af9742c71ce0587cd49a73ec7fc1f6c.asciidoc index 0d7391c3e..413fb5602 100644 --- a/docs/examples/f95a4d7ab02bf400246c8822f0245f02.asciidoc +++ b/docs/examples/1af9742c71ce0587cd49a73ec7fc1f6c.asciidoc @@ -5,7 +5,7 @@ ---- resp = client.cat.ml_trained_models( h="c,o,l,ct,v", - v=True, + v="ture", ) print(resp) ---- diff --git a/docs/examples/1ba7afe23a26fe9ac7856d8c5bc1059d.asciidoc b/docs/examples/1ba7afe23a26fe9ac7856d8c5bc1059d.asciidoc index 67df96154..dc02df84d 100644 --- a/docs/examples/1ba7afe23a26fe9ac7856d8c5bc1059d.asciidoc +++ b/docs/examples/1ba7afe23a26fe9ac7856d8c5bc1059d.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// analysis/analyzers/lang-analyzer.asciidoc:1502 +// analysis/analyzers/lang-analyzer.asciidoc:1501 [source, python] ---- diff --git a/docs/examples/ef10e8d07d9fae945e035d5dee1e9754.asciidoc b/docs/examples/1cbaa43d1c741ddd8a13e21791709527.asciidoc similarity index 72% rename from docs/examples/ef10e8d07d9fae945e035d5dee1e9754.asciidoc rename to docs/examples/1cbaa43d1c741ddd8a13e21791709527.asciidoc index fd86870f5..f50b0b860 100644 --- a/docs/examples/ef10e8d07d9fae945e035d5dee1e9754.asciidoc +++ b/docs/examples/1cbaa43d1c741ddd8a13e21791709527.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// analysis/tokenfilters/flatten-graph-tokenfilter.asciidoc:118 +// analysis/tokenfilters/flatten-graph-tokenfilter.asciidoc:126 [source, python] ---- @@ -9,7 +9,7 @@ resp = client.indices.analyze( { "type": "synonym_graph", "synonyms": [ - "dns, domain name system" + "internet phonebook, domain name system" ] }, "flatten_graph" diff --git a/docs/examples/1d9b695a17cffd910c496c9b03c75d6f.asciidoc b/docs/examples/1d9b695a17cffd910c496c9b03c75d6f.asciidoc index c9c7bce87..86081dab0 100644 --- a/docs/examples/1d9b695a17cffd910c496c9b03c75d6f.asciidoc +++ b/docs/examples/1d9b695a17cffd910c496c9b03c75d6f.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc:34 +// data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc:42 [source, python] ---- diff --git a/docs/examples/1e0b85750d4e63ebbc927d4627c44bf8.asciidoc b/docs/examples/1e0b85750d4e63ebbc927d4627c44bf8.asciidoc index b4d009c90..7083e786e 100644 --- a/docs/examples/1e0b85750d4e63ebbc927d4627c44bf8.asciidoc +++ b/docs/examples/1e0b85750d4e63ebbc927d4627c44bf8.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// how-to/size-your-shards.asciidoc:604 +// how-to/size-your-shards.asciidoc:601 [source, python] ---- diff --git a/docs/examples/1e26353d546d733634187b8c3a7837a7.asciidoc b/docs/examples/1e26353d546d733634187b8c3a7837a7.asciidoc index 37cc447f6..0266f4383 100644 --- a/docs/examples/1e26353d546d733634187b8c3a7837a7.asciidoc +++ b/docs/examples/1e26353d546d733634187b8c3a7837a7.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// connector/apis/list-connectors-api.asciidoc:110 +// connector/apis/list-connectors-api.asciidoc:107 [source, python] ---- diff --git a/docs/examples/20005d8a6555b259b299d862cd218701.asciidoc b/docs/examples/20005d8a6555b259b299d862cd218701.asciidoc index 0a4219e1e..cb4910e7d 100644 --- a/docs/examples/20005d8a6555b259b299d862cd218701.asciidoc +++ b/docs/examples/20005d8a6555b259b299d862cd218701.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/match-query.asciidoc:190 +// query-dsl/match-query.asciidoc:194 [source, python] ---- diff --git a/docs/examples/216e24f05cbb82c1718713fbab8623d2.asciidoc b/docs/examples/216e24f05cbb82c1718713fbab8623d2.asciidoc index 9ddf0fe44..e158982a7 100644 --- a/docs/examples/216e24f05cbb82c1718713fbab8623d2.asciidoc +++ b/docs/examples/216e24f05cbb82c1718713fbab8623d2.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// ingest/processors/geoip.asciidoc:136 +// ingest/processors/geoip.asciidoc:137 [source, python] ---- diff --git a/docs/examples/2171361cd8e70dcde91bdb9bbd8702f1.asciidoc b/docs/examples/2171361cd8e70dcde91bdb9bbd8702f1.asciidoc new file mode 100644 index 000000000..f18bb87d5 --- /dev/null +++ b/docs/examples/2171361cd8e70dcde91bdb9bbd8702f1.asciidoc @@ -0,0 +1,30 @@ +// This file is autogenerated, DO NOT EDIT +// esql/esql-lookup-join.asciidoc:142 + +[source, python] +---- +resp = client.bulk( + index="threat_list", + operations=[ + { + "index": {} + }, + { + "source.ip": "203.0.113.5", + "threat_level": "high", + "threat_type": "C2_SERVER", + "last_updated": "2025-04-22" + }, + { + "index": {} + }, + { + "source.ip": "198.51.100.2", + "threat_level": "medium", + "threat_type": "SCANNER", + "last_updated": "2025-04-23" + } + ], +) +print(resp) +---- diff --git a/docs/examples/21c6cc867659cd7a29384b93dc29c170.asciidoc b/docs/examples/21c6cc867659cd7a29384b93dc29c170.asciidoc new file mode 100644 index 000000000..66190ead9 --- /dev/null +++ b/docs/examples/21c6cc867659cd7a29384b93dc29c170.asciidoc @@ -0,0 +1,10 @@ +// This file is autogenerated, DO NOT EDIT +// data-streams/failure-store.asciidoc:750 + +[source, python] +---- +resp = client.indices.get_data_stream( + name="my-datastream", +) +print(resp) +---- diff --git a/docs/examples/21d41e8cbd107fbdf0901f885834dafc.asciidoc b/docs/examples/21d41e8cbd107fbdf0901f885834dafc.asciidoc index 4ce3834f3..dfd21919b 100644 --- a/docs/examples/21d41e8cbd107fbdf0901f885834dafc.asciidoc +++ b/docs/examples/21d41e8cbd107fbdf0901f885834dafc.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/wildcard.asciidoc:139 +// mapping/types/wildcard.asciidoc:140 [source, python] ---- diff --git a/docs/examples/222e49c924ca8bac7b41bc952a39261c.asciidoc b/docs/examples/222e49c924ca8bac7b41bc952a39261c.asciidoc index faebb1e6e..f7ee79fc2 100644 --- a/docs/examples/222e49c924ca8bac7b41bc952a39261c.asciidoc +++ b/docs/examples/222e49c924ca8bac7b41bc952a39261c.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/semantic-query.asciidoc:55 +// query-dsl/semantic-query.asciidoc:53 [source, python] ---- diff --git a/docs/examples/246763219ec06172f7aa57bba28d344a.asciidoc b/docs/examples/246763219ec06172f7aa57bba28d344a.asciidoc index 5a340dc07..8b1b1a996 100644 --- a/docs/examples/246763219ec06172f7aa57bba28d344a.asciidoc +++ b/docs/examples/246763219ec06172f7aa57bba28d344a.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/rank-vectors.asciidoc:159 +// mapping/types/rank-vectors.asciidoc:152 [source, python] ---- diff --git a/docs/examples/24f4dfdf9922d5aa79151675b7767742.asciidoc b/docs/examples/24f4dfdf9922d5aa79151675b7767742.asciidoc index 454f46a64..2a298c3d4 100644 --- a/docs/examples/24f4dfdf9922d5aa79151675b7767742.asciidoc +++ b/docs/examples/24f4dfdf9922d5aa79151675b7767742.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/search-your-data/paginate-search-results.asciidoc:385 +// search/search-your-data/paginate-search-results.asciidoc:400 [source, python] ---- diff --git a/docs/examples/25576b6773322f0929d4c635a940dba0.asciidoc b/docs/examples/25576b6773322f0929d4c635a940dba0.asciidoc index 56e0c8101..b1c18d64a 100644 --- a/docs/examples/25576b6773322f0929d4c635a940dba0.asciidoc +++ b/docs/examples/25576b6773322f0929d4c635a940dba0.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/query-string-query.asciidoc:530 +// query-dsl/query-string-query.asciidoc:533 [source, python] ---- diff --git a/docs/examples/270549e6b062228312c4e7a54a2c2209.asciidoc b/docs/examples/270549e6b062228312c4e7a54a2c2209.asciidoc index f2fbab21c..9ae9ebbce 100644 --- a/docs/examples/270549e6b062228312c4e7a54a2c2209.asciidoc +++ b/docs/examples/270549e6b062228312c4e7a54a2c2209.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// troubleshooting/common-issues/task-queue-backlog.asciidoc:55 +// troubleshooting/common-issues/task-queue-backlog.asciidoc:39 [source, python] ---- diff --git a/docs/examples/272e27bf1fcc4fe5dbd4092679dd0342.asciidoc b/docs/examples/272e27bf1fcc4fe5dbd4092679dd0342.asciidoc deleted file mode 100644 index f7955285c..000000000 --- a/docs/examples/272e27bf1fcc4fe5dbd4092679dd0342.asciidoc +++ /dev/null @@ -1,11 +0,0 @@ -// This file is autogenerated, DO NOT EDIT -// migration/migrate_9_0.asciidoc:604 - -[source, python] ----- -resp = client.indices.add_block( - index=".ml-anomalies-custom-example", - block="write", -) -print(resp) ----- diff --git a/docs/examples/28543836b62b5622a402e6f7731d68f0.asciidoc b/docs/examples/28543836b62b5622a402e6f7731d68f0.asciidoc index ef9cd5175..b72a520b3 100644 --- a/docs/examples/28543836b62b5622a402e6f7731d68f0.asciidoc +++ b/docs/examples/28543836b62b5622a402e6f7731d68f0.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// data-streams/downsampling-manual.asciidoc:421 +// data-streams/downsampling-manual.asciidoc:424 [source, python] ---- diff --git a/docs/examples/2864a24608b3ac59d21f604f8a31d131.asciidoc b/docs/examples/2864a24608b3ac59d21f604f8a31d131.asciidoc index 98fb98017..2f3d3401f 100644 --- a/docs/examples/2864a24608b3ac59d21f604f8a31d131.asciidoc +++ b/docs/examples/2864a24608b3ac59d21f604f8a31d131.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// security/authentication/jwt-realm.asciidoc:504 +// security/authentication/jwt-realm.asciidoc:514 [source, python] ---- diff --git a/docs/examples/2a21674c40f9b182a8944769d20b2357.asciidoc b/docs/examples/2a21674c40f9b182a8944769d20b2357.asciidoc index a9b622970..80622a16c 100644 --- a/docs/examples/2a21674c40f9b182a8944769d20b2357.asciidoc +++ b/docs/examples/2a21674c40f9b182a8944769d20b2357.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/rank-vectors.asciidoc:137 +// mapping/types/rank-vectors.asciidoc:130 [source, python] ---- diff --git a/docs/examples/2a71e2d7f7179dd76183d30789046808.asciidoc b/docs/examples/2a71e2d7f7179dd76183d30789046808.asciidoc index 3e5c29b2d..08f15d6cd 100644 --- a/docs/examples/2a71e2d7f7179dd76183d30789046808.asciidoc +++ b/docs/examples/2a71e2d7f7179dd76183d30789046808.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// esql/multivalued-fields.asciidoc:224 +// esql/multivalued-fields.asciidoc:234 [source, python] ---- diff --git a/docs/examples/2afd49985950cbcccf727fa858d00067.asciidoc b/docs/examples/2afd49985950cbcccf727fa858d00067.asciidoc index 19ceadeaa..5ec0e9037 100644 --- a/docs/examples/2afd49985950cbcccf727fa858d00067.asciidoc +++ b/docs/examples/2afd49985950cbcccf727fa858d00067.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/semantic-text.asciidoc:159 +// mapping/types/semantic-text.asciidoc:258 [source, python] ---- diff --git a/docs/examples/2afdf0d83724953aa2875b5fb37d60cc.asciidoc b/docs/examples/2afdf0d83724953aa2875b5fb37d60cc.asciidoc index 2a307f890..195e56e7a 100644 --- a/docs/examples/2afdf0d83724953aa2875b5fb37d60cc.asciidoc +++ b/docs/examples/2afdf0d83724953aa2875b5fb37d60cc.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// esql/esql-rest.asciidoc:384 +// esql/esql-rest.asciidoc:391 [source, python] ---- diff --git a/docs/examples/2b7687e3d7c06824950e00618c297864.asciidoc b/docs/examples/2b7687e3d7c06824950e00618c297864.asciidoc index 6c9103348..dc642b896 100644 --- a/docs/examples/2b7687e3d7c06824950e00618c297864.asciidoc +++ b/docs/examples/2b7687e3d7c06824950e00618c297864.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// indices/resolve-cluster.asciidoc:205 +// indices/resolve-cluster.asciidoc:209 [source, python] ---- diff --git a/docs/examples/2bb41b0b4876ce98cd0cd8fb6d337f18.asciidoc b/docs/examples/2bb41b0b4876ce98cd0cd8fb6d337f18.asciidoc new file mode 100644 index 000000000..64dfcb7b5 --- /dev/null +++ b/docs/examples/2bb41b0b4876ce98cd0cd8fb6d337f18.asciidoc @@ -0,0 +1,16 @@ +// This file is autogenerated, DO NOT EDIT +// migration/transient-settings-migration-guide.asciidoc:64 + +[source, python] +---- +resp = client.cluster.put_settings( + persistent={ + "cluster.indices.close.enable": False, + "indices.recovery.max_bytes_per_sec": "50mb" + }, + transient={ + "*": None + }, +) +print(resp) +---- diff --git a/docs/examples/2c23285eb9f52010ecb1d5cab640ff78.asciidoc b/docs/examples/2c23285eb9f52010ecb1d5cab640ff78.asciidoc new file mode 100644 index 000000000..db2012b10 --- /dev/null +++ b/docs/examples/2c23285eb9f52010ecb1d5cab640ff78.asciidoc @@ -0,0 +1,29 @@ +// This file is autogenerated, DO NOT EDIT +// esql/esql-lookup-join.asciidoc:103 + +[source, python] +---- +resp = client.indices.create( + index="threat_list", + settings={ + "index.mode": "lookup" + }, + mappings={ + "properties": { + "source.ip": { + "type": "ip" + }, + "threat_level": { + "type": "keyword" + }, + "threat_type": { + "type": "keyword" + }, + "last_updated": { + "type": "date" + } + } + }, +) +print(resp) +---- diff --git a/docs/examples/2c3207c0c985d253b2ecccc14e69e25a.asciidoc b/docs/examples/2c3207c0c985d253b2ecccc14e69e25a.asciidoc index 8822e4d52..4946350ea 100644 --- a/docs/examples/2c3207c0c985d253b2ecccc14e69e25a.asciidoc +++ b/docs/examples/2c3207c0c985d253b2ecccc14e69e25a.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// data-streams/downsampling-manual.asciidoc:412 +// data-streams/downsampling-manual.asciidoc:415 [source, python] ---- diff --git a/docs/examples/9aedc45f83e022732789e8d796f5a43c.asciidoc b/docs/examples/2cd8439db5054c93c49f1bf50433e1bb.asciidoc similarity index 96% rename from docs/examples/9aedc45f83e022732789e8d796f5a43c.asciidoc rename to docs/examples/2cd8439db5054c93c49f1bf50433e1bb.asciidoc index 0636b0a05..47c71c482 100644 --- a/docs/examples/9aedc45f83e022732789e8d796f5a43c.asciidoc +++ b/docs/examples/2cd8439db5054c93c49f1bf50433e1bb.asciidoc @@ -4,6 +4,7 @@ [source, python] ---- resp = client.cluster.reroute( + metric="none", commands=[ { "move": { diff --git a/docs/examples/2d0244c020075595acb625aa5ba8f455.asciidoc b/docs/examples/2d0244c020075595acb625aa5ba8f455.asciidoc index 483a812fc..525320e1c 100644 --- a/docs/examples/2d0244c020075595acb625aa5ba8f455.asciidoc +++ b/docs/examples/2d0244c020075595acb625aa5ba8f455.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/fields/synthetic-source.asciidoc:253 +// mapping/fields/synthetic-source.asciidoc:257 [source, python] ---- diff --git a/docs/examples/2dad2b0c8ba503228f4b11cecca0b348.asciidoc b/docs/examples/2dad2b0c8ba503228f4b11cecca0b348.asciidoc index b073c0fa0..c251c2bf6 100644 --- a/docs/examples/2dad2b0c8ba503228f4b11cecca0b348.asciidoc +++ b/docs/examples/2dad2b0c8ba503228f4b11cecca0b348.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc:222 +// data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc:234 [source, python] ---- diff --git a/docs/examples/2ee239df3243c98418f7d9a5c7be4cfd.asciidoc b/docs/examples/2ee239df3243c98418f7d9a5c7be4cfd.asciidoc index d916e38fa..27f78f221 100644 --- a/docs/examples/2ee239df3243c98418f7d9a5c7be4cfd.asciidoc +++ b/docs/examples/2ee239df3243c98418f7d9a5c7be4cfd.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// analysis/tokenfilters/flatten-graph-tokenfilter.asciidoc:203 +// analysis/tokenfilters/flatten-graph-tokenfilter.asciidoc:218 [source, python] ---- diff --git a/docs/examples/2f2fd35905feef0b561c05d70c7064c1.asciidoc b/docs/examples/2f2fd35905feef0b561c05d70c7064c1.asciidoc index d7bf20ff3..98ad01d8c 100644 --- a/docs/examples/2f2fd35905feef0b561c05d70c7064c1.asciidoc +++ b/docs/examples/2f2fd35905feef0b561c05d70c7064c1.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/dynamic/templates.asciidoc:570 +// migration/migrate_8_0/migrate_to_java_time.asciidoc:239 [source, python] ---- diff --git a/docs/examples/2f67db5e4d6c958258c3d70fb2d0b1c8.asciidoc b/docs/examples/2f67db5e4d6c958258c3d70fb2d0b1c8.asciidoc new file mode 100644 index 000000000..00612b5df --- /dev/null +++ b/docs/examples/2f67db5e4d6c958258c3d70fb2d0b1c8.asciidoc @@ -0,0 +1,13 @@ +// This file is autogenerated, DO NOT EDIT +// migration/migrate_8_0/index-setting-changes.asciidoc:48 + +[source, python] +---- +resp = client.indices.put_settings( + index="my-index-000001", + settings={ + "index.merge.policy.max_merge_at_once_explicit": None + }, +) +print(resp) +---- diff --git a/docs/examples/2f72a63c73dd672ac2dc3997ad15dd41.asciidoc b/docs/examples/2f72a63c73dd672ac2dc3997ad15dd41.asciidoc index a5cb08edb..d2eae342c 100644 --- a/docs/examples/2f72a63c73dd672ac2dc3997ad15dd41.asciidoc +++ b/docs/examples/2f72a63c73dd672ac2dc3997ad15dd41.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/semantic-text.asciidoc:242 +// mapping/types/semantic-text.asciidoc:363 [source, python] ---- diff --git a/docs/examples/2f9574fee2ebecd6f7d917ee99b26bcc.asciidoc b/docs/examples/2f9574fee2ebecd6f7d917ee99b26bcc.asciidoc index 1017daeec..2a3abce15 100644 --- a/docs/examples/2f9574fee2ebecd6f7d917ee99b26bcc.asciidoc +++ b/docs/examples/2f9574fee2ebecd6f7d917ee99b26bcc.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/params/doc-values.asciidoc:65 +// mapping/params/doc-values.asciidoc:73 [source, python] ---- diff --git a/docs/examples/2f98924c3d593ea2b60edb9cef5bee22.asciidoc b/docs/examples/2f98924c3d593ea2b60edb9cef5bee22.asciidoc index e811461d4..6b434ce62 100644 --- a/docs/examples/2f98924c3d593ea2b60edb9cef5bee22.asciidoc +++ b/docs/examples/2f98924c3d593ea2b60edb9cef5bee22.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// how-to/size-your-shards.asciidoc:484 +// how-to/size-your-shards.asciidoc:483 [source, python] ---- diff --git a/docs/examples/2fea3e324939cc7e9c396964aeee7111.asciidoc b/docs/examples/2fea3e324939cc7e9c396964aeee7111.asciidoc index aee1dc023..aad8d9d23 100644 --- a/docs/examples/2fea3e324939cc7e9c396964aeee7111.asciidoc +++ b/docs/examples/2fea3e324939cc7e9c396964aeee7111.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/match-query.asciidoc:256 +// query-dsl/match-query.asciidoc:253 [source, python] ---- diff --git a/docs/examples/30d051f534aeb884176eedb2c11dac85.asciidoc b/docs/examples/30d051f534aeb884176eedb2c11dac85.asciidoc index 7d95ecb4e..d3c2b9193 100644 --- a/docs/examples/30d051f534aeb884176eedb2c11dac85.asciidoc +++ b/docs/examples/30d051f534aeb884176eedb2c11dac85.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// inference/service-elasticsearch.asciidoc:176 +// inference/service-elasticsearch.asciidoc:171 [source, python] ---- diff --git a/docs/examples/30e0e277a5a2c22037072d04f9fdf109.asciidoc b/docs/examples/30e0e277a5a2c22037072d04f9fdf109.asciidoc new file mode 100644 index 000000000..6a4ef8d40 --- /dev/null +++ b/docs/examples/30e0e277a5a2c22037072d04f9fdf109.asciidoc @@ -0,0 +1,25 @@ +// This file is autogenerated, DO NOT EDIT +// data-streams/failure-store.asciidoc:471 + +[source, python] +---- +resp = client.ingest.put_pipeline( + id="my-datastream-example-pipeline", + processors=[ + { + "set": { + "override": False, + "field": "@timestamp", + "copy_from": "_ingest.timestamp" + } + }, + { + "set": { + "field": "published", + "copy_from": "data" + } + } + ], +) +print(resp) +---- diff --git a/docs/examples/30f3e3b9df46afd12e68bc71f18483b4.asciidoc b/docs/examples/30f3e3b9df46afd12e68bc71f18483b4.asciidoc index 594027bb3..332f5b268 100644 --- a/docs/examples/30f3e3b9df46afd12e68bc71f18483b4.asciidoc +++ b/docs/examples/30f3e3b9df46afd12e68bc71f18483b4.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// indices/put-mapping.asciidoc:131 +// indices/put-mapping.asciidoc:137 [source, python] ---- diff --git a/docs/examples/3166455372f2d96622caff076e91ebe7.asciidoc b/docs/examples/3166455372f2d96622caff076e91ebe7.asciidoc index bcc74217a..ca7037697 100644 --- a/docs/examples/3166455372f2d96622caff076e91ebe7.asciidoc +++ b/docs/examples/3166455372f2d96622caff076e91ebe7.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/percolate-query.asciidoc:308 +// query-dsl/percolate-query.asciidoc:306 [source, python] ---- diff --git a/docs/examples/31bc93e429ad0de11dd2dd231e8f2c5e.asciidoc b/docs/examples/31bc93e429ad0de11dd2dd231e8f2c5e.asciidoc new file mode 100644 index 000000000..85b343892 --- /dev/null +++ b/docs/examples/31bc93e429ad0de11dd2dd231e8f2c5e.asciidoc @@ -0,0 +1,10 @@ +// This file is autogenerated, DO NOT EDIT +// indices/apis/unfreeze.asciidoc:57 + +[source, python] +---- +resp = client.indices.unfreeze( + index="my-index-000001", +) +print(resp) +---- diff --git a/docs/examples/320645d771e952af2a67bb7445c3688d.asciidoc b/docs/examples/320645d771e952af2a67bb7445c3688d.asciidoc index 4afe0c1b7..f29deb5b7 100644 --- a/docs/examples/320645d771e952af2a67bb7445c3688d.asciidoc +++ b/docs/examples/320645d771e952af2a67bb7445c3688d.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// analysis/analyzers/lang-analyzer.asciidoc:1648 +// analysis/analyzers/lang-analyzer.asciidoc:1647 [source, python] ---- diff --git a/docs/examples/327466380bcd55361973b4a96c6dccb2.asciidoc b/docs/examples/327466380bcd55361973b4a96c6dccb2.asciidoc index 4d6c43729..307952a06 100644 --- a/docs/examples/327466380bcd55361973b4a96c6dccb2.asciidoc +++ b/docs/examples/327466380bcd55361973b4a96c6dccb2.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// analysis/analyzers/lang-analyzer.asciidoc:1698 +// analysis/analyzers/lang-analyzer.asciidoc:1697 [source, python] ---- diff --git a/docs/examples/3312c82f81816bf76629db9582991812.asciidoc b/docs/examples/3312c82f81816bf76629db9582991812.asciidoc index 15244e685..fc383a8e4 100644 --- a/docs/examples/3312c82f81816bf76629db9582991812.asciidoc +++ b/docs/examples/3312c82f81816bf76629db9582991812.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// index-modules/slowlog.asciidoc:135 +// index-modules/slowlog.asciidoc:136 [source, python] ---- diff --git a/docs/examples/334811cfceb6858aeec5b3461717dd63.asciidoc b/docs/examples/334811cfceb6858aeec5b3461717dd63.asciidoc index cf1347fab..67d05520d 100644 --- a/docs/examples/334811cfceb6858aeec5b3461717dd63.asciidoc +++ b/docs/examples/334811cfceb6858aeec5b3461717dd63.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// ingest/processors/geoip.asciidoc:188 +// ingest/processors/geoip.asciidoc:189 [source, python] ---- diff --git a/docs/examples/346f28d82acb5427c304aa574fea0008.asciidoc b/docs/examples/346f28d82acb5427c304aa574fea0008.asciidoc index efd1f5771..a0683551d 100644 --- a/docs/examples/346f28d82acb5427c304aa574fea0008.asciidoc +++ b/docs/examples/346f28d82acb5427c304aa574fea0008.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// analysis/analyzers/lang-analyzer.asciidoc:1847 +// analysis/analyzers/lang-analyzer.asciidoc:1846 [source, python] ---- diff --git a/docs/examples/750ac969f9a05567f5cdf4f93d6244b6.asciidoc b/docs/examples/35b686d9d9e915d0dea7a4251781767d.asciidoc similarity index 95% rename from docs/examples/750ac969f9a05567f5cdf4f93d6244b6.asciidoc rename to docs/examples/35b686d9d9e915d0dea7a4251781767d.asciidoc index 7e47cc7c7..ee73d8b69 100644 --- a/docs/examples/750ac969f9a05567f5cdf4f93d6244b6.asciidoc +++ b/docs/examples/35b686d9d9e915d0dea7a4251781767d.asciidoc @@ -4,6 +4,7 @@ [source, python] ---- resp = client.cluster.reroute( + metric="none", commands=[ { "allocate_empty_primary": { diff --git a/docs/examples/3613f402ee63f0efb6b8d9c6a919b410.asciidoc b/docs/examples/3613f402ee63f0efb6b8d9c6a919b410.asciidoc index d15b39d6a..d4eb1e54d 100644 --- a/docs/examples/3613f402ee63f0efb6b8d9c6a919b410.asciidoc +++ b/docs/examples/3613f402ee63f0efb6b8d9c6a919b410.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// esql/esql-rest.asciidoc:133 +// esql/esql-rest.asciidoc:137 [source, python] ---- diff --git a/docs/examples/36792c81c053e0555407d1e83e7e054f.asciidoc b/docs/examples/36792c81c053e0555407d1e83e7e054f.asciidoc index 4941727c4..6d27fd9e7 100644 --- a/docs/examples/36792c81c053e0555407d1e83e7e054f.asciidoc +++ b/docs/examples/36792c81c053e0555407d1e83e7e054f.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/retriever.asciidoc:452 +// search/retriever.asciidoc:489 [source, python] ---- diff --git a/docs/examples/36d229f734adcdab00be266a7ce038b1.asciidoc b/docs/examples/36d229f734adcdab00be266a7ce038b1.asciidoc index b52adb699..a6752687c 100644 --- a/docs/examples/36d229f734adcdab00be266a7ce038b1.asciidoc +++ b/docs/examples/36d229f734adcdab00be266a7ce038b1.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/dense-vector.asciidoc:404 +// mapping/types/dense-vector.asciidoc:397 [source, python] ---- diff --git a/docs/examples/3758b8f2ab9f6f28a764ee6c42c85766.asciidoc b/docs/examples/3758b8f2ab9f6f28a764ee6c42c85766.asciidoc index 0e548f378..86088d303 100644 --- a/docs/examples/3758b8f2ab9f6f28a764ee6c42c85766.asciidoc +++ b/docs/examples/3758b8f2ab9f6f28a764ee6c42c85766.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/search-your-data/paginate-search-results.asciidoc:550 +// search/search-your-data/paginate-search-results.asciidoc:565 [source, python] ---- diff --git a/docs/examples/37c73410bf13429279cbc61a413957d8.asciidoc b/docs/examples/37c73410bf13429279cbc61a413957d8.asciidoc index b75a76507..56fc5156b 100644 --- a/docs/examples/37c73410bf13429279cbc61a413957d8.asciidoc +++ b/docs/examples/37c73410bf13429279cbc61a413957d8.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// how-to/size-your-shards.asciidoc:558 +// how-to/size-your-shards.asciidoc:557 [source, python] ---- diff --git a/docs/examples/3898028040335d36f2daae9eee6b550b.asciidoc b/docs/examples/3898028040335d36f2daae9eee6b550b.asciidoc new file mode 100644 index 000000000..b775bab38 --- /dev/null +++ b/docs/examples/3898028040335d36f2daae9eee6b550b.asciidoc @@ -0,0 +1,19 @@ +// This file is autogenerated, DO NOT EDIT +// data-streams/failure-store-recipes.asciidoc:176 + +[source, python] +---- +resp = client.ingest.put_pipeline( + id="ingest-step-2", + processors=[ + { + "set": { + "field": "copy.info", + "copy_from": "important.info", + "ignore_empty_value": True + } + } + ], +) +print(resp) +---- diff --git a/docs/examples/39ce44333d28ed2b833722d3e3cb06f3.asciidoc b/docs/examples/39ce44333d28ed2b833722d3e3cb06f3.asciidoc index 4aa468359..c6dda3af5 100644 --- a/docs/examples/39ce44333d28ed2b833722d3e3cb06f3.asciidoc +++ b/docs/examples/39ce44333d28ed2b833722d3e3cb06f3.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/bool-query.asciidoc:187 +// query-dsl/bool-query.asciidoc:230 [source, python] ---- diff --git a/docs/examples/3a204b57072a104d9b50f3a9e064a8f6.asciidoc b/docs/examples/3a204b57072a104d9b50f3a9e064a8f6.asciidoc deleted file mode 100644 index 6ebfa63af..000000000 --- a/docs/examples/3a204b57072a104d9b50f3a9e064a8f6.asciidoc +++ /dev/null @@ -1,19 +0,0 @@ -// This file is autogenerated, DO NOT EDIT -// migration/migrate_9_0.asciidoc:620 - -[source, python] ----- -resp = client.search( - index=".ml-anomalies-custom-example", - size=0, - aggs={ - "job_ids": { - "terms": { - "field": "job_id", - "size": 100 - } - } - }, -) -print(resp) ----- diff --git a/docs/examples/3afc6dacf90b42900ab571aad8a61d75.asciidoc b/docs/examples/3afc6dacf90b42900ab571aad8a61d75.asciidoc index db5b89d75..9168398c6 100644 --- a/docs/examples/3afc6dacf90b42900ab571aad8a61d75.asciidoc +++ b/docs/examples/3afc6dacf90b42900ab571aad8a61d75.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// analysis/analyzers/lang-analyzer.asciidoc:1599 +// analysis/analyzers/lang-analyzer.asciidoc:1598 [source, python] ---- diff --git a/docs/examples/3bc4a3681e3ea9cb3de49f72085807d8.asciidoc b/docs/examples/3bc4a3681e3ea9cb3de49f72085807d8.asciidoc index b58b0609d..9849eb5f6 100644 --- a/docs/examples/3bc4a3681e3ea9cb3de49f72085807d8.asciidoc +++ b/docs/examples/3bc4a3681e3ea9cb3de49f72085807d8.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/search-your-data/retrievers-examples.asciidoc:321 +// search/search-your-data/retrievers-examples.asciidoc:326 [source, python] ---- diff --git a/docs/examples/3c7621a81fa982b79f040a6d2611530e.asciidoc b/docs/examples/3c7621a81fa982b79f040a6d2611530e.asciidoc index 71e813344..de860006f 100644 --- a/docs/examples/3c7621a81fa982b79f040a6d2611530e.asciidoc +++ b/docs/examples/3c7621a81fa982b79f040a6d2611530e.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// indices/simulate-template.asciidoc:157 +// indices/simulate-template.asciidoc:156 [source, python] ---- diff --git a/docs/examples/3cd93a48906069709b76420c66930c01.asciidoc b/docs/examples/3cd93a48906069709b76420c66930c01.asciidoc index 6c3859dd8..fffdc26dd 100644 --- a/docs/examples/3cd93a48906069709b76420c66930c01.asciidoc +++ b/docs/examples/3cd93a48906069709b76420c66930c01.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// analysis/tokenfilters/stemmer-tokenfilter.asciidoc:264 +// analysis/tokenfilters/stemmer-tokenfilter.asciidoc:265 [source, python] ---- diff --git a/docs/examples/3d924850fb2372fff4739fd145660f88.asciidoc b/docs/examples/3d924850fb2372fff4739fd145660f88.asciidoc new file mode 100644 index 000000000..34cd7292a --- /dev/null +++ b/docs/examples/3d924850fb2372fff4739fd145660f88.asciidoc @@ -0,0 +1,20 @@ +// This file is autogenerated, DO NOT EDIT +// search/search-your-data/retrievers-examples.asciidoc:540 + +[source, python] +---- +resp = client.search( + index="retrievers_example", + retriever={ + "rrf": { + "query": "artificial intelligence", + "fields": [ + "text", + "text_semantic" + ] + } + }, + source=False, +) +print(resp) +---- diff --git a/docs/examples/3faf5e2873de340acfe0a617017db784.asciidoc b/docs/examples/3faf5e2873de340acfe0a617017db784.asciidoc index b8b84cc75..5babde107 100644 --- a/docs/examples/3faf5e2873de340acfe0a617017db784.asciidoc +++ b/docs/examples/3faf5e2873de340acfe0a617017db784.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/query-string-query.asciidoc:283 +// query-dsl/query-string-query.asciidoc:286 [source, python] ---- diff --git a/docs/examples/3fd5e3adee1e90a3145af55e2c53e1ee.asciidoc b/docs/examples/3fd5e3adee1e90a3145af55e2c53e1ee.asciidoc new file mode 100644 index 000000000..d38a90154 --- /dev/null +++ b/docs/examples/3fd5e3adee1e90a3145af55e2c53e1ee.asciidoc @@ -0,0 +1,52 @@ +// This file is autogenerated, DO NOT EDIT +// data-streams/failure-store-recipes.asciidoc:639 + +[source, python] +---- +resp = client.ingest.simulate( + pipeline={ + "processors": [ + { + "script": { + "lang": "painless", + "source": "\n ctx._index = ctx.document.index;\n ctx._routing = ctx.document.routing;\n def s = ctx.document.source;\n ctx.remove(\"error\");\n ctx.remove(\"document\");\n for (e in s.entrySet()) {\n ctx[e.key] = e.value;\n }" + } + }, + { + "reroute": { + "destination": "my-datastream-ingest-example" + } + } + ] + }, + docs=[ + { + "_index": ".fs-my-datastream-ingest-example-2025.05.16-000001", + "_id": "cOnR2ZYByIwDXH-g6GpR", + "_source": { + "@timestamp": "2025-05-01T15:58:53.522Z", + "document": { + "index": "my-datastream-ingest-example", + "source": { + "@timestamp": "2025-05-01T00:00:00Z", + "data": { + "counter": 42 + } + } + }, + "error": { + "type": "illegal_argument_exception", + "message": "field [id] not present as part of path [data.id]", + "stack_trace": "j.l.IllegalArgumentException: field [id] not present as part of path [data.id] at o.e.i.IngestDocument.getFieldValue(IngestDocument.java:202) at o.e.i.c.SetProcessor.execute(SetProcessor.java:86) ... 14 more\n", + "pipeline_trace": [ + "my-datastream-default-pipeline" + ], + "pipeline": "my-datastream-default-pipeline", + "processor_type": "set" + } + } + } + ], +) +print(resp) +---- diff --git a/docs/examples/40b73b5c7ca144dc3f63f5b741f33d80.asciidoc b/docs/examples/40b73b5c7ca144dc3f63f5b741f33d80.asciidoc index 0b7604dc6..609755ffd 100644 --- a/docs/examples/40b73b5c7ca144dc3f63f5b741f33d80.asciidoc +++ b/docs/examples/40b73b5c7ca144dc3f63f5b741f33d80.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/percolate-query.asciidoc:157 +// query-dsl/percolate-query.asciidoc:155 [source, python] ---- diff --git a/docs/examples/40bd86e400d27e68b8f0ae580c29d32d.asciidoc b/docs/examples/40bd86e400d27e68b8f0ae580c29d32d.asciidoc index f150be621..2cb413860 100644 --- a/docs/examples/40bd86e400d27e68b8f0ae580c29d32d.asciidoc +++ b/docs/examples/40bd86e400d27e68b8f0ae580c29d32d.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// how-to/size-your-shards.asciidoc:279 +// how-to/size-your-shards.asciidoc:278 [source, python] ---- diff --git a/docs/examples/40c3e7bb1fdc125a1ab21bd7d7326694.asciidoc b/docs/examples/40c3e7bb1fdc125a1ab21bd7d7326694.asciidoc index 9a580ba46..af859cd55 100644 --- a/docs/examples/40c3e7bb1fdc125a1ab21bd7d7326694.asciidoc +++ b/docs/examples/40c3e7bb1fdc125a1ab21bd7d7326694.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// esql/multivalued-fields.asciidoc:145 +// esql/multivalued-fields.asciidoc:151 [source, python] ---- diff --git a/docs/examples/40f97f70e8e743c6a6296c81b920aeb0.asciidoc b/docs/examples/40f97f70e8e743c6a6296c81b920aeb0.asciidoc index 06969d9fd..8f4e0432d 100644 --- a/docs/examples/40f97f70e8e743c6a6296c81b920aeb0.asciidoc +++ b/docs/examples/40f97f70e8e743c6a6296c81b920aeb0.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// how-to/size-your-shards.asciidoc:314 +// how-to/size-your-shards.asciidoc:313 [source, python] ---- diff --git a/docs/examples/425eaaf9c7e3b1e77a3474fbab4183b4.asciidoc b/docs/examples/425eaaf9c7e3b1e77a3474fbab4183b4.asciidoc index 7b8038083..b6bb4fb2c 100644 --- a/docs/examples/425eaaf9c7e3b1e77a3474fbab4183b4.asciidoc +++ b/docs/examples/425eaaf9c7e3b1e77a3474fbab4183b4.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// troubleshooting/common-issues/task-queue-backlog.asciidoc:36 +// troubleshooting/common-issues/task-queue-backlog.asciidoc:25 [source, python] ---- diff --git a/docs/examples/4342ccf6cc24fd80bd3cd1f9a4c2ef8e.asciidoc b/docs/examples/4342ccf6cc24fd80bd3cd1f9a4c2ef8e.asciidoc index ea2dda1ee..e86d02b47 100644 --- a/docs/examples/4342ccf6cc24fd80bd3cd1f9a4c2ef8e.asciidoc +++ b/docs/examples/4342ccf6cc24fd80bd3cd1f9a4c2ef8e.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/search-your-data/paginate-search-results.asciidoc:515 +// search/search-your-data/paginate-search-results.asciidoc:530 [source, python] ---- diff --git a/docs/examples/43d9e314431336a6f084cea76dfd6489.asciidoc b/docs/examples/43d9e314431336a6f084cea76dfd6489.asciidoc index c1ec6eb7d..33ba576bd 100644 --- a/docs/examples/43d9e314431336a6f084cea76dfd6489.asciidoc +++ b/docs/examples/43d9e314431336a6f084cea76dfd6489.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/retriever.asciidoc:254 +// search/retriever.asciidoc:281 [source, python] ---- diff --git a/docs/examples/447809c85056383d040c058c48d43c63.asciidoc b/docs/examples/447809c85056383d040c058c48d43c63.asciidoc new file mode 100644 index 000000000..aa3796c75 --- /dev/null +++ b/docs/examples/447809c85056383d040c058c48d43c63.asciidoc @@ -0,0 +1,44 @@ +// This file is autogenerated, DO NOT EDIT +// data-streams/failure-store-recipes.asciidoc:1064 + +[source, python] +---- +resp = client.ingest.simulate( + pipeline={ + "processors": [ + { + "script": { + "lang": "painless", + "source": "\n ctx._index = ctx.document.index;\n ctx._routing = ctx.document.routing;\n def s = ctx.document.source;\n ctx.remove(\"error\");\n ctx.remove(\"document\");\n for (e in s.entrySet()) {\n ctx[e.key] = e.value;\n }" + } + } + ] + }, + docs=[ + { + "_index": ".fs-my-datastream-indexing-example-2025.05.16-000002", + "_id": "_lA-GJcBHLe506UUGL0I", + "_score": 1.5753641, + "_source": { + "@timestamp": "2025-05-02T18:53:31.153Z", + "document": { + "id": "_VA-GJcBHLe506UUFL2i", + "index": "my-datastream-indexing-example", + "source": { + "processed": True, + "data": { + "counter": 37 + } + } + }, + "error": { + "type": "document_parsing_exception", + "message": "[1:40] failed to parse: data stream timestamp field [@timestamp] is missing", + "stack_trace": "o.e.i.m.DocumentParsingException: [1:40] failed to parse: data stream timestamp field [@timestamp] is missing at o.e.i.m.DocumentParser.wrapInDocumentParsingException(DocumentParser.java:265) at o.e.i.m.DocumentParser.internalParseDocument(DocumentParser.java:162) ... 19 more\nCaused by: j.l.IllegalArgumentException: data stream timestamp field [@timestamp] is missing at o.e.i.m.DataStreamTimestampFieldMapper.extractTimestampValue(DataStreamTimestampFieldMapper.java:210) at o.e.i.m.DataStreamTimestampFieldMapper.postParse(DataStreamTimestampFieldMapper.java:223) ... 20 more\n" + } + } + } + ], +) +print(resp) +---- diff --git a/docs/examples/6cb1dae368c945ecf7c9ec332a5743a2.asciidoc b/docs/examples/45b0b2420c807bcb31fcb051daa7099a.asciidoc similarity index 92% rename from docs/examples/6cb1dae368c945ecf7c9ec332a5743a2.asciidoc rename to docs/examples/45b0b2420c807bcb31fcb051daa7099a.asciidoc index 553747119..4100136c8 100644 --- a/docs/examples/6cb1dae368c945ecf7c9ec332a5743a2.asciidoc +++ b/docs/examples/45b0b2420c807bcb31fcb051daa7099a.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/text.asciidoc:180 +// mapping/types/text.asciidoc:235 [source, python] ---- @@ -18,6 +18,7 @@ resp = client.indices.create( "properties": { "text": { "type": "text", + "store": True, "fields": { "raw": { "type": "keyword" diff --git a/docs/examples/46276fbcba7b5e9541dd56ec3f20cf2a.asciidoc b/docs/examples/46276fbcba7b5e9541dd56ec3f20cf2a.asciidoc new file mode 100644 index 000000000..44fe001b8 --- /dev/null +++ b/docs/examples/46276fbcba7b5e9541dd56ec3f20cf2a.asciidoc @@ -0,0 +1,18 @@ +// This file is autogenerated, DO NOT EDIT +// inference/service-voyageai.asciidoc:154 + +[source, python] +---- +resp = client.inference.put( + task_type="text_embedding", + inference_id="voyageai-embeddings", + inference_config={ + "service": "voyageai", + "service_settings": { + "model_id": "voyage-3-large", + "dimensions": 512 + } + }, +) +print(resp) +---- diff --git a/docs/examples/46658f00edc4865dfe472a392374cd0f.asciidoc b/docs/examples/46658f00edc4865dfe472a392374cd0f.asciidoc index 185af87c5..568634b45 100644 --- a/docs/examples/46658f00edc4865dfe472a392374cd0f.asciidoc +++ b/docs/examples/46658f00edc4865dfe472a392374cd0f.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// indices/put-index-template-v1.asciidoc:258 +// indices/put-index-template-v1.asciidoc:257 [source, python] ---- diff --git a/docs/examples/472ec8c57fec8457e31fe6dd7f6e3713.asciidoc b/docs/examples/472ec8c57fec8457e31fe6dd7f6e3713.asciidoc index 09064de43..e73d68276 100644 --- a/docs/examples/472ec8c57fec8457e31fe6dd7f6e3713.asciidoc +++ b/docs/examples/472ec8c57fec8457e31fe6dd7f6e3713.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/query-string-query.asciidoc:448 +// query-dsl/query-string-query.asciidoc:451 [source, python] ---- diff --git a/docs/examples/47909e194d10743093f4a22c27a85925.asciidoc b/docs/examples/47909e194d10743093f4a22c27a85925.asciidoc index 845b3e147..fba225225 100644 --- a/docs/examples/47909e194d10743093f4a22c27a85925.asciidoc +++ b/docs/examples/47909e194d10743093f4a22c27a85925.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/search-your-data/paginate-search-results.asciidoc:198 +// search/search-your-data/paginate-search-results.asciidoc:213 [source, python] ---- diff --git a/docs/examples/488f6df1df71972392b670ce557f7ff3.asciidoc b/docs/examples/488f6df1df71972392b670ce557f7ff3.asciidoc index 6d60ffbe5..f987f3c7d 100644 --- a/docs/examples/488f6df1df71972392b670ce557f7ff3.asciidoc +++ b/docs/examples/488f6df1df71972392b670ce557f7ff3.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// indices/put-index-template-v1.asciidoc:240 +// indices/put-index-template-v1.asciidoc:239 [source, python] ---- diff --git a/docs/examples/49b31e23f8b9667b6a7b2734d55fb6ed.asciidoc b/docs/examples/49b31e23f8b9667b6a7b2734d55fb6ed.asciidoc new file mode 100644 index 000000000..a3fcb5fab --- /dev/null +++ b/docs/examples/49b31e23f8b9667b6a7b2734d55fb6ed.asciidoc @@ -0,0 +1,24 @@ +// This file is autogenerated, DO NOT EDIT +// search/knn-search.asciidoc:36 + +[source, python] +---- +resp = client.knn_search( + index="my-index", + knn={ + "field": "image_vector", + "query_vector": [ + 0.3, + 0.1, + 1.2 + ], + "k": 10, + "num_candidates": 100 + }, + source=[ + "name", + "file_type" + ], +) +print(resp) +---- diff --git a/docs/examples/49e8773a34fcbf825de38426cff5509c.asciidoc b/docs/examples/49e8773a34fcbf825de38426cff5509c.asciidoc index 4e7fd6c8f..4e6dd4ec4 100644 --- a/docs/examples/49e8773a34fcbf825de38426cff5509c.asciidoc +++ b/docs/examples/49e8773a34fcbf825de38426cff5509c.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/profile.asciidoc:1275 +// search/profile.asciidoc:1276 [source, python] ---- diff --git a/docs/examples/643e19c3b6ac1134554dd890e2249c2b.asciidoc b/docs/examples/4ab7c13d27ec8f9e6705a0e77fe53c20.asciidoc similarity index 84% rename from docs/examples/643e19c3b6ac1134554dd890e2249c2b.asciidoc rename to docs/examples/4ab7c13d27ec8f9e6705a0e77fe53c20.asciidoc index c77ffb136..e80b9f805 100644 --- a/docs/examples/643e19c3b6ac1134554dd890e2249c2b.asciidoc +++ b/docs/examples/4ab7c13d27ec8f9e6705a0e77fe53c20.asciidoc @@ -1,12 +1,12 @@ // This file is autogenerated, DO NOT EDIT -// data-streams/logs.asciidoc:20 +// data-streams/logs.asciidoc:22 [source, python] ---- resp = client.indices.put_index_template( name="my-index-template", index_patterns=[ - "logs-*" + "my-datastream-*" ], data_stream={}, template={ diff --git a/docs/examples/4b3a49710fafa35d6d41a8ec12434515.asciidoc b/docs/examples/4b3a49710fafa35d6d41a8ec12434515.asciidoc index 3348a97e0..5ea292e1c 100644 --- a/docs/examples/4b3a49710fafa35d6d41a8ec12434515.asciidoc +++ b/docs/examples/4b3a49710fafa35d6d41a8ec12434515.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/percolate-query.asciidoc:467 +// query-dsl/percolate-query.asciidoc:465 [source, python] ---- diff --git a/docs/examples/4bef98a2dac575a50ee0783c2269f1db.asciidoc b/docs/examples/4bef98a2dac575a50ee0783c2269f1db.asciidoc index 80814dcf0..d2788d077 100644 --- a/docs/examples/4bef98a2dac575a50ee0783c2269f1db.asciidoc +++ b/docs/examples/4bef98a2dac575a50ee0783c2269f1db.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/dense-vector.asciidoc:498 +// mapping/types/dense-vector.asciidoc:491 [source, python] ---- diff --git a/docs/examples/4c174e228b6b74497b73ef2be80de7ad.asciidoc b/docs/examples/4c174e228b6b74497b73ef2be80de7ad.asciidoc index 3dd959ac0..899054e29 100644 --- a/docs/examples/4c174e228b6b74497b73ef2be80de7ad.asciidoc +++ b/docs/examples/4c174e228b6b74497b73ef2be80de7ad.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// ml/trained-models/apis/get-trained-models.asciidoc:1467 +// ml/trained-models/apis/get-trained-models.asciidoc:1466 [source, python] ---- diff --git a/docs/examples/4c3db8987d7b2d3d3df78ff1e71e7ede.asciidoc b/docs/examples/4c3db8987d7b2d3d3df78ff1e71e7ede.asciidoc index 4fb637fd2..b8f216834 100644 --- a/docs/examples/4c3db8987d7b2d3d3df78ff1e71e7ede.asciidoc +++ b/docs/examples/4c3db8987d7b2d3d3df78ff1e71e7ede.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/match-query.asciidoc:22 +// query-dsl/match-query.asciidoc:21 [source, python] ---- diff --git a/docs/examples/4c9350ed09b28f00e297ebe73c3b95a2.asciidoc b/docs/examples/4c9350ed09b28f00e297ebe73c3b95a2.asciidoc index 85dd4b15b..6d0c9c9ed 100644 --- a/docs/examples/4c9350ed09b28f00e297ebe73c3b95a2.asciidoc +++ b/docs/examples/4c9350ed09b28f00e297ebe73c3b95a2.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// inference/service-elasticsearch.asciidoc:236 +// inference/service-elasticsearch.asciidoc:231 [source, python] ---- diff --git a/docs/examples/4c95d54b32df4dc49e9762b6c1ae2c05.asciidoc b/docs/examples/4c95d54b32df4dc49e9762b6c1ae2c05.asciidoc index da1513b91..37e7f3fb3 100644 --- a/docs/examples/4c95d54b32df4dc49e9762b6c1ae2c05.asciidoc +++ b/docs/examples/4c95d54b32df4dc49e9762b6c1ae2c05.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/text.asciidoc:368 +// mapping/types/text.asciidoc:374 [source, python] ---- diff --git a/docs/examples/4ca15672fc5ab1d80a127d086b6d2837.asciidoc b/docs/examples/4ca15672fc5ab1d80a127d086b6d2837.asciidoc index b0a3784fb..0492c7100 100644 --- a/docs/examples/4ca15672fc5ab1d80a127d086b6d2837.asciidoc +++ b/docs/examples/4ca15672fc5ab1d80a127d086b6d2837.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// cluster/allocation-explain.asciidoc:457 +// cluster/allocation-explain.asciidoc:456 [source, python] ---- diff --git a/docs/examples/4d33d8bc26b1568fc36f11b5769ba30b.asciidoc b/docs/examples/4d33d8bc26b1568fc36f11b5769ba30b.asciidoc new file mode 100644 index 000000000..5665e1a3e --- /dev/null +++ b/docs/examples/4d33d8bc26b1568fc36f11b5769ba30b.asciidoc @@ -0,0 +1,48 @@ +// This file is autogenerated, DO NOT EDIT +// data-streams/failure-store-recipes.asciidoc:1152 + +[source, python] +---- +resp = client.reindex( + source={ + "index": "my-datastream-indexing-example::failures", + "query": { + "bool": { + "must_not": [ + { + "exists": { + "field": "error.pipeline" + } + } + ], + "must": [ + { + "match": { + "document.index": "my-datastream-indexing-example" + } + }, + { + "match": { + "error.type": "document_parsing_exception" + } + }, + { + "range": { + "@timestamp": { + "gt": "2025-05-01T00:00:00Z", + "lte": "2025-05-28T19:00:00Z" + } + } + } + ] + } + } + }, + dest={ + "index": "my-datastream-indexing-example", + "op_type": "create", + "pipeline": "my-datastream-remediation-pipeline" + }, +) +print(resp) +---- diff --git a/docs/examples/4d7ecaf879ddd3bcb7876915515be056.asciidoc b/docs/examples/4d7ecaf879ddd3bcb7876915515be056.asciidoc new file mode 100644 index 000000000..762bc4f2a --- /dev/null +++ b/docs/examples/4d7ecaf879ddd3bcb7876915515be056.asciidoc @@ -0,0 +1,10 @@ +// This file is autogenerated, DO NOT EDIT +// data-streams/failure-store.asciidoc:343 + +[source, python] +---- +resp = client.search( + index="my-datastream::failures", +) +print(resp) +---- diff --git a/docs/examples/4dab4c5168047ba596af1beb0e55b845.asciidoc b/docs/examples/4dab4c5168047ba596af1beb0e55b845.asciidoc new file mode 100644 index 000000000..275db14c9 --- /dev/null +++ b/docs/examples/4dab4c5168047ba596af1beb0e55b845.asciidoc @@ -0,0 +1,10 @@ +// This file is autogenerated, DO NOT EDIT +// migration/transient-settings-migration-guide.asciidoc:82 + +[source, python] +---- +resp = client.cluster.get_settings( + flat_settings=True, +) +print(resp) +---- diff --git a/docs/examples/4e50d9d25bfb07ac73e3a2be5d2fbbf7.asciidoc b/docs/examples/4e50d9d25bfb07ac73e3a2be5d2fbbf7.asciidoc index 59b09c26e..bf60eda88 100644 --- a/docs/examples/4e50d9d25bfb07ac73e3a2be5d2fbbf7.asciidoc +++ b/docs/examples/4e50d9d25bfb07ac73e3a2be5d2fbbf7.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/search-your-data/paginate-search-results.asciidoc:229 +// search/search-your-data/paginate-search-results.asciidoc:244 [source, python] ---- diff --git a/docs/examples/4ed946065faa92f9950f04e402676a97.asciidoc b/docs/examples/4ed946065faa92f9950f04e402676a97.asciidoc index 72f00c320..ee956cd68 100644 --- a/docs/examples/4ed946065faa92f9950f04e402676a97.asciidoc +++ b/docs/examples/4ed946065faa92f9950f04e402676a97.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// rest-api/info.asciidoc:206 +// rest-api/info.asciidoc:210 [source, python] ---- diff --git a/docs/examples/4f6694ef147a73b1163bde3c13779d26.asciidoc b/docs/examples/4f6694ef147a73b1163bde3c13779d26.asciidoc index 249c1bddd..419fb698c 100644 --- a/docs/examples/4f6694ef147a73b1163bde3c13779d26.asciidoc +++ b/docs/examples/4f6694ef147a73b1163bde3c13779d26.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// troubleshooting/common-issues/rejected-requests.asciidoc:68 +// troubleshooting/common-issues/rejected-requests.asciidoc:62 [source, python] ---- diff --git a/docs/examples/4ffe95418e2506a53e61f899c6fa65fe.asciidoc b/docs/examples/4ffe95418e2506a53e61f899c6fa65fe.asciidoc new file mode 100644 index 000000000..9511c4b89 --- /dev/null +++ b/docs/examples/4ffe95418e2506a53e61f899c6fa65fe.asciidoc @@ -0,0 +1,10 @@ +// This file is autogenerated, DO NOT EDIT +// data-streams/failure-store-recipes.asciidoc:120 + +[source, python] +---- +resp = client.ingest.get_pipeline( + id="ingest-step-2", +) +print(resp) +---- diff --git a/docs/examples/50b5c0332949d2154c72b629b5fa6222.asciidoc b/docs/examples/50b5c0332949d2154c72b629b5fa6222.asciidoc index b096a417a..abb1aabc9 100644 --- a/docs/examples/50b5c0332949d2154c72b629b5fa6222.asciidoc +++ b/docs/examples/50b5c0332949d2154c72b629b5fa6222.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// indices/put-mapping.asciidoc:345 +// indices/put-mapping.asciidoc:351 [source, python] ---- diff --git a/docs/examples/50d9c0508ddb0fc5ba5a893eec219dd8.asciidoc b/docs/examples/50d9c0508ddb0fc5ba5a893eec219dd8.asciidoc index a078c4d75..33b62843a 100644 --- a/docs/examples/50d9c0508ddb0fc5ba5a893eec219dd8.asciidoc +++ b/docs/examples/50d9c0508ddb0fc5ba5a893eec219dd8.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/fields/synthetic-source.asciidoc:129 +// mapping/fields/synthetic-source.asciidoc:133 [source, python] ---- diff --git a/docs/examples/51390ca10aa22d7104e8970f09ea4512.asciidoc b/docs/examples/51390ca10aa22d7104e8970f09ea4512.asciidoc new file mode 100644 index 000000000..89b0ed3ee --- /dev/null +++ b/docs/examples/51390ca10aa22d7104e8970f09ea4512.asciidoc @@ -0,0 +1,33 @@ +// This file is autogenerated, DO NOT EDIT +// mapping/types/binary.asciidoc:61 + +[source, python] +---- +resp = client.indices.create( + index="idx", + mappings={ + "_source": { + "mode": "synthetic" + }, + "properties": { + "binary": { + "type": "binary", + "doc_values": True + } + } + }, +) +print(resp) + +resp1 = client.index( + index="idx", + id="1", + document={ + "binary": [ + "IAA=", + "EAA=" + ] + }, +) +print(resp1) +---- diff --git a/docs/examples/519e46350316a33162740e5d7968aa2c.asciidoc b/docs/examples/519e46350316a33162740e5d7968aa2c.asciidoc index a0daa1e65..0759524d5 100644 --- a/docs/examples/519e46350316a33162740e5d7968aa2c.asciidoc +++ b/docs/examples/519e46350316a33162740e5d7968aa2c.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/search-your-data/knn-search.asciidoc:1103 +// search/search-your-data/knn-search.asciidoc:1101 [source, python] ---- diff --git a/docs/examples/51b44224feee6e2e5974824334474c77.asciidoc b/docs/examples/51b44224feee6e2e5974824334474c77.asciidoc index 93e483a64..39fd07694 100644 --- a/docs/examples/51b44224feee6e2e5974824334474c77.asciidoc +++ b/docs/examples/51b44224feee6e2e5974824334474c77.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// snapshot-restore/repository-s3.asciidoc:371 +// snapshot-restore/repository-s3.asciidoc:337 [source, python] ---- diff --git a/docs/examples/51f6a62c0f0a02aa97a42c6a80542aa4.asciidoc b/docs/examples/51f6a62c0f0a02aa97a42c6a80542aa4.asciidoc new file mode 100644 index 000000000..79ec69635 --- /dev/null +++ b/docs/examples/51f6a62c0f0a02aa97a42c6a80542aa4.asciidoc @@ -0,0 +1,28 @@ +// This file is autogenerated, DO NOT EDIT +// search/retriever.asciidoc:1069 + +[source, python] +---- +resp = client.indices.create( + index="books", + mappings={ + "properties": { + "title": { + "type": "text", + "copy_to": "title_semantic" + }, + "description": { + "type": "text", + "copy_to": "description_semantic" + }, + "title_semantic": { + "type": "semantic_text" + }, + "description_semantic": { + "type": "semantic_text" + } + } + }, +) +print(resp) +---- diff --git a/docs/examples/52f1c1689ab35353858cdeaab7597546.asciidoc b/docs/examples/52f1c1689ab35353858cdeaab7597546.asciidoc index cd29eaa7d..83ea88334 100644 --- a/docs/examples/52f1c1689ab35353858cdeaab7597546.asciidoc +++ b/docs/examples/52f1c1689ab35353858cdeaab7597546.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// ingest/common-log-format-example.asciidoc:174 +// ingest/common-log-format-example.asciidoc:175 [source, python] ---- diff --git a/docs/examples/52f4c5eb08d39f98e2e2f5527ece9731.asciidoc b/docs/examples/52f4c5eb08d39f98e2e2f5527ece9731.asciidoc index 89fa235ad..34a3c3906 100644 --- a/docs/examples/52f4c5eb08d39f98e2e2f5527ece9731.asciidoc +++ b/docs/examples/52f4c5eb08d39f98e2e2f5527ece9731.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// inference/service-alibabacloud-ai-search.asciidoc:210 +// inference/service-alibabacloud-ai-search.asciidoc:213 [source, python] ---- diff --git a/docs/examples/54fc2f2d7a0a9843aeae5d7bab78471f.asciidoc b/docs/examples/54fc2f2d7a0a9843aeae5d7bab78471f.asciidoc new file mode 100644 index 000000000..c9c182d32 --- /dev/null +++ b/docs/examples/54fc2f2d7a0a9843aeae5d7bab78471f.asciidoc @@ -0,0 +1,11 @@ +// This file is autogenerated, DO NOT EDIT +// data-streams/failure-store.asciidoc:318 + +[source, python] +---- +resp = client.esql.query( + format="txt", + query="FROM my-datastream::failures | DROP error.stack_trace | LIMIT 1", +) +print(resp) +---- diff --git a/docs/examples/551799fef2f86e393db83a967e4a30d1.asciidoc b/docs/examples/551799fef2f86e393db83a967e4a30d1.asciidoc index e2b93fb61..54ada40f7 100644 --- a/docs/examples/551799fef2f86e393db83a967e4a30d1.asciidoc +++ b/docs/examples/551799fef2f86e393db83a967e4a30d1.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/aggregate-metric-double.asciidoc:264 +// mapping/types/aggregate-metric-double.asciidoc:257 [source, python] ---- diff --git a/docs/examples/56a1aa4f7fa62f2289e20607e3039bf3.asciidoc b/docs/examples/56a1aa4f7fa62f2289e20607e3039bf3.asciidoc index 3d50d720a..dcaf62835 100644 --- a/docs/examples/56a1aa4f7fa62f2289e20607e3039bf3.asciidoc +++ b/docs/examples/56a1aa4f7fa62f2289e20607e3039bf3.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// indices/put-mapping.asciidoc:19 +// indices/put-mapping.asciidoc:25 [source, python] ---- diff --git a/docs/examples/56da252798b8e7b006738428aa1a7f4c.asciidoc b/docs/examples/56da252798b8e7b006738428aa1a7f4c.asciidoc index f53776159..28f81baf9 100644 --- a/docs/examples/56da252798b8e7b006738428aa1a7f4c.asciidoc +++ b/docs/examples/56da252798b8e7b006738428aa1a7f4c.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/range.asciidoc:373 +// mapping/types/range.asciidoc:366 [source, python] ---- diff --git a/docs/examples/57a62f66b67a08c38942f0edb0fbaa26.asciidoc b/docs/examples/57a62f66b67a08c38942f0edb0fbaa26.asciidoc new file mode 100644 index 000000000..e4ea7ee57 --- /dev/null +++ b/docs/examples/57a62f66b67a08c38942f0edb0fbaa26.asciidoc @@ -0,0 +1,26 @@ +// This file is autogenerated, DO NOT EDIT +// mapping/types/semantic-text.asciidoc:298 + +[source, python] +---- +resp = client.indices.create( + index="my-index-000004", + mappings={ + "properties": { + "inference_field": { + "type": "semantic_text", + "inference_id": "my-text-embedding-endpoint", + "index_options": { + "dense_vector": { + "type": "int4_flat" + } + }, + "chunking_settings": { + "type": "none" + } + } + } + }, +) +print(resp) +---- diff --git a/docs/examples/584f502cf840134f2db5f39e2483ced1.asciidoc b/docs/examples/584f502cf840134f2db5f39e2483ced1.asciidoc index cb0cd262e..925fc1eb0 100644 --- a/docs/examples/584f502cf840134f2db5f39e2483ced1.asciidoc +++ b/docs/examples/584f502cf840134f2db5f39e2483ced1.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// analysis/analyzers/lang-analyzer.asciidoc:1454 +// analysis/analyzers/lang-analyzer.asciidoc:1453 [source, python] ---- diff --git a/docs/examples/58e33eeb613fd669be324fadfcf4a219.asciidoc b/docs/examples/58e33eeb613fd669be324fadfcf4a219.asciidoc new file mode 100644 index 000000000..5d4da6a0c --- /dev/null +++ b/docs/examples/58e33eeb613fd669be324fadfcf4a219.asciidoc @@ -0,0 +1,55 @@ +// This file is autogenerated, DO NOT EDIT +// data-streams/failure-store-recipes.asciidoc:730 + +[source, python] +---- +resp = client.simulate.ingest( + pipeline="my-datastream-remediation-pipeline", + pipeline_substitutions={ + "my-datastream-remediation-pipeline": { + "processors": [ + { + "script": { + "lang": "painless", + "source": "\n ctx._index = ctx.document.index;\n ctx._routing = ctx.document.routing;\n def s = ctx.document.source;\n ctx.remove(\"error\");\n ctx.remove(\"document\");\n for (e in s.entrySet()) {\n ctx[e.key] = e.value;\n }" + } + }, + { + "reroute": { + "destination": "my-datastream-ingest-example" + } + } + ] + } + }, + docs=[ + { + "_index": ".fs-my-datastream-ingest-example-2025.05.16-000001", + "_id": "cOnR2ZYByIwDXH-g6GpR", + "_source": { + "@timestamp": "2025-05-01T15:58:53.522Z", + "document": { + "index": "my-datastream-ingest-example", + "source": { + "@timestamp": "2025-05-01T00:00:00Z", + "data": { + "counter": 42 + } + } + }, + "error": { + "type": "illegal_argument_exception", + "message": "field [id] not present as part of path [data.id]", + "stack_trace": "j.l.IllegalArgumentException: field [id] not present as part of path [data.id] at o.e.i.IngestDocument.getFieldValue(IngestDocument.java:202) at o.e.i.c.SetProcessor.execute(SetProcessor.java:86) ... 14 more\n", + "pipeline_trace": [ + "my-datastream-default-pipeline" + ], + "pipeline": "my-datastream-default-pipeline", + "processor_type": "set" + } + } + } + ], +) +print(resp) +---- diff --git a/docs/examples/f9bad6fd369764185e1cb09b89ee39cc.asciidoc b/docs/examples/58fb1f324597070bee2cf854c162d388.asciidoc similarity index 73% rename from docs/examples/f9bad6fd369764185e1cb09b89ee39cc.asciidoc rename to docs/examples/58fb1f324597070bee2cf854c162d388.asciidoc index 64d5b6209..009ed67d4 100644 --- a/docs/examples/f9bad6fd369764185e1cb09b89ee39cc.asciidoc +++ b/docs/examples/58fb1f324597070bee2cf854c162d388.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/text.asciidoc:237 +// mapping/types/text.asciidoc:181 [source, python] ---- @@ -18,7 +18,12 @@ resp = client.indices.create( "properties": { "text": { "type": "text", - "store": True + "fields": { + "kwd": { + "type": "keyword", + "null_value": "NA" + } + } } } }, @@ -30,6 +35,7 @@ resp1 = client.index( id="1", document={ "text": [ + None, "the quick brown fox", "the quick brown fox", "jumped over the lazy dog" diff --git a/docs/examples/59aa5216630f80c5dc298fc5bba4a819.asciidoc b/docs/examples/59aa5216630f80c5dc298fc5bba4a819.asciidoc deleted file mode 100644 index 216f6cbbd..000000000 --- a/docs/examples/59aa5216630f80c5dc298fc5bba4a819.asciidoc +++ /dev/null @@ -1,10 +0,0 @@ -// This file is autogenerated, DO NOT EDIT -// migration/migrate_9_0.asciidoc:415 - -[source, python] ----- -resp = client.indices.get_settings( - index=".reindexed-v9-ml-anomalies-custom-example", -) -print(resp) ----- diff --git a/docs/examples/5a4a6cf06b3a10f55012639166630290.asciidoc b/docs/examples/5a4a6cf06b3a10f55012639166630290.asciidoc new file mode 100644 index 000000000..6dd92adf7 --- /dev/null +++ b/docs/examples/5a4a6cf06b3a10f55012639166630290.asciidoc @@ -0,0 +1,31 @@ +// This file is autogenerated, DO NOT EDIT +// search/search-your-data/retrievers-examples.asciidoc:1824 + +[source, python] +---- +resp = client.search( + index="retrievers_example", + retriever={ + "pinned": { + "docs": [ + { + "_id": "1" + }, + { + "_id": "2" + } + ], + "retriever": { + "standard": { + "query": { + "match": { + "text": "elasticsearch" + } + } + } + } + } + }, +) +print(resp) +---- diff --git a/docs/examples/5b2a13366bd4e1ab4b25d04d360570dc.asciidoc b/docs/examples/5b2a13366bd4e1ab4b25d04d360570dc.asciidoc index 57c176743..e34426f1f 100644 --- a/docs/examples/5b2a13366bd4e1ab4b25d04d360570dc.asciidoc +++ b/docs/examples/5b2a13366bd4e1ab4b25d04d360570dc.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// indices/put-component-template.asciidoc:262 +// indices/put-component-template.asciidoc:260 [source, python] ---- diff --git a/docs/examples/5bba213a7f543190139d1a69ab2ed076.asciidoc b/docs/examples/5bba213a7f543190139d1a69ab2ed076.asciidoc index c9c33f40d..fac7ee153 100644 --- a/docs/examples/5bba213a7f543190139d1a69ab2ed076.asciidoc +++ b/docs/examples/5bba213a7f543190139d1a69ab2ed076.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// esql/esql-across-clusters.asciidoc:302 +// esql/esql-across-clusters.asciidoc:304 [source, python] ---- diff --git a/docs/examples/5cf12cc4f98d98dc79bead7e6556679c.asciidoc b/docs/examples/5cf12cc4f98d98dc79bead7e6556679c.asciidoc index b920f8437..edcb847fb 100644 --- a/docs/examples/5cf12cc4f98d98dc79bead7e6556679c.asciidoc +++ b/docs/examples/5cf12cc4f98d98dc79bead7e6556679c.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/fields/synthetic-source.asciidoc:10 +// mapping/fields/synthetic-source.asciidoc:12 [source, python] ---- diff --git a/docs/examples/5daf8ede198be9b118da5bee9896cb00.asciidoc b/docs/examples/5daf8ede198be9b118da5bee9896cb00.asciidoc index ddad0eab9..84560ddf9 100644 --- a/docs/examples/5daf8ede198be9b118da5bee9896cb00.asciidoc +++ b/docs/examples/5daf8ede198be9b118da5bee9896cb00.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/flattened.asciidoc:333 +// mapping/types/flattened.asciidoc:326 [source, python] ---- diff --git a/docs/examples/5e21dbac92f34d236a8f0cc0d3a39cdd.asciidoc b/docs/examples/5e21dbac92f34d236a8f0cc0d3a39cdd.asciidoc index 559f8a514..2a6435589 100644 --- a/docs/examples/5e21dbac92f34d236a8f0cc0d3a39cdd.asciidoc +++ b/docs/examples/5e21dbac92f34d236a8f0cc0d3a39cdd.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// security/authentication/jwt-realm.asciidoc:411 +// security/authentication/jwt-realm.asciidoc:421 [source, python] ---- diff --git a/docs/examples/5f1ed9cfdc149763b444acfbe10b0e16.asciidoc b/docs/examples/5f1ed9cfdc149763b444acfbe10b0e16.asciidoc index 118ad732e..ff7adf42f 100644 --- a/docs/examples/5f1ed9cfdc149763b444acfbe10b0e16.asciidoc +++ b/docs/examples/5f1ed9cfdc149763b444acfbe10b0e16.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// indices/put-mapping.asciidoc:271 +// indices/put-mapping.asciidoc:277 [source, python] ---- diff --git a/docs/examples/60d3f9a99cc91b43aaa7524a9a74dba0.asciidoc b/docs/examples/60d3f9a99cc91b43aaa7524a9a74dba0.asciidoc index 6fe2dc982..c7e0d37a9 100644 --- a/docs/examples/60d3f9a99cc91b43aaa7524a9a74dba0.asciidoc +++ b/docs/examples/60d3f9a99cc91b43aaa7524a9a74dba0.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// troubleshooting/common-issues/rejected-requests.asciidoc:50 +// troubleshooting/common-issues/rejected-requests.asciidoc:47 [source, python] ---- diff --git a/docs/examples/0709a38613d2de90d418ce12b36af30e.asciidoc b/docs/examples/611c1e05f4ebb48a1a8c8488238ce34d.asciidoc similarity index 74% rename from docs/examples/0709a38613d2de90d418ce12b36af30e.asciidoc rename to docs/examples/611c1e05f4ebb48a1a8c8488238ce34d.asciidoc index 340a95e60..33aa13fb3 100644 --- a/docs/examples/0709a38613d2de90d418ce12b36af30e.asciidoc +++ b/docs/examples/611c1e05f4ebb48a1a8c8488238ce34d.asciidoc @@ -3,6 +3,8 @@ [source, python] ---- -resp = client.cluster.reroute() +resp = client.cluster.reroute( + metric="none", +) print(resp) ---- diff --git a/docs/examples/6220087321e6d288024a70c6b09bd720.asciidoc b/docs/examples/6220087321e6d288024a70c6b09bd720.asciidoc index b7f8b8531..0607558a9 100644 --- a/docs/examples/6220087321e6d288024a70c6b09bd720.asciidoc +++ b/docs/examples/6220087321e6d288024a70c6b09bd720.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/percolate-query.asciidoc:358 +// query-dsl/percolate-query.asciidoc:356 [source, python] ---- diff --git a/docs/examples/62d3c8fccb11471bdc12555c1a7777f2.asciidoc b/docs/examples/62d3c8fccb11471bdc12555c1a7777f2.asciidoc index 3e5631809..1a01c504b 100644 --- a/docs/examples/62d3c8fccb11471bdc12555c1a7777f2.asciidoc +++ b/docs/examples/62d3c8fccb11471bdc12555c1a7777f2.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/fields/synthetic-source.asciidoc:93 +// mapping/fields/synthetic-source.asciidoc:97 [source, python] ---- diff --git a/docs/examples/631a8d49bfbe622fd07c6868489b9fb0.asciidoc b/docs/examples/631a8d49bfbe622fd07c6868489b9fb0.asciidoc new file mode 100644 index 000000000..819a5e14b --- /dev/null +++ b/docs/examples/631a8d49bfbe622fd07c6868489b9fb0.asciidoc @@ -0,0 +1,19 @@ +// This file is autogenerated, DO NOT EDIT +// search/retriever.asciidoc:1163 + +[source, python] +---- +resp = client.search( + index="books", + retriever={ + "rrf": { + "query": "machine learning", + "fields": [ + "title*", + "*_text" + ] + } + }, +) +print(resp) +---- diff --git a/docs/examples/63a53fcb0717ae9033a679cbfc932851.asciidoc b/docs/examples/63a53fcb0717ae9033a679cbfc932851.asciidoc index 746b8a42d..404568af6 100644 --- a/docs/examples/63a53fcb0717ae9033a679cbfc932851.asciidoc +++ b/docs/examples/63a53fcb0717ae9033a679cbfc932851.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// inference/service-alibabacloud-ai-search.asciidoc:174 +// inference/service-alibabacloud-ai-search.asciidoc:177 [source, python] ---- diff --git a/docs/examples/63ecdab34940af053acc409164914c32.asciidoc b/docs/examples/63ecdab34940af053acc409164914c32.asciidoc index 0c5d51106..32050c264 100644 --- a/docs/examples/63ecdab34940af053acc409164914c32.asciidoc +++ b/docs/examples/63ecdab34940af053acc409164914c32.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/sparse-vector.asciidoc:63 +// mapping/types/sparse-vector.asciidoc:126 [source, python] ---- diff --git a/docs/examples/642161d70dacf7d153767d37d3726838.asciidoc b/docs/examples/642161d70dacf7d153767d37d3726838.asciidoc index a6acd8d13..a7c877f17 100644 --- a/docs/examples/642161d70dacf7d153767d37d3726838.asciidoc +++ b/docs/examples/642161d70dacf7d153767d37d3726838.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// rollup/apis/rollup-index-caps.asciidoc:171 +// rollup/apis/rollup-index-caps.asciidoc:169 [source, python] ---- diff --git a/docs/examples/67154a4837cf996a9a9c3e61d6e9d1b3.asciidoc b/docs/examples/67154a4837cf996a9a9c3e61d6e9d1b3.asciidoc new file mode 100644 index 000000000..647b80bda --- /dev/null +++ b/docs/examples/67154a4837cf996a9a9c3e61d6e9d1b3.asciidoc @@ -0,0 +1,15 @@ +// This file is autogenerated, DO NOT EDIT +// migration/migrate_8_0/migrate_to_java_time.asciidoc:289 + +[source, python] +---- +resp = client.reindex( + source={ + "index": "my-index-000001" + }, + dest={ + "index": "my-index-000002" + }, +) +print(resp) +---- diff --git a/docs/examples/67b71a95b6fe6c83faae51ea038a1bf1.asciidoc b/docs/examples/67b71a95b6fe6c83faae51ea038a1bf1.asciidoc index f0c9152d8..b8abf767b 100644 --- a/docs/examples/67b71a95b6fe6c83faae51ea038a1bf1.asciidoc +++ b/docs/examples/67b71a95b6fe6c83faae51ea038a1bf1.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// esql/esql-rest.asciidoc:407 +// esql/esql-rest.asciidoc:414 [source, python] ---- diff --git a/docs/examples/69541f0bb81ab3797926bb2a00607cda.asciidoc b/docs/examples/69541f0bb81ab3797926bb2a00607cda.asciidoc index bd34b9be6..7b22b68cb 100644 --- a/docs/examples/69541f0bb81ab3797926bb2a00607cda.asciidoc +++ b/docs/examples/69541f0bb81ab3797926bb2a00607cda.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/retriever.asciidoc:748 +// search/retriever.asciidoc:781 [source, python] ---- diff --git a/docs/examples/6b0288acb739c4667d41339e5100c327.asciidoc b/docs/examples/6b0288acb739c4667d41339e5100c327.asciidoc index 421376449..a58107558 100644 --- a/docs/examples/6b0288acb739c4667d41339e5100c327.asciidoc +++ b/docs/examples/6b0288acb739c4667d41339e5100c327.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/match-query.asciidoc:234 +// query-dsl/match-query.asciidoc:231 [source, python] ---- diff --git a/docs/examples/6b67c6121efb86ee100d40c2646f77b5.asciidoc b/docs/examples/6b67c6121efb86ee100d40c2646f77b5.asciidoc index bc427ddf0..72e615b09 100644 --- a/docs/examples/6b67c6121efb86ee100d40c2646f77b5.asciidoc +++ b/docs/examples/6b67c6121efb86ee100d40c2646f77b5.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// index-modules/slowlog.asciidoc:219 +// index-modules/slowlog.asciidoc:220 [source, python] ---- diff --git a/docs/examples/6ba332596f5eb29660c90ab2d480e7dc.asciidoc b/docs/examples/6ba332596f5eb29660c90ab2d480e7dc.asciidoc index fbd0709e9..d0227f1b3 100644 --- a/docs/examples/6ba332596f5eb29660c90ab2d480e7dc.asciidoc +++ b/docs/examples/6ba332596f5eb29660c90ab2d480e7dc.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// indices/put-index-template-v1.asciidoc:189 +// indices/put-index-template-v1.asciidoc:188 [source, python] ---- diff --git a/docs/examples/6baf72c04d48cb04c2f8be609ff3b3b5.asciidoc b/docs/examples/6baf72c04d48cb04c2f8be609ff3b3b5.asciidoc index cd4a70809..f0a7c3e14 100644 --- a/docs/examples/6baf72c04d48cb04c2f8be609ff3b3b5.asciidoc +++ b/docs/examples/6baf72c04d48cb04c2f8be609ff3b3b5.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/semantic-text.asciidoc:132 +// mapping/types/semantic-text.asciidoc:209 [source, python] ---- diff --git a/docs/examples/6dcd3916679f6aa64f79524c75991ebd.asciidoc b/docs/examples/6dcd3916679f6aa64f79524c75991ebd.asciidoc index 3b72c1464..82cb32103 100644 --- a/docs/examples/6dcd3916679f6aa64f79524c75991ebd.asciidoc +++ b/docs/examples/6dcd3916679f6aa64f79524c75991ebd.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// esql/esql-rest.asciidoc:248 +// esql/esql-rest.asciidoc:255 [source, python] ---- diff --git a/docs/examples/6e498b9dc753b94abf2618c407fa5cd8.asciidoc b/docs/examples/6e498b9dc753b94abf2618c407fa5cd8.asciidoc deleted file mode 100644 index 265795311..000000000 --- a/docs/examples/6e498b9dc753b94abf2618c407fa5cd8.asciidoc +++ /dev/null @@ -1,16 +0,0 @@ -// This file is autogenerated, DO NOT EDIT -// migration/migrate_9_0.asciidoc:453 - -[source, python] ----- -resp = client.reindex( - wait_for_completion=False, - source={ - "index": ".ml-anomalies-custom-example" - }, - dest={ - "index": ".reindexed-v9-ml-anomalies-custom-example" - }, -) -print(resp) ----- diff --git a/docs/examples/6e6b78e6b689a5d6aa637271b6d084e2.asciidoc b/docs/examples/6e6b78e6b689a5d6aa637271b6d084e2.asciidoc index 14522e393..1b3b2fd52 100644 --- a/docs/examples/6e6b78e6b689a5d6aa637271b6d084e2.asciidoc +++ b/docs/examples/6e6b78e6b689a5d6aa637271b6d084e2.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/retriever.asciidoc:363 +// search/retriever.asciidoc:400 [source, python] ---- diff --git a/docs/examples/7039aa15511e9b876c2e00d067751e2e.asciidoc b/docs/examples/7039aa15511e9b876c2e00d067751e2e.asciidoc new file mode 100644 index 000000000..5f5241adb --- /dev/null +++ b/docs/examples/7039aa15511e9b876c2e00d067751e2e.asciidoc @@ -0,0 +1,22 @@ +// This file is autogenerated, DO NOT EDIT +// search/search-your-data/retrievers-examples.asciidoc:633 + +[source, python] +---- +resp = client.search( + index="retrievers_example", + retriever={ + "linear": { + "query": "artificial intelligence", + "fields": [ + "text", + "text_semantic", + "topic^2" + ], + "normalizer": "minmax" + } + }, + source=False, +) +print(resp) +---- diff --git a/docs/examples/2fa7ded8515b32f26c54394ea598f573.asciidoc b/docs/examples/708fe682185b46704fce563465933ded.asciidoc similarity index 85% rename from docs/examples/2fa7ded8515b32f26c54394ea598f573.asciidoc rename to docs/examples/708fe682185b46704fce563465933ded.asciidoc index bc1835a56..4e8ca244a 100644 --- a/docs/examples/2fa7ded8515b32f26c54394ea598f573.asciidoc +++ b/docs/examples/708fe682185b46704fce563465933ded.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// indices/index-templates.asciidoc:123 +// indices/index-templates.asciidoc:122 [source, python] ---- @@ -22,8 +22,7 @@ resp = client.indices.put_index_template( "type": "keyword" }, "created_at": { - "type": "date", - "format": "EEE MMM dd HH:mm:ss Z yyyy" + "type": "date" } } }, diff --git a/docs/examples/71998bb300ac2a58419b0772cdc1c586.asciidoc b/docs/examples/71998bb300ac2a58419b0772cdc1c586.asciidoc index 0b9cdbc9f..14b9ffaf2 100644 --- a/docs/examples/71998bb300ac2a58419b0772cdc1c586.asciidoc +++ b/docs/examples/71998bb300ac2a58419b0772cdc1c586.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/version.asciidoc:85 +// mapping/types/version.asciidoc:78 [source, python] ---- diff --git a/docs/examples/e784fc00894635470adfd78a0c46b427.asciidoc b/docs/examples/725c957303ead2d509f148e0428d7250.asciidoc similarity index 85% rename from docs/examples/e784fc00894635470adfd78a0c46b427.asciidoc rename to docs/examples/725c957303ead2d509f148e0428d7250.asciidoc index a5c0ed26a..fc04bb88d 100644 --- a/docs/examples/e784fc00894635470adfd78a0c46b427.asciidoc +++ b/docs/examples/725c957303ead2d509f148e0428d7250.asciidoc @@ -18,8 +18,7 @@ resp = client.cluster.put_component_template( "type": "keyword" }, "created_at": { - "type": "date", - "format": "EEE MMM dd HH:mm:ss Z yyyy" + "type": "date" } } } diff --git a/docs/examples/72abd8a82b4a8fc2fc06f54150d23b76.asciidoc b/docs/examples/72abd8a82b4a8fc2fc06f54150d23b76.asciidoc new file mode 100644 index 000000000..121ba5c64 --- /dev/null +++ b/docs/examples/72abd8a82b4a8fc2fc06f54150d23b76.asciidoc @@ -0,0 +1,54 @@ +// This file is autogenerated, DO NOT EDIT +// query-dsl/bool-query.asciidoc:80 + +[source, python] +---- +resp = client.search( + query={ + "bool": { + "must": [ + { + "bool": { + "should": [ + { + "match": { + "user.id": "kimchy" + } + }, + { + "match": { + "user.id": "banon" + } + } + ] + } + }, + { + "match": { + "tags": "production" + } + } + ], + "should": [ + { + "bool": { + "must": [ + { + "match": { + "status": "active" + } + }, + { + "match": { + "title": "quick brown fox" + } + } + ] + } + } + ] + } + }, +) +print(resp) +---- diff --git a/docs/examples/73d1a6c5ef90b7e35d43a0bfdc1e158d.asciidoc b/docs/examples/73d1a6c5ef90b7e35d43a0bfdc1e158d.asciidoc index db79aaa94..41b4fc221 100644 --- a/docs/examples/73d1a6c5ef90b7e35d43a0bfdc1e158d.asciidoc +++ b/docs/examples/73d1a6c5ef90b7e35d43a0bfdc1e158d.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// rollup/apis/rollup-index-caps.asciidoc:95 +// rollup/apis/rollup-index-caps.asciidoc:94 [source, python] ---- diff --git a/docs/examples/744aeb2af40f519e430e21e004e3c3b7.asciidoc b/docs/examples/744aeb2af40f519e430e21e004e3c3b7.asciidoc index 952a42b78..994404bc0 100644 --- a/docs/examples/744aeb2af40f519e430e21e004e3c3b7.asciidoc +++ b/docs/examples/744aeb2af40f519e430e21e004e3c3b7.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// esql/multivalued-fields.asciidoc:99 +// esql/multivalued-fields.asciidoc:103 [source, python] ---- diff --git a/docs/examples/746e0a1cb5984f2672963b363505c7b3.asciidoc b/docs/examples/746e0a1cb5984f2672963b363505c7b3.asciidoc index 5c56c2f3f..90f930456 100644 --- a/docs/examples/746e0a1cb5984f2672963b363505c7b3.asciidoc +++ b/docs/examples/746e0a1cb5984f2672963b363505c7b3.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/date.asciidoc:188 +// mapping/types/date.asciidoc:196 [source, python] ---- diff --git a/docs/examples/75e6d66e94e61bd8a555beaaee255c36.asciidoc b/docs/examples/75e6d66e94e61bd8a555beaaee255c36.asciidoc index bfb1cadf1..f1e5b8201 100644 --- a/docs/examples/75e6d66e94e61bd8a555beaaee255c36.asciidoc +++ b/docs/examples/75e6d66e94e61bd8a555beaaee255c36.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// rollup/apis/rollup-search.asciidoc:178 +// rollup/apis/rollup-search.asciidoc:176 [source, python] ---- diff --git a/docs/examples/76e02434835630cb830724beb92df354.asciidoc b/docs/examples/76e02434835630cb830724beb92df354.asciidoc index cc7602fe4..9ab5b0f00 100644 --- a/docs/examples/76e02434835630cb830724beb92df354.asciidoc +++ b/docs/examples/76e02434835630cb830724beb92df354.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/search-your-data/retrievers-examples.asciidoc:1433 +// search/search-your-data/retrievers-examples.asciidoc:1725 [source, python] ---- diff --git a/docs/examples/7709a48020a6cefbbe547fb944541cdb.asciidoc b/docs/examples/7709a48020a6cefbbe547fb944541cdb.asciidoc index 00ea6fa58..9476542db 100644 --- a/docs/examples/7709a48020a6cefbbe547fb944541cdb.asciidoc +++ b/docs/examples/7709a48020a6cefbbe547fb944541cdb.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/dense-vector.asciidoc:421 +// mapping/types/dense-vector.asciidoc:414 [source, python] ---- diff --git a/docs/examples/7752b677825523bfb0c38ad9325a6d47.asciidoc b/docs/examples/7752b677825523bfb0c38ad9325a6d47.asciidoc index 1fb038498..e35bd7225 100644 --- a/docs/examples/7752b677825523bfb0c38ad9325a6d47.asciidoc +++ b/docs/examples/7752b677825523bfb0c38ad9325a6d47.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// connector/apis/delete-connector-api.asciidoc:79 +// connector/apis/delete-connector-api.asciidoc:76 [source, python] ---- diff --git a/docs/examples/78043831fd32004a82930c8ac8a1d809.asciidoc b/docs/examples/78043831fd32004a82930c8ac8a1d809.asciidoc index 5a0d6d76f..d86f2f207 100644 --- a/docs/examples/78043831fd32004a82930c8ac8a1d809.asciidoc +++ b/docs/examples/78043831fd32004a82930c8ac8a1d809.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/search-your-data/retrievers-examples.asciidoc:1378 +// search/search-your-data/retrievers-examples.asciidoc:1670 [source, python] ---- diff --git a/docs/examples/7846974b47a3eab1832a475663d23ad9.asciidoc b/docs/examples/7846974b47a3eab1832a475663d23ad9.asciidoc index 0fc04cfc2..d39caa3d6 100644 --- a/docs/examples/7846974b47a3eab1832a475663d23ad9.asciidoc +++ b/docs/examples/7846974b47a3eab1832a475663d23ad9.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/search-your-data/paginate-search-results.asciidoc:292 +// search/search-your-data/paginate-search-results.asciidoc:307 [source, python] ---- diff --git a/docs/examples/7885ca9d7c61050095288eef6bc6cca9.asciidoc b/docs/examples/7885ca9d7c61050095288eef6bc6cca9.asciidoc index 2367c5ae1..90021946c 100644 --- a/docs/examples/7885ca9d7c61050095288eef6bc6cca9.asciidoc +++ b/docs/examples/7885ca9d7c61050095288eef6bc6cca9.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// security/authentication/jwt-realm.asciidoc:676 +// security/authentication/jwt-realm.asciidoc:686 [source, python] ---- diff --git a/docs/examples/79d206a528be704050a437adce2496dd.asciidoc b/docs/examples/79d206a528be704050a437adce2496dd.asciidoc index 0a1f7c9ca..88786edac 100644 --- a/docs/examples/79d206a528be704050a437adce2496dd.asciidoc +++ b/docs/examples/79d206a528be704050a437adce2496dd.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/retriever.asciidoc:629 +// search/retriever.asciidoc:662 [source, python] ---- diff --git a/docs/examples/7a32f44a1511ecb0d3f0b0ff2aca5c44.asciidoc b/docs/examples/7a32f44a1511ecb0d3f0b0ff2aca5c44.asciidoc new file mode 100644 index 000000000..984cd88e4 --- /dev/null +++ b/docs/examples/7a32f44a1511ecb0d3f0b0ff2aca5c44.asciidoc @@ -0,0 +1,23 @@ +// This file is autogenerated, DO NOT EDIT +// migration/migrate_8_0/migrate_to_java_time.asciidoc:305 + +[source, python] +---- +resp = client.indices.update_aliases( + actions=[ + { + "remove": { + "index": "my-index-000001", + "alias": "my-index" + } + }, + { + "add": { + "index": "my-index-000002", + "alias": "my-index" + } + } + ], +) +print(resp) +---- diff --git a/docs/examples/7bdc283b96c7a965fae23013647b8578.asciidoc b/docs/examples/7bdc283b96c7a965fae23013647b8578.asciidoc index 2bc21bbf0..c19b46886 100644 --- a/docs/examples/7bdc283b96c7a965fae23013647b8578.asciidoc +++ b/docs/examples/7bdc283b96c7a965fae23013647b8578.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/semantic-text.asciidoc:220 +// mapping/types/semantic-text.asciidoc:341 [source, python] ---- diff --git a/docs/examples/7bf552a1c18120f15ea0311fc601dddd.asciidoc b/docs/examples/7bf552a1c18120f15ea0311fc601dddd.asciidoc new file mode 100644 index 000000000..6e61b2998 --- /dev/null +++ b/docs/examples/7bf552a1c18120f15ea0311fc601dddd.asciidoc @@ -0,0 +1,23 @@ +// This file is autogenerated, DO NOT EDIT +// data-streams/failure-store-recipes.asciidoc:601 + +[source, python] +---- +resp = client.ingest.put_pipeline( + id="my-datastream-remediation-pipeline", + processors=[ + { + "script": { + "lang": "painless", + "source": "\n ctx._index = ctx.document.index; \n ctx._routing = ctx.document.routing;\n def s = ctx.document.source; \n ctx.remove(\"error\"); \n ctx.remove(\"document\"); \n for (e in s.entrySet()) { \n ctx[e.key] = e.value;\n }" + } + }, + { + "reroute": { + "destination": "my-datastream-ingest-example" + } + } + ], +) +print(resp) +---- diff --git a/docs/examples/7cd23457e220c8b64c5b0041d2acc27a.asciidoc b/docs/examples/7cd23457e220c8b64c5b0041d2acc27a.asciidoc index 261211313..4dac054a0 100644 --- a/docs/examples/7cd23457e220c8b64c5b0041d2acc27a.asciidoc +++ b/docs/examples/7cd23457e220c8b64c5b0041d2acc27a.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// setup/advanced-configuration.asciidoc:123 +// setup/advanced-configuration.asciidoc:122 [source, python] ---- diff --git a/docs/examples/7d3a74fe0ba3fe95d1c3275365ff9315.asciidoc b/docs/examples/7d3a74fe0ba3fe95d1c3275365ff9315.asciidoc index c812891e4..578034516 100644 --- a/docs/examples/7d3a74fe0ba3fe95d1c3275365ff9315.asciidoc +++ b/docs/examples/7d3a74fe0ba3fe95d1c3275365ff9315.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/flattened.asciidoc:374 +// mapping/types/flattened.asciidoc:367 [source, python] ---- diff --git a/docs/examples/7daff6b7e668ab8a762b8ab5dff7a167.asciidoc b/docs/examples/7daff6b7e668ab8a762b8ab5dff7a167.asciidoc index 75048641a..aebed399e 100644 --- a/docs/examples/7daff6b7e668ab8a762b8ab5dff7a167.asciidoc +++ b/docs/examples/7daff6b7e668ab8a762b8ab5dff7a167.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/sparse-vector-query.asciidoc:260 +// query-dsl/sparse-vector-query.asciidoc:268 [source, python] ---- diff --git a/docs/examples/7ea7ab20df76c47b391a582ae4bce803.asciidoc b/docs/examples/7ea7ab20df76c47b391a582ae4bce803.asciidoc new file mode 100644 index 000000000..b016a7d54 --- /dev/null +++ b/docs/examples/7ea7ab20df76c47b391a582ae4bce803.asciidoc @@ -0,0 +1,16 @@ +// This file is autogenerated, DO NOT EDIT +// search/search-your-data/retrievers-examples.asciidoc:462 + +[source, python] +---- +resp = client.search( + index="retrievers_example", + retriever={ + "rrf": { + "query": "artificial intelligence" + } + }, + source=False, +) +print(resp) +---- diff --git a/docs/examples/7f1fade93225f8cf6000b93334d76ce4.asciidoc b/docs/examples/7f1fade93225f8cf6000b93334d76ce4.asciidoc index a2b9f8e5c..3c22a69ea 100644 --- a/docs/examples/7f1fade93225f8cf6000b93334d76ce4.asciidoc +++ b/docs/examples/7f1fade93225f8cf6000b93334d76ce4.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// ingest/processors/ip-location.asciidoc:188 +// ingest/processors/ip-location.asciidoc:203 [source, python] ---- diff --git a/docs/examples/7f2d511cb64743c006225e5933a14bb4.asciidoc b/docs/examples/7f2d511cb64743c006225e5933a14bb4.asciidoc index 60a3269ff..efe78a8c9 100644 --- a/docs/examples/7f2d511cb64743c006225e5933a14bb4.asciidoc +++ b/docs/examples/7f2d511cb64743c006225e5933a14bb4.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// esql/esql-across-clusters.asciidoc:69 +// esql/esql-across-clusters.asciidoc:70 [source, python] ---- diff --git a/docs/examples/7f56755fb6c42f7e6203339a6d0cb6e6.asciidoc b/docs/examples/7f56755fb6c42f7e6203339a6d0cb6e6.asciidoc index 18e25a546..2abbd8530 100644 --- a/docs/examples/7f56755fb6c42f7e6203339a6d0cb6e6.asciidoc +++ b/docs/examples/7f56755fb6c42f7e6203339a6d0cb6e6.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/match-query.asciidoc:283 +// query-dsl/match-query.asciidoc:280 [source, python] ---- diff --git a/docs/examples/7fde3ff91c4a2e7080444af37d5cd287.asciidoc b/docs/examples/7fde3ff91c4a2e7080444af37d5cd287.asciidoc index 649738ffe..400e72733 100644 --- a/docs/examples/7fde3ff91c4a2e7080444af37d5cd287.asciidoc +++ b/docs/examples/7fde3ff91c4a2e7080444af37d5cd287.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// esql/esql-rest.asciidoc:289 +// esql/esql-rest.asciidoc:296 [source, python] ---- diff --git a/docs/examples/80d2ccb7e2056d66bcf95096ae61af4b.asciidoc b/docs/examples/80d2ccb7e2056d66bcf95096ae61af4b.asciidoc new file mode 100644 index 000000000..294d9dafe --- /dev/null +++ b/docs/examples/80d2ccb7e2056d66bcf95096ae61af4b.asciidoc @@ -0,0 +1,15 @@ +// This file is autogenerated, DO NOT EDIT +// quickstart/esql-search-tutorial.asciidoc:326 + +[source, python] +---- +resp = client.indices.put_mapping( + index="cooking_blog", + properties={ + "semantic_description": { + "type": "semantic_text" + } + }, +) +print(resp) +---- diff --git a/docs/examples/8203c7e97fb51c9a7e20cbb9f95db9af.asciidoc b/docs/examples/8203c7e97fb51c9a7e20cbb9f95db9af.asciidoc new file mode 100644 index 000000000..b3a74538b --- /dev/null +++ b/docs/examples/8203c7e97fb51c9a7e20cbb9f95db9af.asciidoc @@ -0,0 +1,10 @@ +// This file is autogenerated, DO NOT EDIT +// data-streams/failure-store-recipes.asciidoc:287 + +[source, python] +---- +resp = client.search( + index="my-datastream-ingest::failures", +) +print(resp) +---- diff --git a/docs/examples/820f689eaaef15fc07abd1073fa880f8.asciidoc b/docs/examples/820f689eaaef15fc07abd1073fa880f8.asciidoc index 212392e24..e67211792 100644 --- a/docs/examples/820f689eaaef15fc07abd1073fa880f8.asciidoc +++ b/docs/examples/820f689eaaef15fc07abd1073fa880f8.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/search-your-data/paginate-search-results.asciidoc:11 +// search/search-your-data/paginate-search-results.asciidoc:24 [source, python] ---- diff --git a/docs/examples/828f0045747fde4888a947bb99e190e3.asciidoc b/docs/examples/828f0045747fde4888a947bb99e190e3.asciidoc index b0c0af2a7..53e4cc801 100644 --- a/docs/examples/828f0045747fde4888a947bb99e190e3.asciidoc +++ b/docs/examples/828f0045747fde4888a947bb99e190e3.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/retriever.asciidoc:837 +// search/retriever.asciidoc:870 [source, python] ---- diff --git a/docs/examples/853fc710cea79fb4e1a85fb6d149f9c5.asciidoc b/docs/examples/853fc710cea79fb4e1a85fb6d149f9c5.asciidoc index 12888ed06..b0cf556cd 100644 --- a/docs/examples/853fc710cea79fb4e1a85fb6d149f9c5.asciidoc +++ b/docs/examples/853fc710cea79fb4e1a85fb6d149f9c5.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/retriever.asciidoc:876 +// search/retriever.asciidoc:909 [source, python] ---- diff --git a/docs/examples/85479e02af00681210e17e3d0ff51e21.asciidoc b/docs/examples/85479e02af00681210e17e3d0ff51e21.asciidoc index 6b13cce81..4921850c3 100644 --- a/docs/examples/85479e02af00681210e17e3d0ff51e21.asciidoc +++ b/docs/examples/85479e02af00681210e17e3d0ff51e21.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/date.asciidoc:93 +// mapping/types/date.asciidoc:101 [source, python] ---- diff --git a/docs/examples/858fde15fb0a0340873b123043f8c3b4.asciidoc b/docs/examples/858fde15fb0a0340873b123043f8c3b4.asciidoc index 7e0f1de21..acb5c2d72 100644 --- a/docs/examples/858fde15fb0a0340873b123043f8c3b4.asciidoc +++ b/docs/examples/858fde15fb0a0340873b123043f8c3b4.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/histogram.asciidoc:118 +// mapping/types/histogram.asciidoc:111 [source, python] ---- diff --git a/docs/examples/85f6667f148d16d075493fddf07e2932.asciidoc b/docs/examples/85f6667f148d16d075493fddf07e2932.asciidoc index b17580c51..5893e6504 100644 --- a/docs/examples/85f6667f148d16d075493fddf07e2932.asciidoc +++ b/docs/examples/85f6667f148d16d075493fddf07e2932.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// data-streams/change-mappings-and-settings.asciidoc:616 +// data-streams/change-mappings-and-settings.asciidoc:620 [source, python] ---- diff --git a/docs/examples/85f9fc6f98e8573efed9b034e853d5ae.asciidoc b/docs/examples/85f9fc6f98e8573efed9b034e853d5ae.asciidoc index 107825f54..67aaf4ac1 100644 --- a/docs/examples/85f9fc6f98e8573efed9b034e853d5ae.asciidoc +++ b/docs/examples/85f9fc6f98e8573efed9b034e853d5ae.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// inference/service-elasticsearch.asciidoc:289 +// inference/service-elasticsearch.asciidoc:284 [source, python] ---- diff --git a/docs/examples/8619bd17bbfe33490b1f277007f654db.asciidoc b/docs/examples/8619bd17bbfe33490b1f277007f654db.asciidoc index d48245664..785b6ac6a 100644 --- a/docs/examples/8619bd17bbfe33490b1f277007f654db.asciidoc +++ b/docs/examples/8619bd17bbfe33490b1f277007f654db.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// inference/service-cohere.asciidoc:214 +// inference/service-cohere.asciidoc:216 [source, python] ---- diff --git a/docs/examples/8621c05cc7cf3880bde751f6670a0c3a.asciidoc b/docs/examples/8621c05cc7cf3880bde751f6670a0c3a.asciidoc deleted file mode 100644 index d4812b0ab..000000000 --- a/docs/examples/8621c05cc7cf3880bde751f6670a0c3a.asciidoc +++ /dev/null @@ -1,15 +0,0 @@ -// This file is autogenerated, DO NOT EDIT -// migration/migrate_9_0.asciidoc:439 - -[source, python] ----- -resp = client.indices.put_settings( - index=".reindexed-v9-ml-anomalies-custom-example", - settings={ - "index": { - "number_of_replicas": 0 - } - }, -) -print(resp) ----- diff --git a/docs/examples/863253bf0ab7d227ff72a0a384f4de8c.asciidoc b/docs/examples/863253bf0ab7d227ff72a0a384f4de8c.asciidoc index 685c48a97..31bbd9a29 100644 --- a/docs/examples/863253bf0ab7d227ff72a0a384f4de8c.asciidoc +++ b/docs/examples/863253bf0ab7d227ff72a0a384f4de8c.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// data-streams/change-mappings-and-settings.asciidoc:673 +// data-streams/change-mappings-and-settings.asciidoc:677 [source, python] ---- diff --git a/docs/examples/8634c9993485d622fb12d24f4f242264.asciidoc b/docs/examples/8634c9993485d622fb12d24f4f242264.asciidoc index d5a35b8a4..b0dcd030b 100644 --- a/docs/examples/8634c9993485d622fb12d24f4f242264.asciidoc +++ b/docs/examples/8634c9993485d622fb12d24f4f242264.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// data-streams/downsampling-manual.asciidoc:433 +// data-streams/downsampling-manual.asciidoc:436 [source, python] ---- diff --git a/docs/examples/86f426ffa67416a50f2702f7131d35de.asciidoc b/docs/examples/86f426ffa67416a50f2702f7131d35de.asciidoc new file mode 100644 index 000000000..bc013b97c --- /dev/null +++ b/docs/examples/86f426ffa67416a50f2702f7131d35de.asciidoc @@ -0,0 +1,20 @@ +// This file is autogenerated, DO NOT EDIT +// mapping/types/semantic-text.asciidoc:235 + +[source, python] +---- +resp = client.search( + index="test-index", + query={ + "match_all": {} + }, + highlight={ + "fields": { + "my_semantic_field": { + "number_of_fragments": 5 + } + } + }, +) +print(resp) +---- diff --git a/docs/examples/87457bb3467484bec3e9df4e25942ba6.asciidoc b/docs/examples/87457bb3467484bec3e9df4e25942ba6.asciidoc index 02f191745..c000ba046 100644 --- a/docs/examples/87457bb3467484bec3e9df4e25942ba6.asciidoc +++ b/docs/examples/87457bb3467484bec3e9df4e25942ba6.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// esql/multivalued-fields.asciidoc:275 +// esql/multivalued-fields.asciidoc:287 [source, python] ---- diff --git a/docs/examples/8a0b5f759de3f27f0801c1176e616117.asciidoc b/docs/examples/8a0b5f759de3f27f0801c1176e616117.asciidoc index 4a66835cb..a8e4ef726 100644 --- a/docs/examples/8a0b5f759de3f27f0801c1176e616117.asciidoc +++ b/docs/examples/8a0b5f759de3f27f0801c1176e616117.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/search-your-data/semantic-search-semantic-text.asciidoc:36 +// search/search-your-data/semantic-search-semantic-text.asciidoc:34 [source, python] ---- diff --git a/docs/examples/8a1b6eae4893c5dd27b3d81fd8d70f5b.asciidoc b/docs/examples/8a1b6eae4893c5dd27b3d81fd8d70f5b.asciidoc index c46aba59b..8a6c13fbf 100644 --- a/docs/examples/8a1b6eae4893c5dd27b3d81fd8d70f5b.asciidoc +++ b/docs/examples/8a1b6eae4893c5dd27b3d81fd8d70f5b.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// migration/migrate_9_0.asciidoc:467 +// search/search-your-data/semantic-search-elser.asciidoc:157 [source, python] ---- diff --git a/docs/examples/8b301122cbf42be6eafeda714a36559e.asciidoc b/docs/examples/8b301122cbf42be6eafeda714a36559e.asciidoc index f1161a356..18e69f495 100644 --- a/docs/examples/8b301122cbf42be6eafeda714a36559e.asciidoc +++ b/docs/examples/8b301122cbf42be6eafeda714a36559e.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// rest-api/logstash/put-pipeline.asciidoc:80 +// rest-api/logstash/put-pipeline.asciidoc:82 [source, python] ---- diff --git a/docs/examples/8b8b6aac2111b2d8b93758ac737e6543.asciidoc b/docs/examples/8b8b6aac2111b2d8b93758ac737e6543.asciidoc index 31bfc8362..e42cb496d 100644 --- a/docs/examples/8b8b6aac2111b2d8b93758ac737e6543.asciidoc +++ b/docs/examples/8b8b6aac2111b2d8b93758ac737e6543.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/fields/synthetic-source.asciidoc:224 +// mapping/fields/synthetic-source.asciidoc:228 [source, python] ---- diff --git a/docs/examples/8c47c80139f40f25db44f5781ca2dfbe.asciidoc b/docs/examples/8c47c80139f40f25db44f5781ca2dfbe.asciidoc deleted file mode 100644 index 8503017e7..000000000 --- a/docs/examples/8c47c80139f40f25db44f5781ca2dfbe.asciidoc +++ /dev/null @@ -1,10 +0,0 @@ -// This file is autogenerated, DO NOT EDIT -// migration/migrate_9_0.asciidoc:491 - -[source, python] ----- -resp = client.indices.get_alias( - index=".ml-anomalies-custom-example", -) -print(resp) ----- diff --git a/docs/examples/8cd00a3aba7c3c158277bc032aac2830.asciidoc b/docs/examples/8cd00a3aba7c3c158277bc032aac2830.asciidoc index 68ae5624a..f0cc6406b 100644 --- a/docs/examples/8cd00a3aba7c3c158277bc032aac2830.asciidoc +++ b/docs/examples/8cd00a3aba7c3c158277bc032aac2830.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// docs/bulk.asciidoc:620 +// docs/bulk.asciidoc:616 [source, python] ---- diff --git a/docs/examples/8d05862be1f9e7edaba162b1888b5677.asciidoc b/docs/examples/8d05862be1f9e7edaba162b1888b5677.asciidoc index 0433809f5..eaebb31e2 100644 --- a/docs/examples/8d05862be1f9e7edaba162b1888b5677.asciidoc +++ b/docs/examples/8d05862be1f9e7edaba162b1888b5677.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// quickstart/full-text-filtering-tutorial.asciidoc:50 +// quickstart/esql-search-tutorial.asciidoc:77 [source, python] ---- diff --git a/docs/examples/8d9b04f2a97f4229dec9e620126de049.asciidoc b/docs/examples/8d9b04f2a97f4229dec9e620126de049.asciidoc index fdcc89bdb..6fa55b386 100644 --- a/docs/examples/8d9b04f2a97f4229dec9e620126de049.asciidoc +++ b/docs/examples/8d9b04f2a97f4229dec9e620126de049.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// snapshot-restore/repository-s3.asciidoc:609 +// snapshot-restore/repository-s3.asciidoc:575 [source, python] ---- diff --git a/docs/examples/8de6fed6ba2b94ce6a12ce076be2b4d7.asciidoc b/docs/examples/8de6fed6ba2b94ce6a12ce076be2b4d7.asciidoc index 13ad215ea..32ab5cc14 100644 --- a/docs/examples/8de6fed6ba2b94ce6a12ce076be2b4d7.asciidoc +++ b/docs/examples/8de6fed6ba2b94ce6a12ce076be2b4d7.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// cat/segments.asciidoc:132 +// cat/segments.asciidoc:133 [source, python] ---- diff --git a/docs/examples/8ecefdcf8f153cf91588e9fdde8f3e6b.asciidoc b/docs/examples/8ecefdcf8f153cf91588e9fdde8f3e6b.asciidoc index 1597f63d7..d854839f2 100644 --- a/docs/examples/8ecefdcf8f153cf91588e9fdde8f3e6b.asciidoc +++ b/docs/examples/8ecefdcf8f153cf91588e9fdde8f3e6b.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/query-string-query.asciidoc:299 +// query-dsl/query-string-query.asciidoc:302 [source, python] ---- diff --git a/docs/examples/8ed31628081db2b6e9106d61d1e142be.asciidoc b/docs/examples/8ed31628081db2b6e9106d61d1e142be.asciidoc index 31c18d331..007c894a4 100644 --- a/docs/examples/8ed31628081db2b6e9106d61d1e142be.asciidoc +++ b/docs/examples/8ed31628081db2b6e9106d61d1e142be.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/simple-query-string-query.asciidoc:291 +// query-dsl/simple-query-string-query.asciidoc:294 [source, python] ---- diff --git a/docs/examples/e5f50b31f165462d883ecbff45f74985.asciidoc b/docs/examples/8f56ae0bf05093986e46a29fb0890a4f.asciidoc similarity index 85% rename from docs/examples/e5f50b31f165462d883ecbff45f74985.asciidoc rename to docs/examples/8f56ae0bf05093986e46a29fb0890a4f.asciidoc index 9d3eb5f2a..3767c3a15 100644 --- a/docs/examples/e5f50b31f165462d883ecbff45f74985.asciidoc +++ b/docs/examples/8f56ae0bf05093986e46a29fb0890a4f.asciidoc @@ -21,8 +21,7 @@ resp = client.indices.put_template( "type": "keyword" }, "created_at": { - "type": "date", - "format": "EEE MMM dd HH:mm:ss Z yyyy" + "type": "date" } } }, diff --git a/docs/examples/8f6f7ea5abf56152b4a5639ddf40848f.asciidoc b/docs/examples/8f6f7ea5abf56152b4a5639ddf40848f.asciidoc index 68d39126d..0e400e7cc 100644 --- a/docs/examples/8f6f7ea5abf56152b4a5639ddf40848f.asciidoc +++ b/docs/examples/8f6f7ea5abf56152b4a5639ddf40848f.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// security/authentication/jwt-realm.asciidoc:471 +// security/authentication/jwt-realm.asciidoc:481 [source, python] ---- diff --git a/docs/examples/8fec06a98d0151c1d717a01491d0b8f0.asciidoc b/docs/examples/8fec06a98d0151c1d717a01491d0b8f0.asciidoc index 46d05770e..b0e25f0ad 100644 --- a/docs/examples/8fec06a98d0151c1d717a01491d0b8f0.asciidoc +++ b/docs/examples/8fec06a98d0151c1d717a01491d0b8f0.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc:79 +// data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc:87 [source, python] ---- diff --git a/docs/examples/9169d19a80175ec94f80865d0f9bef4c.asciidoc b/docs/examples/9169d19a80175ec94f80865d0f9bef4c.asciidoc index 850788ba4..3599707d7 100644 --- a/docs/examples/9169d19a80175ec94f80865d0f9bef4c.asciidoc +++ b/docs/examples/9169d19a80175ec94f80865d0f9bef4c.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/retriever.asciidoc:314 +// search/retriever.asciidoc:351 [source, python] ---- diff --git a/docs/examples/91750571c195718f0ff246e058e4bc63.asciidoc b/docs/examples/91750571c195718f0ff246e058e4bc63.asciidoc index 4b45f680e..a5de7b36b 100644 --- a/docs/examples/91750571c195718f0ff246e058e4bc63.asciidoc +++ b/docs/examples/91750571c195718f0ff246e058e4bc63.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/search-your-data/paginate-search-results.asciidoc:73 +// search/search-your-data/paginate-search-results.asciidoc:88 [source, python] ---- diff --git a/docs/examples/927b20a221f975b75d1227b67d0eb7e2.asciidoc b/docs/examples/927b20a221f975b75d1227b67d0eb7e2.asciidoc index 5ba6e11be..051743b6c 100644 --- a/docs/examples/927b20a221f975b75d1227b67d0eb7e2.asciidoc +++ b/docs/examples/927b20a221f975b75d1227b67d0eb7e2.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// esql/esql-rest.asciidoc:268 +// esql/esql-rest.asciidoc:275 [source, python] ---- diff --git a/docs/examples/9382f022086c692ba05efb0acae65946.asciidoc b/docs/examples/9382f022086c692ba05efb0acae65946.asciidoc index 02ad2f12e..1803a9f9b 100644 --- a/docs/examples/9382f022086c692ba05efb0acae65946.asciidoc +++ b/docs/examples/9382f022086c692ba05efb0acae65946.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/fields/synthetic-source.asciidoc:63 +// mapping/fields/synthetic-source.asciidoc:67 [source, python] ---- diff --git a/docs/examples/944806221eb89f5af2298ccdf2902277.asciidoc b/docs/examples/944806221eb89f5af2298ccdf2902277.asciidoc index 896a4c10f..be677f846 100644 --- a/docs/examples/944806221eb89f5af2298ccdf2902277.asciidoc +++ b/docs/examples/944806221eb89f5af2298ccdf2902277.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// rollup/apis/rollup-caps.asciidoc:171 +// rollup/apis/rollup-caps.asciidoc:169 [source, python] ---- diff --git a/docs/examples/948418e0ef1b7e7cfee2f11be715d7d2.asciidoc b/docs/examples/948418e0ef1b7e7cfee2f11be715d7d2.asciidoc index 700fe6f3a..48447243b 100644 --- a/docs/examples/948418e0ef1b7e7cfee2f11be715d7d2.asciidoc +++ b/docs/examples/948418e0ef1b7e7cfee2f11be715d7d2.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/search-your-data/retrievers-examples.asciidoc:715 +// search/search-your-data/retrievers-examples.asciidoc:986 [source, python] ---- diff --git a/docs/examples/9501e6c8e95c21838653ea15b9b7ed5f.asciidoc b/docs/examples/9501e6c8e95c21838653ea15b9b7ed5f.asciidoc index 1971c9b0d..0613ecbc0 100644 --- a/docs/examples/9501e6c8e95c21838653ea15b9b7ed5f.asciidoc +++ b/docs/examples/9501e6c8e95c21838653ea15b9b7ed5f.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/percolate-query.asciidoc:791 +// query-dsl/percolate-query.asciidoc:789 [source, python] ---- diff --git a/docs/examples/95414139c7b1203e3c2d99a354415801.asciidoc b/docs/examples/95414139c7b1203e3c2d99a354415801.asciidoc index 773758b44..8cee7bc6a 100644 --- a/docs/examples/95414139c7b1203e3c2d99a354415801.asciidoc +++ b/docs/examples/95414139c7b1203e3c2d99a354415801.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// cat/recovery.asciidoc:89 +// cat/recovery.asciidoc:185 [source, python] ---- diff --git a/docs/examples/957d2e6ddbb9a9b16549c5e67b93b41b.asciidoc b/docs/examples/957d2e6ddbb9a9b16549c5e67b93b41b.asciidoc index 4b88d0aa8..8b3478cfe 100644 --- a/docs/examples/957d2e6ddbb9a9b16549c5e67b93b41b.asciidoc +++ b/docs/examples/957d2e6ddbb9a9b16549c5e67b93b41b.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/query-string-query.asciidoc:267 +// query-dsl/query-string-query.asciidoc:270 [source, python] ---- diff --git a/docs/examples/968fb5b92aa65af09544f7c002b0953e.asciidoc b/docs/examples/968fb5b92aa65af09544f7c002b0953e.asciidoc index 3746bf530..5b835081f 100644 --- a/docs/examples/968fb5b92aa65af09544f7c002b0953e.asciidoc +++ b/docs/examples/968fb5b92aa65af09544f7c002b0953e.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/search-your-data/semantic-search-semantic-text.asciidoc:144 +// search/search-your-data/semantic-search-semantic-text.asciidoc:141 [source, python] ---- diff --git a/docs/examples/96ea0e80323d6d2d99964625c004a44d.asciidoc b/docs/examples/96ea0e80323d6d2d99964625c004a44d.asciidoc index 4f91cd731..ed5869398 100644 --- a/docs/examples/96ea0e80323d6d2d99964625c004a44d.asciidoc +++ b/docs/examples/96ea0e80323d6d2d99964625c004a44d.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc:394 +// data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc:415 [source, python] ---- diff --git a/docs/examples/971fd23adb81bb5842c7750e0379336a.asciidoc b/docs/examples/971fd23adb81bb5842c7750e0379336a.asciidoc index a7eb8de57..8149932b7 100644 --- a/docs/examples/971fd23adb81bb5842c7750e0379336a.asciidoc +++ b/docs/examples/971fd23adb81bb5842c7750e0379336a.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/retriever.asciidoc:764 +// search/retriever.asciidoc:797 [source, python] ---- diff --git a/docs/examples/97c6c07f46f4177f0565a04bc50924a3.asciidoc b/docs/examples/97c6c07f46f4177f0565a04bc50924a3.asciidoc index 35f2440da..723e4a9b4 100644 --- a/docs/examples/97c6c07f46f4177f0565a04bc50924a3.asciidoc +++ b/docs/examples/97c6c07f46f4177f0565a04bc50924a3.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/search-your-data/retrievers-examples.asciidoc:113 +// search/search-your-data/retrievers-examples.asciidoc:118 [source, python] ---- diff --git a/docs/examples/986f892bfa4dfdf1da8455fdf84a4b0c.asciidoc b/docs/examples/986f892bfa4dfdf1da8455fdf84a4b0c.asciidoc index 3e5ded035..c2d806deb 100644 --- a/docs/examples/986f892bfa4dfdf1da8455fdf84a4b0c.asciidoc +++ b/docs/examples/986f892bfa4dfdf1da8455fdf84a4b0c.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// inference/service-alibabacloud-ai-search.asciidoc:228 +// inference/service-alibabacloud-ai-search.asciidoc:231 [source, python] ---- diff --git a/docs/examples/9a203aae3e1412d919546276fb52a5ca.asciidoc b/docs/examples/9a203aae3e1412d919546276fb52a5ca.asciidoc index 3d9cb9247..311f671bc 100644 --- a/docs/examples/9a203aae3e1412d919546276fb52a5ca.asciidoc +++ b/docs/examples/9a203aae3e1412d919546276fb52a5ca.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// inference/service-cohere.asciidoc:196 +// inference/service-cohere.asciidoc:198 [source, python] ---- diff --git a/docs/examples/9ab351893dae65ec97fd8cb6832950fb.asciidoc b/docs/examples/9ab351893dae65ec97fd8cb6832950fb.asciidoc index f3393b1a2..3474cad83 100644 --- a/docs/examples/9ab351893dae65ec97fd8cb6832950fb.asciidoc +++ b/docs/examples/9ab351893dae65ec97fd8cb6832950fb.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/search-your-data/knn-search.asciidoc:1288 +// search/search-your-data/knn-search.asciidoc:1286 [source, python] ---- diff --git a/docs/examples/2c27a8eb6528126f37a843d434cd88b6.asciidoc b/docs/examples/9be8f52aab94b6bc8b8603234551475d.asciidoc similarity index 86% rename from docs/examples/2c27a8eb6528126f37a843d434cd88b6.asciidoc rename to docs/examples/9be8f52aab94b6bc8b8603234551475d.asciidoc index 5df64d938..27f9c3fbc 100644 --- a/docs/examples/2c27a8eb6528126f37a843d434cd88b6.asciidoc +++ b/docs/examples/9be8f52aab94b6bc8b8603234551475d.asciidoc @@ -9,7 +9,7 @@ resp = client.indices.analyze( { "type": "synonym_graph", "synonyms": [ - "dns, domain name system" + "internet phonebook, domain name system" ] } ], diff --git a/docs/examples/9bf143cafe68af4cf8d35dbef7bf4ea9.asciidoc b/docs/examples/9bf143cafe68af4cf8d35dbef7bf4ea9.asciidoc new file mode 100644 index 000000000..26b9a14c0 --- /dev/null +++ b/docs/examples/9bf143cafe68af4cf8d35dbef7bf4ea9.asciidoc @@ -0,0 +1,31 @@ +// This file is autogenerated, DO NOT EDIT +// data-streams/failure-store.asciidoc:496 + +[source, python] +---- +resp = client.indices.put_index_template( + name="my-datastream-example-template", + index_patterns=[ + "my-datastream-ingest*" + ], + data_stream={}, + template={ + "settings": { + "index.default_pipeline": "my-datastream-example-pipeline" + }, + "mappings": { + "properties": { + "published": { + "type": "long" + } + } + }, + "data_stream_options": { + "failure_store": { + "enabled": True + } + } + }, +) +print(resp) +---- diff --git a/docs/examples/9c2ce0132e4527077443f007d27b1158.asciidoc b/docs/examples/9c2ce0132e4527077443f007d27b1158.asciidoc index 64eb514f0..2af70867a 100644 --- a/docs/examples/9c2ce0132e4527077443f007d27b1158.asciidoc +++ b/docs/examples/9c2ce0132e4527077443f007d27b1158.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/flattened.asciidoc:422 +// mapping/types/flattened.asciidoc:415 [source, python] ---- diff --git a/docs/examples/9d66cb59711f24e6b4ff85608c9b5a1b.asciidoc b/docs/examples/9d66cb59711f24e6b4ff85608c9b5a1b.asciidoc index 46b5bc2ff..dfe0eb762 100644 --- a/docs/examples/9d66cb59711f24e6b4ff85608c9b5a1b.asciidoc +++ b/docs/examples/9d66cb59711f24e6b4ff85608c9b5a1b.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// troubleshooting/common-issues/task-queue-backlog.asciidoc:73 +// troubleshooting/common-issues/task-queue-backlog.asciidoc:51 [source, python] ---- diff --git a/docs/examples/9de4edafd22a8b9cb557632b2c8779cd.asciidoc b/docs/examples/9de4edafd22a8b9cb557632b2c8779cd.asciidoc index 435e9f608..093b5b81a 100644 --- a/docs/examples/9de4edafd22a8b9cb557632b2c8779cd.asciidoc +++ b/docs/examples/9de4edafd22a8b9cb557632b2c8779cd.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// esql/esql-rest.asciidoc:309 +// esql/esql-rest.asciidoc:316 [source, python] ---- diff --git a/docs/examples/9f03a8340761e729e8bdc8c7b6f66d98.asciidoc b/docs/examples/9f03a8340761e729e8bdc8c7b6f66d98.asciidoc new file mode 100644 index 000000000..79ecaa066 --- /dev/null +++ b/docs/examples/9f03a8340761e729e8bdc8c7b6f66d98.asciidoc @@ -0,0 +1,20 @@ +// This file is autogenerated, DO NOT EDIT +// mapping/types/semantic-text.asciidoc:163 + +[source, python] +---- +resp = client.indices.create( + index="test-index", + mappings={ + "properties": { + "my_semantic_field": { + "type": "semantic_text", + "chunking_settings": { + "strategy": "none" + } + } + } + }, +) +print(resp) +---- diff --git a/docs/examples/9feff356f302ea4915347ab71cc4887a.asciidoc b/docs/examples/9feff356f302ea4915347ab71cc4887a.asciidoc index d9508e5ae..a8b12ac29 100644 --- a/docs/examples/9feff356f302ea4915347ab71cc4887a.asciidoc +++ b/docs/examples/9feff356f302ea4915347ab71cc4887a.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// indices/simulate-template.asciidoc:241 +// indices/simulate-template.asciidoc:240 [source, python] ---- diff --git a/docs/examples/a00311843b5f8f3e9f7d511334a828b1.asciidoc b/docs/examples/a00311843b5f8f3e9f7d511334a828b1.asciidoc index 9d5f860ed..5802d6251 100644 --- a/docs/examples/a00311843b5f8f3e9f7d511334a828b1.asciidoc +++ b/docs/examples/a00311843b5f8f3e9f7d511334a828b1.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// rollup/apis/rollup-caps.asciidoc:98 +// rollup/apis/rollup-caps.asciidoc:97 [source, python] ---- diff --git a/docs/examples/a1070cf2f5969d42d71cda057223f152.asciidoc b/docs/examples/a1070cf2f5969d42d71cda057223f152.asciidoc index 2de683ba9..5c00da449 100644 --- a/docs/examples/a1070cf2f5969d42d71cda057223f152.asciidoc +++ b/docs/examples/a1070cf2f5969d42d71cda057223f152.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// how-to/size-your-shards.asciidoc:248 +// how-to/size-your-shards.asciidoc:247 [source, python] ---- diff --git a/docs/examples/a1b668795243398f5bc40bcc9bead884.asciidoc b/docs/examples/a1b668795243398f5bc40bcc9bead884.asciidoc index 56d50d1b9..8b80052b2 100644 --- a/docs/examples/a1b668795243398f5bc40bcc9bead884.asciidoc +++ b/docs/examples/a1b668795243398f5bc40bcc9bead884.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/range.asciidoc:254 +// mapping/types/range.asciidoc:247 [source, python] ---- diff --git a/docs/examples/a1ccd51eef37e43c935a047b0ee15daa.asciidoc b/docs/examples/a1ccd51eef37e43c935a047b0ee15daa.asciidoc index d2ad185f9..00ce45ab7 100644 --- a/docs/examples/a1ccd51eef37e43c935a047b0ee15daa.asciidoc +++ b/docs/examples/a1ccd51eef37e43c935a047b0ee15daa.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// data-streams/downsampling-manual.asciidoc:401 +// data-streams/downsampling-manual.asciidoc:404 [source, python] ---- diff --git a/docs/examples/a1dda7e7c01be96a4acf7b725d70385f.asciidoc b/docs/examples/a1dda7e7c01be96a4acf7b725d70385f.asciidoc index 304ea62c6..87cb009b3 100644 --- a/docs/examples/a1dda7e7c01be96a4acf7b725d70385f.asciidoc +++ b/docs/examples/a1dda7e7c01be96a4acf7b725d70385f.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/retriever.asciidoc:684 +// search/retriever.asciidoc:717 [source, python] ---- diff --git a/docs/examples/a1f70bc71b763b58206814c40a7440e7.asciidoc b/docs/examples/a1f70bc71b763b58206814c40a7440e7.asciidoc index 103eacdfc..03e109bd9 100644 --- a/docs/examples/a1f70bc71b763b58206814c40a7440e7.asciidoc +++ b/docs/examples/a1f70bc71b763b58206814c40a7440e7.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// rest-api/watcher/update-settings.asciidoc:47 +// rest-api/watcher/update-settings.asciidoc:54 [source, python] ---- diff --git a/docs/examples/a2566a2ed14ecc504ca27f85771c2638.asciidoc b/docs/examples/a2566a2ed14ecc504ca27f85771c2638.asciidoc new file mode 100644 index 000000000..d8a541544 --- /dev/null +++ b/docs/examples/a2566a2ed14ecc504ca27f85771c2638.asciidoc @@ -0,0 +1,29 @@ +// This file is autogenerated, DO NOT EDIT +// esql/esql-lookup-join.asciidoc:122 + +[source, python] +---- +resp = client.indices.create( + index="firewall_logs", + mappings={ + "properties": { + "timestamp": { + "type": "date" + }, + "source.ip": { + "type": "ip" + }, + "destination.ip": { + "type": "ip" + }, + "action": { + "type": "keyword" + }, + "bytes_transferred": { + "type": "long" + } + } + }, +) +print(resp) +---- diff --git a/docs/examples/a3646b59da66b9ab68bdbc8dc2e6a9be.asciidoc b/docs/examples/a3646b59da66b9ab68bdbc8dc2e6a9be.asciidoc index a1a4feb8b..5c2584c05 100644 --- a/docs/examples/a3646b59da66b9ab68bdbc8dc2e6a9be.asciidoc +++ b/docs/examples/a3646b59da66b9ab68bdbc8dc2e6a9be.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/retriever.asciidoc:159 +// search/retriever.asciidoc:186 [source, python] ---- diff --git a/docs/examples/a3779f21f132787c48681bfb50453592.asciidoc b/docs/examples/a3779f21f132787c48681bfb50453592.asciidoc index 6b0436b24..9e06dd98d 100644 --- a/docs/examples/a3779f21f132787c48681bfb50453592.asciidoc +++ b/docs/examples/a3779f21f132787c48681bfb50453592.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// ingest/processors/ip-location.asciidoc:85 +// ingest/processors/ip-location.asciidoc:100 [source, python] ---- diff --git a/docs/examples/a46f566ca031375658c22f89b87dc6d2.asciidoc b/docs/examples/a46f566ca031375658c22f89b87dc6d2.asciidoc deleted file mode 100644 index b046f9db2..000000000 --- a/docs/examples/a46f566ca031375658c22f89b87dc6d2.asciidoc +++ /dev/null @@ -1,12 +0,0 @@ -// This file is autogenerated, DO NOT EDIT -// migration/migrate_9_0.asciidoc:379 - -[source, python] ----- -resp = client.cat.indices( - index=".ml-anomalies-custom-example", - v=True, - h="index,store.size", -) -print(resp) ----- diff --git a/docs/examples/a5aeb2c8bdf91f6146026ec8edc476b6.asciidoc b/docs/examples/a5aeb2c8bdf91f6146026ec8edc476b6.asciidoc index 48329183c..62a6b9162 100644 --- a/docs/examples/a5aeb2c8bdf91f6146026ec8edc476b6.asciidoc +++ b/docs/examples/a5aeb2c8bdf91f6146026ec8edc476b6.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/date_nanos.asciidoc:155 +// mapping/types/date_nanos.asciidoc:148 [source, python] ---- diff --git a/docs/examples/a5e6ad9e65615f6f92ae6a19674dd742.asciidoc b/docs/examples/a5e6ad9e65615f6f92ae6a19674dd742.asciidoc index 35d77326c..9779c9745 100644 --- a/docs/examples/a5e6ad9e65615f6f92ae6a19674dd742.asciidoc +++ b/docs/examples/a5e6ad9e65615f6f92ae6a19674dd742.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/percolate-query.asciidoc:595 +// query-dsl/percolate-query.asciidoc:593 [source, python] ---- diff --git a/docs/examples/a5f9eb40087921e67d820775acf71522.asciidoc b/docs/examples/a5f9eb40087921e67d820775acf71522.asciidoc index c85c3543d..43e78f484 100644 --- a/docs/examples/a5f9eb40087921e67d820775acf71522.asciidoc +++ b/docs/examples/a5f9eb40087921e67d820775acf71522.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// indices/put-mapping.asciidoc:218 +// indices/put-mapping.asciidoc:224 [source, python] ---- diff --git a/docs/examples/a692b4c0ca7825c467880b346841f5a5.asciidoc b/docs/examples/a692b4c0ca7825c467880b346841f5a5.asciidoc index 4069ff6d3..91cfd9925 100644 --- a/docs/examples/a692b4c0ca7825c467880b346841f5a5.asciidoc +++ b/docs/examples/a692b4c0ca7825c467880b346841f5a5.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// indices/put-mapping.asciidoc:162 +// indices/put-mapping.asciidoc:168 [source, python] ---- diff --git a/docs/examples/a6ccac9f80c5e5efdaab992f3a32d919.asciidoc b/docs/examples/a6ccac9f80c5e5efdaab992f3a32d919.asciidoc index d1b0285d8..e87bec20f 100644 --- a/docs/examples/a6ccac9f80c5e5efdaab992f3a32d919.asciidoc +++ b/docs/examples/a6ccac9f80c5e5efdaab992f3a32d919.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc:407 +// data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc:428 [source, python] ---- diff --git a/docs/examples/a72613de3774571ba24def4b495161b5.asciidoc b/docs/examples/a72613de3774571ba24def4b495161b5.asciidoc index 790292f7e..11a947b90 100644 --- a/docs/examples/a72613de3774571ba24def4b495161b5.asciidoc +++ b/docs/examples/a72613de3774571ba24def4b495161b5.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// indices/put-mapping.asciidoc:428 +// indices/put-mapping.asciidoc:434 [source, python] ---- diff --git a/docs/examples/a73782426586c00b79a30ae55850f8b0.asciidoc b/docs/examples/a73782426586c00b79a30ae55850f8b0.asciidoc new file mode 100644 index 000000000..cd9ff4ea1 --- /dev/null +++ b/docs/examples/a73782426586c00b79a30ae55850f8b0.asciidoc @@ -0,0 +1,52 @@ +// This file is autogenerated, DO NOT EDIT +// data-streams/failure-store-recipes.asciidoc:350 + +[source, python] +---- +resp = client.ingest.put_pipeline( + id="complicated-processor", + processors=[ + { + "set": { + "tag": "initialize counter", + "field": "counter", + "value": "1" + } + }, + { + "set": { + "tag": "copy counter to new", + "field": "new_counter", + "copy_from": "counter" + } + }, + { + "remove": { + "tag": "remove old counter", + "field": "counter" + } + }, + { + "set": { + "tag": "transfer counter back", + "field": "counter", + "copy_from": "new_counter" + } + }, + { + "remove": { + "tag": "remove counter again", + "field": "new_counter" + } + }, + { + "set": { + "tag": "copy to new counter again", + "field": "new_counter", + "copy_from": "counter" + } + } + ], +) +print(resp) +---- diff --git a/docs/examples/a7471238a42c7cd0f8a7ac9ea14dfbcb.asciidoc b/docs/examples/a7471238a42c7cd0f8a7ac9ea14dfbcb.asciidoc new file mode 100644 index 000000000..f598509a4 --- /dev/null +++ b/docs/examples/a7471238a42c7cd0f8a7ac9ea14dfbcb.asciidoc @@ -0,0 +1,62 @@ +// This file is autogenerated, DO NOT EDIT +// esql/esql-lookup-join.asciidoc:151 + +[source, python] +---- +resp = client.bulk( + index="firewall_logs", + operations=[ + { + "index": {} + }, + { + "timestamp": "2025-04-23T10:00:01Z", + "source.ip": "192.0.2.1", + "destination.ip": "10.0.0.100", + "action": "allow", + "bytes_transferred": 1024 + }, + { + "index": {} + }, + { + "timestamp": "2025-04-23T10:00:05Z", + "source.ip": "203.0.113.5", + "destination.ip": "10.0.0.55", + "action": "allow", + "bytes_transferred": 2048 + }, + { + "index": {} + }, + { + "timestamp": "2025-04-23T10:00:08Z", + "source.ip": "198.51.100.2", + "destination.ip": "10.0.0.200", + "action": "block", + "bytes_transferred": 0 + }, + { + "index": {} + }, + { + "timestamp": "2025-04-23T10:00:15Z", + "source.ip": "203.0.113.5", + "destination.ip": "10.0.0.44", + "action": "allow", + "bytes_transferred": 4096 + }, + { + "index": {} + }, + { + "timestamp": "2025-04-23T10:00:30Z", + "source.ip": "192.0.2.1", + "destination.ip": "10.0.0.100", + "action": "allow", + "bytes_transferred": 512 + } + ], +) +print(resp) +---- diff --git a/docs/examples/a7d814caf2a995d2aeadecc3495011be.asciidoc b/docs/examples/a7d814caf2a995d2aeadecc3495011be.asciidoc index 5801198e8..f308b760b 100644 --- a/docs/examples/a7d814caf2a995d2aeadecc3495011be.asciidoc +++ b/docs/examples/a7d814caf2a995d2aeadecc3495011be.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/boolean.asciidoc:248 +// mapping/types/boolean.asciidoc:241 [source, python] ---- diff --git a/docs/examples/a8dff54362184b2732b9bd248cf6df8a.asciidoc b/docs/examples/a8dff54362184b2732b9bd248cf6df8a.asciidoc index 2881a6771..fb1449003 100644 --- a/docs/examples/a8dff54362184b2732b9bd248cf6df8a.asciidoc +++ b/docs/examples/a8dff54362184b2732b9bd248cf6df8a.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/range.asciidoc:418 +// mapping/types/range.asciidoc:411 [source, python] ---- diff --git a/docs/examples/a960b43e720b4934edb74ab4b085ca77.asciidoc b/docs/examples/a960b43e720b4934edb74ab4b085ca77.asciidoc index b48cffe85..b1949984a 100644 --- a/docs/examples/a960b43e720b4934edb74ab4b085ca77.asciidoc +++ b/docs/examples/a960b43e720b4934edb74ab4b085ca77.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// connector/apis/list-connectors-api.asciidoc:88 +// connector/apis/list-connectors-api.asciidoc:85 [source, python] ---- diff --git a/docs/examples/a999b5661bebb802bbbfe04faacf1971.asciidoc b/docs/examples/a999b5661bebb802bbbfe04faacf1971.asciidoc index 77df3aaa7..b8c02fe91 100644 --- a/docs/examples/a999b5661bebb802bbbfe04faacf1971.asciidoc +++ b/docs/examples/a999b5661bebb802bbbfe04faacf1971.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// how-to/size-your-shards.asciidoc:511 +// how-to/size-your-shards.asciidoc:510 [source, python] ---- diff --git a/docs/examples/a9f14efc26fdd3c37a71f06c310163d9.asciidoc b/docs/examples/a9f14efc26fdd3c37a71f06c310163d9.asciidoc index 79fb403e2..70cef562b 100644 --- a/docs/examples/a9f14efc26fdd3c37a71f06c310163d9.asciidoc +++ b/docs/examples/a9f14efc26fdd3c37a71f06c310163d9.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/retriever.asciidoc:650 +// search/retriever.asciidoc:683 [source, python] ---- diff --git a/docs/examples/aa676d54a59dee87ecd28bcc1edce59b.asciidoc b/docs/examples/aa676d54a59dee87ecd28bcc1edce59b.asciidoc index d6bbbd75a..9a8dc2088 100644 --- a/docs/examples/aa676d54a59dee87ecd28bcc1edce59b.asciidoc +++ b/docs/examples/aa676d54a59dee87ecd28bcc1edce59b.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// inference/service-alibabacloud-ai-search.asciidoc:192 +// inference/service-alibabacloud-ai-search.asciidoc:195 [source, python] ---- diff --git a/docs/examples/aa814309ad5f1630886ba75255b444f5.asciidoc b/docs/examples/aa814309ad5f1630886ba75255b444f5.asciidoc index 9ced73fdc..d542f9477 100644 --- a/docs/examples/aa814309ad5f1630886ba75255b444f5.asciidoc +++ b/docs/examples/aa814309ad5f1630886ba75255b444f5.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// troubleshooting/common-issues/task-queue-backlog.asciidoc:104 +// troubleshooting/common-issues/task-queue-backlog.asciidoc:80 [source, python] ---- diff --git a/docs/examples/aad7d80990a6a3c391ff555ce09ae9dc.asciidoc b/docs/examples/aad7d80990a6a3c391ff555ce09ae9dc.asciidoc index adf825bb3..db094b13f 100644 --- a/docs/examples/aad7d80990a6a3c391ff555ce09ae9dc.asciidoc +++ b/docs/examples/aad7d80990a6a3c391ff555ce09ae9dc.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/numeric.asciidoc:295 +// mapping/types/numeric.asciidoc:288 [source, python] ---- diff --git a/docs/examples/ac22cc2b0f4ad659055feed2852a2d59.asciidoc b/docs/examples/ac22cc2b0f4ad659055feed2852a2d59.asciidoc index b722f9c00..2fd88d8db 100644 --- a/docs/examples/ac22cc2b0f4ad659055feed2852a2d59.asciidoc +++ b/docs/examples/ac22cc2b0f4ad659055feed2852a2d59.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/search-your-data/retrievers-examples.asciidoc:1485 +// search/search-your-data/retrievers-examples.asciidoc:1776 [source, python] ---- diff --git a/docs/examples/ac497917ef707538198a8458ae3d5c6b.asciidoc b/docs/examples/ac497917ef707538198a8458ae3d5c6b.asciidoc index d0c229186..ee4ab8bd9 100644 --- a/docs/examples/ac497917ef707538198a8458ae3d5c6b.asciidoc +++ b/docs/examples/ac497917ef707538198a8458ae3d5c6b.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/match-query.asciidoc:165 +// query-dsl/match-query.asciidoc:169 [source, python] ---- diff --git a/docs/examples/ac5b91aa75696f9880451c9439fd9eec.asciidoc b/docs/examples/ac5b91aa75696f9880451c9439fd9eec.asciidoc index 84f62b3bf..128528250 100644 --- a/docs/examples/ac5b91aa75696f9880451c9439fd9eec.asciidoc +++ b/docs/examples/ac5b91aa75696f9880451c9439fd9eec.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/range.asciidoc:461 +// mapping/types/range.asciidoc:454 [source, python] ---- diff --git a/docs/examples/acc6cd860032167e34fa5e0c043ab3b0.asciidoc b/docs/examples/acc6cd860032167e34fa5e0c043ab3b0.asciidoc index ecfc1bbc9..83bd847a4 100644 --- a/docs/examples/acc6cd860032167e34fa5e0c043ab3b0.asciidoc +++ b/docs/examples/acc6cd860032167e34fa5e0c043ab3b0.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/query-string-query.asciidoc:335 +// query-dsl/query-string-query.asciidoc:338 [source, python] ---- diff --git a/docs/examples/4de4bb55bbc0a76c75d256f245a3ee3f.asciidoc b/docs/examples/ad0204602a9ebdf748b06ce9ade218e4.asciidoc similarity index 50% rename from docs/examples/4de4bb55bbc0a76c75d256f245a3ee3f.asciidoc rename to docs/examples/ad0204602a9ebdf748b06ce9ade218e4.asciidoc index 11ed7d7dd..9ff7e3d80 100644 --- a/docs/examples/4de4bb55bbc0a76c75d256f245a3ee3f.asciidoc +++ b/docs/examples/ad0204602a9ebdf748b06ce9ade218e4.asciidoc @@ -1,15 +1,15 @@ // This file is autogenerated, DO NOT EDIT -// inference/elastic-infer-service.asciidoc:100 +// inference/service-voyageai.asciidoc:169 [source, python] ---- resp = client.inference.put( - task_type="sparse_embedding", - inference_id="elser-model-eis", + task_type="rerank", + inference_id="voyageai-rerank", inference_config={ - "service": "elastic", + "service": "voyageai", "service_settings": { - "model_name": "elser" + "model_id": "rerank-2" } }, ) diff --git a/docs/examples/ad2416ca0581316cee6c63129685bca5.asciidoc b/docs/examples/ad2416ca0581316cee6c63129685bca5.asciidoc index c7ce73d94..3d857fa1a 100644 --- a/docs/examples/ad2416ca0581316cee6c63129685bca5.asciidoc +++ b/docs/examples/ad2416ca0581316cee6c63129685bca5.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/query-string-query.asciidoc:498 +// query-dsl/query-string-query.asciidoc:501 [source, python] ---- diff --git a/docs/examples/ad9c0cd9d90cf57071dfc58d780294cd.asciidoc b/docs/examples/ad9c0cd9d90cf57071dfc58d780294cd.asciidoc new file mode 100644 index 000000000..7fca51cf6 --- /dev/null +++ b/docs/examples/ad9c0cd9d90cf57071dfc58d780294cd.asciidoc @@ -0,0 +1,19 @@ +// This file is autogenerated, DO NOT EDIT +// data-streams/failure-store-recipes.asciidoc:580 + +[source, python] +---- +resp = client.ingest.put_pipeline( + id="my-datastream-default-pipeline", + processors=[ + { + "set": { + "field": "identifier", + "copy_from": "data.id", + "if": "ctx.data?.id != null" + } + } + ], +) +print(resp) +---- diff --git a/docs/examples/add240aa149d8b11139947502b279ee0.asciidoc b/docs/examples/add240aa149d8b11139947502b279ee0.asciidoc index eee73448f..3095f9ee1 100644 --- a/docs/examples/add240aa149d8b11139947502b279ee0.asciidoc +++ b/docs/examples/add240aa149d8b11139947502b279ee0.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/search-your-data/paginate-search-results.asciidoc:403 +// search/search-your-data/paginate-search-results.asciidoc:418 [source, python] ---- diff --git a/docs/examples/ae4b57e167b81ffed537a8e6eaf7f855.asciidoc b/docs/examples/ae4b57e167b81ffed537a8e6eaf7f855.asciidoc new file mode 100644 index 000000000..79331717f --- /dev/null +++ b/docs/examples/ae4b57e167b81ffed537a8e6eaf7f855.asciidoc @@ -0,0 +1,22 @@ +// This file is autogenerated, DO NOT EDIT +// search/retriever.asciidoc:1097 + +[source, python] +---- +resp = client.search( + index="books", + retriever={ + "linear": { + "query": "elasticsearch", + "fields": [ + "title", + "description", + "title_semantic", + "description_semantic" + ], + "normalizer": "minmax" + } + }, +) +print(resp) +---- diff --git a/docs/examples/ae9ccfaa146731ab9176df90670db1c2.asciidoc b/docs/examples/ae9ccfaa146731ab9176df90670db1c2.asciidoc index 0e01584d8..b88af670d 100644 --- a/docs/examples/ae9ccfaa146731ab9176df90670db1c2.asciidoc +++ b/docs/examples/ae9ccfaa146731ab9176df90670db1c2.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// docs/bulk.asciidoc:509 +// docs/bulk.asciidoc:505 [source, python] ---- diff --git a/docs/examples/af607715d0693587dd12962266359a96.asciidoc b/docs/examples/af607715d0693587dd12962266359a96.asciidoc index afd7cc471..2b5709f00 100644 --- a/docs/examples/af607715d0693587dd12962266359a96.asciidoc +++ b/docs/examples/af607715d0693587dd12962266359a96.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// snapshot-restore/repository-s3.asciidoc:232 +// snapshot-restore/repository-s3.asciidoc:216 [source, python] ---- diff --git a/docs/examples/afa11ebb493ebbfd77acbbe50d2ce6db.asciidoc b/docs/examples/afa11ebb493ebbfd77acbbe50d2ce6db.asciidoc index 591e3db08..fcead7c24 100644 --- a/docs/examples/afa11ebb493ebbfd77acbbe50d2ce6db.asciidoc +++ b/docs/examples/afa11ebb493ebbfd77acbbe50d2ce6db.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// data-streams/downsampling-manual.asciidoc:591 +// data-streams/downsampling-manual.asciidoc:594 [source, python] ---- diff --git a/docs/examples/afef5cac988592b97ae289ab39c2f437.asciidoc b/docs/examples/afef5cac988592b97ae289ab39c2f437.asciidoc index 681761170..4ed1299b1 100644 --- a/docs/examples/afef5cac988592b97ae289ab39c2f437.asciidoc +++ b/docs/examples/afef5cac988592b97ae289ab39c2f437.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/text.asciidoc:307 +// mapping/types/text.asciidoc:313 [source, python] ---- diff --git a/docs/examples/b0ee6f19875fe5bad8aab02d60e3532c.asciidoc b/docs/examples/b0ee6f19875fe5bad8aab02d60e3532c.asciidoc index 610238476..df5a640e1 100644 --- a/docs/examples/b0ee6f19875fe5bad8aab02d60e3532c.asciidoc +++ b/docs/examples/b0ee6f19875fe5bad8aab02d60e3532c.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// ingest/processors/geoip.asciidoc:85 +// ingest/processors/geoip.asciidoc:86 [source, python] ---- diff --git a/docs/examples/b11a0675e49df0709be693297ca73a2c.asciidoc b/docs/examples/b11a0675e49df0709be693297ca73a2c.asciidoc index d86bed6c9..2cee25e86 100644 --- a/docs/examples/b11a0675e49df0709be693297ca73a2c.asciidoc +++ b/docs/examples/b11a0675e49df0709be693297ca73a2c.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// rest-api/info.asciidoc:199 +// rest-api/info.asciidoc:203 [source, python] ---- diff --git a/docs/examples/b3506229aa2d84acb7cc06a9586b8318.asciidoc b/docs/examples/b3506229aa2d84acb7cc06a9586b8318.asciidoc new file mode 100644 index 000000000..f5e877139 --- /dev/null +++ b/docs/examples/b3506229aa2d84acb7cc06a9586b8318.asciidoc @@ -0,0 +1,52 @@ +// This file is autogenerated, DO NOT EDIT +// data-streams/failure-store-recipes.asciidoc:201 + +[source, python] +---- +resp = client.ingest.put_pipeline( + id="complicated-processor", + processors=[ + { + "set": { + "tag": "initialize counter", + "field": "counter", + "value": "1" + } + }, + { + "set": { + "tag": "copy counter to new", + "field": "new_counter", + "copy_from": "counter" + } + }, + { + "remove": { + "tag": "remove old counter", + "field": "counter" + } + }, + { + "set": { + "tag": "transfer counter back", + "field": "counter", + "copy_from": "new_counter" + } + }, + { + "remove": { + "tag": "remove counter again", + "field": "counter" + } + }, + { + "set": { + "tag": "copy to new counter again", + "field": "new_counter", + "copy_from": "counter" + } + } + ], +) +print(resp) +---- diff --git a/docs/examples/b3cd07f02059165fd62a2f148be3dc58.asciidoc b/docs/examples/b3cd07f02059165fd62a2f148be3dc58.asciidoc index be7f57a49..8d200d0d9 100644 --- a/docs/examples/b3cd07f02059165fd62a2f148be3dc58.asciidoc +++ b/docs/examples/b3cd07f02059165fd62a2f148be3dc58.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/numeric.asciidoc:259 +// mapping/types/numeric.asciidoc:252 [source, python] ---- diff --git a/docs/examples/b3df2d2ab1104e480168c18ae9348816.asciidoc b/docs/examples/b3df2d2ab1104e480168c18ae9348816.asciidoc new file mode 100644 index 000000000..50e45dccc --- /dev/null +++ b/docs/examples/b3df2d2ab1104e480168c18ae9348816.asciidoc @@ -0,0 +1,32 @@ +// This file is autogenerated, DO NOT EDIT +// search/retriever.asciidoc:983 + +[source, python] +---- +resp = client.search( + index="restaurants", + retriever={ + "pinned": { + "docs": [ + { + "_id": "doc1", + "_index": "my-index" + }, + { + "_id": "doc2" + } + ], + "retriever": { + "standard": { + "query": { + "match": { + "title": "elasticsearch" + } + } + } + } + } + }, +) +print(resp) +---- diff --git a/docs/examples/b3fa4c3b93edae3d43f9ae792047b2f6.asciidoc b/docs/examples/b3fa4c3b93edae3d43f9ae792047b2f6.asciidoc new file mode 100644 index 000000000..7e081ea0f --- /dev/null +++ b/docs/examples/b3fa4c3b93edae3d43f9ae792047b2f6.asciidoc @@ -0,0 +1,39 @@ +// This file is autogenerated, DO NOT EDIT +// data-streams/failure-store-recipes.asciidoc:459 + +[source, python] +---- +resp = client.search( + index="my-datastream-ingest-example::failures", + query={ + "bool": { + "must": [ + { + "exists": { + "field": "error.pipeline" + } + }, + { + "match": { + "document.index": "my-datastream-ingest-example" + } + }, + { + "match": { + "error.type": "illegal_argument_exception" + } + }, + { + "range": { + "@timestamp": { + "gt": "2025-05-01T00:00:00Z", + "lte": "2025-05-02T00:00:00Z" + } + } + } + ] + } + }, +) +print(resp) +---- diff --git a/docs/examples/b557f114e21dbc6f531d4e7621a08e8f.asciidoc b/docs/examples/b557f114e21dbc6f531d4e7621a08e8f.asciidoc index 0b87c58c8..67550d6d1 100644 --- a/docs/examples/b557f114e21dbc6f531d4e7621a08e8f.asciidoc +++ b/docs/examples/b557f114e21dbc6f531d4e7621a08e8f.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/fields/source-field.asciidoc:80 +// mapping/fields/source-field.asciidoc:83 [source, python] ---- diff --git a/docs/examples/b583bf8d3a2f49d633aa2cfed5606418.asciidoc b/docs/examples/b583bf8d3a2f49d633aa2cfed5606418.asciidoc index 797108412..fc4cf9551 100644 --- a/docs/examples/b583bf8d3a2f49d633aa2cfed5606418.asciidoc +++ b/docs/examples/b583bf8d3a2f49d633aa2cfed5606418.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// indices/put-component-template.asciidoc:196 +// indices/put-component-template.asciidoc:194 [source, python] ---- diff --git a/docs/examples/b5bc1bb7278f2f95bc54790c78c928e0.asciidoc b/docs/examples/b5bc1bb7278f2f95bc54790c78c928e0.asciidoc index 0e8d41aca..30ad58e2e 100644 --- a/docs/examples/b5bc1bb7278f2f95bc54790c78c928e0.asciidoc +++ b/docs/examples/b5bc1bb7278f2f95bc54790c78c928e0.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// rollup/apis/get-job.asciidoc:170 +// rollup/apis/get-job.asciidoc:169 [source, python] ---- diff --git a/docs/examples/b68ed7037042719945a2452d23e64c78.asciidoc b/docs/examples/b68ed7037042719945a2452d23e64c78.asciidoc index ff3787f68..222a5fa01 100644 --- a/docs/examples/b68ed7037042719945a2452d23e64c78.asciidoc +++ b/docs/examples/b68ed7037042719945a2452d23e64c78.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/percolate-query.asciidoc:343 +// query-dsl/percolate-query.asciidoc:341 [source, python] ---- diff --git a/docs/examples/b7c99eb38d4b37e22de1ffcb0e88ae4c.asciidoc b/docs/examples/b7c99eb38d4b37e22de1ffcb0e88ae4c.asciidoc index 878f2ab0a..df4925624 100644 --- a/docs/examples/b7c99eb38d4b37e22de1ffcb0e88ae4c.asciidoc +++ b/docs/examples/b7c99eb38d4b37e22de1ffcb0e88ae4c.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/percolate-query.asciidoc:279 +// query-dsl/percolate-query.asciidoc:277 [source, python] ---- diff --git a/docs/examples/b87438263ccd68624b1d69d8750f9432.asciidoc b/docs/examples/b87438263ccd68624b1d69d8750f9432.asciidoc index 94db3486a..8e087b9ad 100644 --- a/docs/examples/b87438263ccd68624b1d69d8750f9432.asciidoc +++ b/docs/examples/b87438263ccd68624b1d69d8750f9432.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/params/doc-values.asciidoc:37 +// mapping/params/doc-values.asciidoc:39 [source, python] ---- diff --git a/docs/examples/b8e2313bb122506a943e99dcbb1c2114.asciidoc b/docs/examples/b8e2313bb122506a943e99dcbb1c2114.asciidoc new file mode 100644 index 000000000..ca4637dbe --- /dev/null +++ b/docs/examples/b8e2313bb122506a943e99dcbb1c2114.asciidoc @@ -0,0 +1,10 @@ +// This file is autogenerated, DO NOT EDIT +// data-streams/failure-store-recipes.asciidoc:146 + +[source, python] +---- +resp = client.ingest.get_pipeline( + id="ingest-step-1", +) +print(resp) +---- diff --git a/docs/examples/b9370fa1aa18fe4bc00cf81ef0c0d45b.asciidoc b/docs/examples/b9370fa1aa18fe4bc00cf81ef0c0d45b.asciidoc index ce99d9c1b..022050b51 100644 --- a/docs/examples/b9370fa1aa18fe4bc00cf81ef0c0d45b.asciidoc +++ b/docs/examples/b9370fa1aa18fe4bc00cf81ef0c0d45b.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/query-string-query.asciidoc:318 +// query-dsl/query-string-query.asciidoc:321 [source, python] ---- diff --git a/docs/examples/b94cee0f74f57742b3948f9b784dfdd4.asciidoc b/docs/examples/b94cee0f74f57742b3948f9b784dfdd4.asciidoc index fca964943..6234e4d54 100644 --- a/docs/examples/b94cee0f74f57742b3948f9b784dfdd4.asciidoc +++ b/docs/examples/b94cee0f74f57742b3948f9b784dfdd4.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/search-your-data/paginate-search-results.asciidoc:537 +// search/search-your-data/paginate-search-results.asciidoc:552 [source, python] ---- diff --git a/docs/examples/ba0e7e0b18fc9ec6c623d40186d1f61b.asciidoc b/docs/examples/ba0e7e0b18fc9ec6c623d40186d1f61b.asciidoc index c25ea798e..906026b4b 100644 --- a/docs/examples/ba0e7e0b18fc9ec6c623d40186d1f61b.asciidoc +++ b/docs/examples/ba0e7e0b18fc9ec6c623d40186d1f61b.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// indices/resolve-cluster.asciidoc:271 +// indices/resolve-cluster.asciidoc:275 [source, python] ---- diff --git a/docs/examples/ba650046f9063f6c43d76f47e0f94403.asciidoc b/docs/examples/ba650046f9063f6c43d76f47e0f94403.asciidoc index 9b94f645f..567a7d3f2 100644 --- a/docs/examples/ba650046f9063f6c43d76f47e0f94403.asciidoc +++ b/docs/examples/ba650046f9063f6c43d76f47e0f94403.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/date.asciidoc:244 +// mapping/types/date.asciidoc:245 [source, python] ---- diff --git a/docs/examples/bb2ba5d1885f87506f90dbb002e518f4.asciidoc b/docs/examples/bb2ba5d1885f87506f90dbb002e518f4.asciidoc index f1cecf299..8af1b90b1 100644 --- a/docs/examples/bb2ba5d1885f87506f90dbb002e518f4.asciidoc +++ b/docs/examples/bb2ba5d1885f87506f90dbb002e518f4.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/search-your-data/retrievers-examples.asciidoc:604 +// search/search-your-data/retrievers-examples.asciidoc:875 [source, python] ---- diff --git a/docs/examples/bb5a67e3d2d9cd3016e487e627769fe8.asciidoc b/docs/examples/bb5a67e3d2d9cd3016e487e627769fe8.asciidoc index 94bea00eb..426fbc79b 100644 --- a/docs/examples/bb5a67e3d2d9cd3016e487e627769fe8.asciidoc +++ b/docs/examples/bb5a67e3d2d9cd3016e487e627769fe8.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// quickstart/full-text-filtering-tutorial.asciidoc:129 +// quickstart/esql-search-tutorial.asciidoc:151 [source, python] ---- diff --git a/docs/examples/bc4299ad1c9e910815f1acbea7aa2645.asciidoc b/docs/examples/bc4299ad1c9e910815f1acbea7aa2645.asciidoc new file mode 100644 index 000000000..db6b0dc61 --- /dev/null +++ b/docs/examples/bc4299ad1c9e910815f1acbea7aa2645.asciidoc @@ -0,0 +1,15 @@ +// This file is autogenerated, DO NOT EDIT +// data-streams/failure-store-recipes.asciidoc:253 + +[source, python] +---- +resp = client.index( + index="my-datastream-ingest", + refresh=True, + document={ + "@timestamp": "2025-04-21T00:00:00Z", + "counter_name": "test" + }, +) +print(resp) +---- diff --git a/docs/examples/bdaf00d791706d7fde25fd65d3735b94.asciidoc b/docs/examples/bdaf00d791706d7fde25fd65d3735b94.asciidoc index 08227226e..53567d173 100644 --- a/docs/examples/bdaf00d791706d7fde25fd65d3735b94.asciidoc +++ b/docs/examples/bdaf00d791706d7fde25fd65d3735b94.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/keyword.asciidoc:184 +// mapping/types/keyword.asciidoc:178 [source, python] ---- diff --git a/docs/examples/be5c5a9c25901737585e4fff9195da3c.asciidoc b/docs/examples/be5c5a9c25901737585e4fff9195da3c.asciidoc index 1590cce0b..370353f27 100644 --- a/docs/examples/be5c5a9c25901737585e4fff9195da3c.asciidoc +++ b/docs/examples/be5c5a9c25901737585e4fff9195da3c.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/dense-vector.asciidoc:435 +// mapping/types/dense-vector.asciidoc:428 [source, python] ---- diff --git a/docs/examples/beb0b9ff4f68672273fcff1b7bae706b.asciidoc b/docs/examples/beb0b9ff4f68672273fcff1b7bae706b.asciidoc index 4f6931ca5..f039bd547 100644 --- a/docs/examples/beb0b9ff4f68672273fcff1b7bae706b.asciidoc +++ b/docs/examples/beb0b9ff4f68672273fcff1b7bae706b.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// indices/put-mapping.asciidoc:411 +// indices/put-mapping.asciidoc:417 [source, python] ---- diff --git a/docs/examples/befa73a8a419fcf3b7798548b54a20bf.asciidoc b/docs/examples/befa73a8a419fcf3b7798548b54a20bf.asciidoc index 7bd330d62..cd849bc8f 100644 --- a/docs/examples/befa73a8a419fcf3b7798548b54a20bf.asciidoc +++ b/docs/examples/befa73a8a419fcf3b7798548b54a20bf.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/search-your-data/knn-search.asciidoc:1146 +// search/search-your-data/knn-search.asciidoc:1144 [source, python] ---- diff --git a/docs/examples/bf1de9fa1b825fa875d27fa08821a6d1.asciidoc b/docs/examples/bf1de9fa1b825fa875d27fa08821a6d1.asciidoc index 7e2332729..4fc505db3 100644 --- a/docs/examples/bf1de9fa1b825fa875d27fa08821a6d1.asciidoc +++ b/docs/examples/bf1de9fa1b825fa875d27fa08821a6d1.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// esql/esql-across-clusters.asciidoc:119 +// esql/esql-across-clusters.asciidoc:120 [source, python] ---- diff --git a/docs/examples/bfdad8a928ea30d7cf60d0a0a6bc6e2e.asciidoc b/docs/examples/bfdad8a928ea30d7cf60d0a0a6bc6e2e.asciidoc index f252a8b5a..a3ffebb32 100644 --- a/docs/examples/bfdad8a928ea30d7cf60d0a0a6bc6e2e.asciidoc +++ b/docs/examples/bfdad8a928ea30d7cf60d0a0a6bc6e2e.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// docs/bulk.asciidoc:721 +// docs/bulk.asciidoc:717 [source, python] ---- diff --git a/docs/examples/c067182d385f59ce5952fb9a716fbf05.asciidoc b/docs/examples/c067182d385f59ce5952fb9a716fbf05.asciidoc index 44ec44783..c71753127 100644 --- a/docs/examples/c067182d385f59ce5952fb9a716fbf05.asciidoc +++ b/docs/examples/c067182d385f59ce5952fb9a716fbf05.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// ml/anomaly-detection/apis/post-calendar-event.asciidoc:85 +// ml/anomaly-detection/apis/post-calendar-event.asciidoc:69 [source, python] ---- diff --git a/docs/examples/c14bd2a793721615d2f42bce5eea9f1f.asciidoc b/docs/examples/c14bd2a793721615d2f42bce5eea9f1f.asciidoc new file mode 100644 index 000000000..0774fd002 --- /dev/null +++ b/docs/examples/c14bd2a793721615d2f42bce5eea9f1f.asciidoc @@ -0,0 +1,26 @@ +// This file is autogenerated, DO NOT EDIT +// inference/service-watsonx-ai.asciidoc:147 + +[source, python] +---- +resp = client.inference.put( + task_type="rerank", + inference_id="watsonx-rerank", + inference_config={ + "service": "watsonxai", + "service_settings": { + "api_key": "", + "url": "", + "model_id": "cross-encoder/ms-marco-minilm-l-12-v2", + "project_id": "", + "api_version": "2024-05-02" + }, + "task_settings": { + "truncate_input_tokens": 50, + "return_documents": True, + "top_n": 3 + } + }, +) +print(resp) +---- diff --git a/docs/examples/c18100d62ed31bc9e05f62900156e6a8.asciidoc b/docs/examples/c18100d62ed31bc9e05f62900156e6a8.asciidoc index 0df79b777..6b33919c4 100644 --- a/docs/examples/c18100d62ed31bc9e05f62900156e6a8.asciidoc +++ b/docs/examples/c18100d62ed31bc9e05f62900156e6a8.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// connector/apis/list-connectors-api.asciidoc:102 +// connector/apis/list-connectors-api.asciidoc:99 [source, python] ---- diff --git a/docs/examples/c2845e640c11ced810bba2b9daac141b.asciidoc b/docs/examples/c2845e640c11ced810bba2b9daac141b.asciidoc new file mode 100644 index 000000000..a5bc8a4a1 --- /dev/null +++ b/docs/examples/c2845e640c11ced810bba2b9daac141b.asciidoc @@ -0,0 +1,13 @@ +// This file is autogenerated, DO NOT EDIT +// data-streams/failure-store.asciidoc:525 + +[source, python] +---- +resp = client.index( + index="my-datastream-ingest", + document={ + "random": 42 + }, +) +print(resp) +---- diff --git a/docs/examples/ffda10edaa7ce087703193c3cb95a426.asciidoc b/docs/examples/c2a9233c00ffa0aeb921edc072dd0c6f.asciidoc similarity index 94% rename from docs/examples/ffda10edaa7ce087703193c3cb95a426.asciidoc rename to docs/examples/c2a9233c00ffa0aeb921edc072dd0c6f.asciidoc index d88901a8f..4f3b13969 100644 --- a/docs/examples/ffda10edaa7ce087703193c3cb95a426.asciidoc +++ b/docs/examples/c2a9233c00ffa0aeb921edc072dd0c6f.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/search-your-data/retrievers-examples.asciidoc:14 +// search/search-your-data/retrievers-examples.asciidoc:15 [source, python] ---- @@ -20,7 +20,11 @@ resp = client.indices.create( } }, "text": { - "type": "text" + "type": "text", + "copy_to": "text_semantic" + }, + "text_semantic": { + "type": "semantic_text" }, "year": { "type": "integer" diff --git a/docs/examples/c2c21e2824fbf6b7198ede30419da82b.asciidoc b/docs/examples/c2c21e2824fbf6b7198ede30419da82b.asciidoc index 1f047c0e7..c3bf844e6 100644 --- a/docs/examples/c2c21e2824fbf6b7198ede30419da82b.asciidoc +++ b/docs/examples/c2c21e2824fbf6b7198ede30419da82b.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/search-your-data/paginate-search-results.asciidoc:529 +// search/search-your-data/paginate-search-results.asciidoc:544 [source, python] ---- diff --git a/docs/examples/c321e4f46297291b78aafd627d70ee39.asciidoc b/docs/examples/c321e4f46297291b78aafd627d70ee39.asciidoc new file mode 100644 index 000000000..392d572c8 --- /dev/null +++ b/docs/examples/c321e4f46297291b78aafd627d70ee39.asciidoc @@ -0,0 +1,46 @@ +// This file is autogenerated, DO NOT EDIT +// data-streams/failure-store-recipes.asciidoc:826 + +[source, python] +---- +resp = client.reindex( + source={ + "index": "my-datastream-ingest-example::failures", + "query": { + "bool": { + "must": [ + { + "exists": { + "field": "error.pipeline" + } + }, + { + "match": { + "document.index": "my-datastream-ingest-example" + } + }, + { + "match": { + "error.type": "illegal_argument_exception" + } + }, + { + "range": { + "@timestamp": { + "gt": "2025-05-01T00:00:00Z", + "lte": "2025-05-17T00:00:00Z" + } + } + } + ] + } + } + }, + dest={ + "index": "my-datastream-ingest-example", + "op_type": "create", + "pipeline": "my-datastream-remediation-pipeline" + }, +) +print(resp) +---- diff --git a/docs/examples/134384b8c63cfbd8d762fb01757bb3f9.asciidoc b/docs/examples/c38abc4b33115bce453748288837db8f.asciidoc similarity index 84% rename from docs/examples/134384b8c63cfbd8d762fb01757bb3f9.asciidoc rename to docs/examples/c38abc4b33115bce453748288837db8f.asciidoc index ef8d5d6ba..2834455bc 100644 --- a/docs/examples/134384b8c63cfbd8d762fb01757bb3f9.asciidoc +++ b/docs/examples/c38abc4b33115bce453748288837db8f.asciidoc @@ -6,7 +6,7 @@ resp = client.index( index="logs-debug", document={ - "date": "2019-12-12", + "@timestamp": "2019-12-12", "message": "Starting up Elasticsearch", "level": "debug" }, @@ -16,7 +16,7 @@ print(resp) resp1 = client.index( index="logs-debug", document={ - "date": "2019-12-12", + "@timestamp": "2019-12-12", "message": "Starting up Elasticsearch" }, ) diff --git a/docs/examples/c4607ca79b2bcde39305d6f4f21cad37.asciidoc b/docs/examples/c4607ca79b2bcde39305d6f4f21cad37.asciidoc index fd2d55854..0c3f71725 100644 --- a/docs/examples/c4607ca79b2bcde39305d6f4f21cad37.asciidoc +++ b/docs/examples/c4607ca79b2bcde39305d6f4f21cad37.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// esql/esql-rest.asciidoc:226 +// esql/esql-rest.asciidoc:232 [source, python] ---- diff --git a/docs/examples/c49ce88ff64cdeadb7029959e80c8f84.asciidoc b/docs/examples/c49ce88ff64cdeadb7029959e80c8f84.asciidoc new file mode 100644 index 000000000..1f0144aee --- /dev/null +++ b/docs/examples/c49ce88ff64cdeadb7029959e80c8f84.asciidoc @@ -0,0 +1,24 @@ +// This file is autogenerated, DO NOT EDIT +// mapping/types/sparse-vector.asciidoc:33 + +[source, python] +---- +resp = client.indices.create( + index="my-index", + mappings={ + "properties": { + "text.tokens": { + "type": "sparse_vector", + "index_options": { + "prune": True, + "pruning_config": { + "tokens_freq_ratio_threshold": 5, + "tokens_weight_threshold": 0.4 + } + } + } + } + }, +) +print(resp) +---- diff --git a/docs/examples/c526fca1609b4c3c1d12dfd218d69a50.asciidoc b/docs/examples/c526fca1609b4c3c1d12dfd218d69a50.asciidoc index 8ff744913..a40dd2988 100644 --- a/docs/examples/c526fca1609b4c3c1d12dfd218d69a50.asciidoc +++ b/docs/examples/c526fca1609b4c3c1d12dfd218d69a50.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// indices/put-mapping.asciidoc:383 +// indices/put-mapping.asciidoc:389 [source, python] ---- diff --git a/docs/examples/c5ed7d83ade97a417aef28b9e2871e5d.asciidoc b/docs/examples/c5ed7d83ade97a417aef28b9e2871e5d.asciidoc index a4d7c3543..20fd3c613 100644 --- a/docs/examples/c5ed7d83ade97a417aef28b9e2871e5d.asciidoc +++ b/docs/examples/c5ed7d83ade97a417aef28b9e2871e5d.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// ingest/common-log-format-example.asciidoc:189 +// ingest/common-log-format-example.asciidoc:190 [source, python] ---- diff --git a/docs/examples/c6339d09f85000a6432304b0ec63b8f6.asciidoc b/docs/examples/c6339d09f85000a6432304b0ec63b8f6.asciidoc index 514f0f8aa..b6e01c2b8 100644 --- a/docs/examples/c6339d09f85000a6432304b0ec63b8f6.asciidoc +++ b/docs/examples/c6339d09f85000a6432304b0ec63b8f6.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// indices/put-component-template.asciidoc:236 +// indices/put-component-template.asciidoc:234 [source, python] ---- diff --git a/docs/examples/c6bdd5c7de79d6d9ac8e33a397b511e8.asciidoc b/docs/examples/c6bdd5c7de79d6d9ac8e33a397b511e8.asciidoc index 0fe500a97..27af0e15c 100644 --- a/docs/examples/c6bdd5c7de79d6d9ac8e33a397b511e8.asciidoc +++ b/docs/examples/c6bdd5c7de79d6d9ac8e33a397b511e8.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// indices/put-mapping.asciidoc:327 +// indices/put-mapping.asciidoc:333 [source, python] ---- diff --git a/docs/examples/c70484c6f9bd683fa94e3e628ff9ff2c.asciidoc b/docs/examples/c70484c6f9bd683fa94e3e628ff9ff2c.asciidoc new file mode 100644 index 000000000..cdec9496c --- /dev/null +++ b/docs/examples/c70484c6f9bd683fa94e3e628ff9ff2c.asciidoc @@ -0,0 +1,25 @@ +// This file is autogenerated, DO NOT EDIT +// data-streams/failure-store.asciidoc:855 + +[source, python] +---- +resp = client.indices.modify_data_stream( + actions=[ + { + "remove_backing_index": { + "data_stream": "my-datastream", + "index": ".fs-my-datastream-2025.05.05-000002", + "failure_store": True + } + }, + { + "add_backing_index": { + "data_stream": "my-datastream", + "index": "restored-failure-index", + "failure_store": True + } + } + ], +) +print(resp) +---- diff --git a/docs/examples/c793efe7280e9b6e09981c4d4f832348.asciidoc b/docs/examples/c793efe7280e9b6e09981c4d4f832348.asciidoc index dcdc437f8..e46548ee1 100644 --- a/docs/examples/c793efe7280e9b6e09981c4d4f832348.asciidoc +++ b/docs/examples/c793efe7280e9b6e09981c4d4f832348.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/ip.asciidoc:166 +// mapping/types/ip.asciidoc:159 [source, python] ---- diff --git a/docs/examples/c938d8f62dc02103dc7074ec6d351a9e.asciidoc b/docs/examples/c938d8f62dc02103dc7074ec6d351a9e.asciidoc new file mode 100644 index 000000000..a932cdd14 --- /dev/null +++ b/docs/examples/c938d8f62dc02103dc7074ec6d351a9e.asciidoc @@ -0,0 +1,10 @@ +// This file is autogenerated, DO NOT EDIT +// data-streams/failure-store.asciidoc:724 + +[source, python] +---- +resp = client.indices.rollover( + alias="my-datastream::failures", +) +print(resp) +---- diff --git a/docs/examples/c9c396b94bb88098477e2b08b55a12ee.asciidoc b/docs/examples/c9c396b94bb88098477e2b08b55a12ee.asciidoc index e300dd9bb..518cc6213 100644 --- a/docs/examples/c9c396b94bb88098477e2b08b55a12ee.asciidoc +++ b/docs/examples/c9c396b94bb88098477e2b08b55a12ee.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// docs/bulk.asciidoc:774 +// docs/bulk.asciidoc:770 [source, python] ---- diff --git a/docs/examples/ca5dda98e977125d40a7fe1e178e213f.asciidoc b/docs/examples/ca5dda98e977125d40a7fe1e178e213f.asciidoc index a6c8c5cb1..fccdd63d8 100644 --- a/docs/examples/ca5dda98e977125d40a7fe1e178e213f.asciidoc +++ b/docs/examples/ca5dda98e977125d40a7fe1e178e213f.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/sparse-vector-query.asciidoc:134 +// query-dsl/sparse-vector-query.asciidoc:142 [source, python] ---- diff --git a/docs/examples/cc5eefcc2102aae7e87b0c87b4af10b8.asciidoc b/docs/examples/cc5eefcc2102aae7e87b0c87b4af10b8.asciidoc index b994f1ee9..f00e52a51 100644 --- a/docs/examples/cc5eefcc2102aae7e87b0c87b4af10b8.asciidoc +++ b/docs/examples/cc5eefcc2102aae7e87b0c87b4af10b8.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// esql/multivalued-fields.asciidoc:54 +// esql/multivalued-fields.asciidoc:56 [source, python] ---- diff --git a/docs/examples/cdb68b3f565df7c85e52a55864b37d40.asciidoc b/docs/examples/cdb68b3f565df7c85e52a55864b37d40.asciidoc index f3ee218e6..e5437840c 100644 --- a/docs/examples/cdb68b3f565df7c85e52a55864b37d40.asciidoc +++ b/docs/examples/cdb68b3f565df7c85e52a55864b37d40.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// indices/put-mapping.asciidoc:364 +// indices/put-mapping.asciidoc:370 [source, python] ---- diff --git a/docs/examples/ce2c2e8f5a2e4daf051b6e10122e5aae.asciidoc b/docs/examples/ce2c2e8f5a2e4daf051b6e10122e5aae.asciidoc index 2e8eefb75..84120b35f 100644 --- a/docs/examples/ce2c2e8f5a2e4daf051b6e10122e5aae.asciidoc +++ b/docs/examples/ce2c2e8f5a2e4daf051b6e10122e5aae.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/dense-vector.asciidoc:519 +// mapping/types/dense-vector.asciidoc:512 [source, python] ---- diff --git a/docs/examples/cf23f18761df33f08bc6f6d1875496fd.asciidoc b/docs/examples/cf23f18761df33f08bc6f6d1875496fd.asciidoc index b4b4bdf4e..79ac096c2 100644 --- a/docs/examples/cf23f18761df33f08bc6f6d1875496fd.asciidoc +++ b/docs/examples/cf23f18761df33f08bc6f6d1875496fd.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// how-to/size-your-shards.asciidoc:399 +// how-to/size-your-shards.asciidoc:398 [source, python] ---- diff --git a/docs/examples/d01a590fa9ea8a0cb34ed8dda502296c.asciidoc b/docs/examples/d01a590fa9ea8a0cb34ed8dda502296c.asciidoc new file mode 100644 index 000000000..2aa1436ea --- /dev/null +++ b/docs/examples/d01a590fa9ea8a0cb34ed8dda502296c.asciidoc @@ -0,0 +1,11 @@ +// This file is autogenerated, DO NOT EDIT +// migration/transient-settings-migration-guide.asciidoc:38 + +[source, python] +---- +resp = client.cluster.get_settings( + flat_settings=True, + filter_path="transient", +) +print(resp) +---- diff --git a/docs/examples/b3479ee4586c15020549afae58d94d65.asciidoc b/docs/examples/d0595401ef09dc23579c9df111049c20.asciidoc similarity index 84% rename from docs/examples/b3479ee4586c15020549afae58d94d65.asciidoc rename to docs/examples/d0595401ef09dc23579c9df111049c20.asciidoc index 2ae2dff35..0159c24b9 100644 --- a/docs/examples/b3479ee4586c15020549afae58d94d65.asciidoc +++ b/docs/examples/d0595401ef09dc23579c9df111049c20.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/geo-point.asciidoc:225 +// mapping/types/geo-point.asciidoc:221 [source, python] ---- @@ -17,7 +17,8 @@ resp = client.indices.create( mappings={ "properties": { "point": { - "type": "geo_point" + "type": "geo_point", + "synthetic_source_keep": "arrays" } } }, @@ -29,13 +30,13 @@ resp1 = client.index( id="1", document={ "point": [ - { - "lat": -90, - "lon": -80 - }, { "lat": 10, "lon": 30 + }, + { + "lat": -90, + "lon": -80 } ] }, diff --git a/docs/examples/d0fde00ef381e61b8a9e99f18cb5970a.asciidoc b/docs/examples/d0fde00ef381e61b8a9e99f18cb5970a.asciidoc index bfbfbdf58..a0eed8cd0 100644 --- a/docs/examples/d0fde00ef381e61b8a9e99f18cb5970a.asciidoc +++ b/docs/examples/d0fde00ef381e61b8a9e99f18cb5970a.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/simple-query-string-query.asciidoc:181 +// query-dsl/simple-query-string-query.asciidoc:184 [source, python] ---- diff --git a/docs/examples/3ab8f65fcb55a0e3664c55749ec41efd.asciidoc b/docs/examples/d1a285aa244ec461d68f13e7078a33c0.asciidoc similarity index 93% rename from docs/examples/3ab8f65fcb55a0e3664c55749ec41efd.asciidoc rename to docs/examples/d1a285aa244ec461d68f13e7078a33c0.asciidoc index 292815dbd..ee97186fe 100644 --- a/docs/examples/3ab8f65fcb55a0e3664c55749ec41efd.asciidoc +++ b/docs/examples/d1a285aa244ec461d68f13e7078a33c0.asciidoc @@ -32,8 +32,7 @@ resp = client.indices.create( "decimal_digit", "arabic_normalization", "persian_normalization", - "persian_stop", - "persian_stem" + "persian_stop" ] } } diff --git a/docs/examples/d1d8b6e642db1a7c70dbbf0fe6d8e92d.asciidoc b/docs/examples/d1d8b6e642db1a7c70dbbf0fe6d8e92d.asciidoc index 45bd12593..1ada14768 100644 --- a/docs/examples/d1d8b6e642db1a7c70dbbf0fe6d8e92d.asciidoc +++ b/docs/examples/d1d8b6e642db1a7c70dbbf0fe6d8e92d.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/sparse-vector-query.asciidoc:195 +// query-dsl/sparse-vector-query.asciidoc:203 [source, python] ---- diff --git a/docs/examples/d260225cf97e068ead2a8a6bb5aefd90.asciidoc b/docs/examples/d260225cf97e068ead2a8a6bb5aefd90.asciidoc index 691f89eb5..7aaf95c43 100644 --- a/docs/examples/d260225cf97e068ead2a8a6bb5aefd90.asciidoc +++ b/docs/examples/d260225cf97e068ead2a8a6bb5aefd90.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// analysis/analyzers/lang-analyzer.asciidoc:1551 +// analysis/analyzers/lang-analyzer.asciidoc:1550 [source, python] ---- diff --git a/docs/examples/d3a0f648d0fd50b54a4e9ebe363c5047.asciidoc b/docs/examples/d3a0f648d0fd50b54a4e9ebe363c5047.asciidoc index fdf783f2b..693ffa099 100644 --- a/docs/examples/d3a0f648d0fd50b54a4e9ebe363c5047.asciidoc +++ b/docs/examples/d3a0f648d0fd50b54a4e9ebe363c5047.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/search-your-data/retrievers-examples.asciidoc:221 +// search/search-your-data/retrievers-examples.asciidoc:226 [source, python] ---- diff --git a/docs/examples/d3dccdb15822e971ededb9f6f7d8ada1.asciidoc b/docs/examples/d3dccdb15822e971ededb9f6f7d8ada1.asciidoc index f3ce80185..c2b12bf6e 100644 --- a/docs/examples/d3dccdb15822e971ededb9f6f7d8ada1.asciidoc +++ b/docs/examples/d3dccdb15822e971ededb9f6f7d8ada1.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/query-string-query.asciidoc:354 +// query-dsl/query-string-query.asciidoc:357 [source, python] ---- diff --git a/docs/examples/d5dcddc6398b473b6ad9bce5c6adf986.asciidoc b/docs/examples/d5dcddc6398b473b6ad9bce5c6adf986.asciidoc index a432416ab..6f5abb838 100644 --- a/docs/examples/d5dcddc6398b473b6ad9bce5c6adf986.asciidoc +++ b/docs/examples/d5dcddc6398b473b6ad9bce5c6adf986.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/search-your-data/paginate-search-results.asciidoc:435 +// search/search-your-data/paginate-search-results.asciidoc:450 [source, python] ---- diff --git a/docs/examples/d603e76ab70131f7ec6b08758f95a0e3.asciidoc b/docs/examples/d603e76ab70131f7ec6b08758f95a0e3.asciidoc index b2a1f1635..340a46837 100644 --- a/docs/examples/d603e76ab70131f7ec6b08758f95a0e3.asciidoc +++ b/docs/examples/d603e76ab70131f7ec6b08758f95a0e3.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// cat/recovery.asciidoc:148 +// cat/recovery.asciidoc:244 [source, python] ---- diff --git a/docs/examples/d6a21afa4a94b9baa734eac430940bcf.asciidoc b/docs/examples/d6a21afa4a94b9baa734eac430940bcf.asciidoc index 44333100e..077f80277 100644 --- a/docs/examples/d6a21afa4a94b9baa734eac430940bcf.asciidoc +++ b/docs/examples/d6a21afa4a94b9baa734eac430940bcf.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// connector/apis/list-connectors-api.asciidoc:95 +// connector/apis/list-connectors-api.asciidoc:92 [source, python] ---- diff --git a/docs/examples/d6a4548b29e939fb197189c20c7c016f.asciidoc b/docs/examples/d6a4548b29e939fb197189c20c7c016f.asciidoc deleted file mode 100644 index 55232f34a..000000000 --- a/docs/examples/d6a4548b29e939fb197189c20c7c016f.asciidoc +++ /dev/null @@ -1,17 +0,0 @@ -// This file is autogenerated, DO NOT EDIT -// inference/elastic-infer-service.asciidoc:115 - -[source, python] ----- -resp = client.inference.put( - task_type="chat_completion", - inference_id="chat-completion-endpoint", - inference_config={ - "service": "elastic", - "service_settings": { - "model_id": "model-1" - } - }, -) -print(resp) ----- diff --git a/docs/examples/d7919fb6f4d02dde1390775eb8365b79.asciidoc b/docs/examples/d7919fb6f4d02dde1390775eb8365b79.asciidoc index 3103cc120..a22bd28f0 100644 --- a/docs/examples/d7919fb6f4d02dde1390775eb8365b79.asciidoc +++ b/docs/examples/d7919fb6f4d02dde1390775eb8365b79.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/text.asciidoc:335 +// mapping/types/text.asciidoc:341 [source, python] ---- diff --git a/docs/examples/d7a55a7c491e97079e429483085f1d58.asciidoc b/docs/examples/d7a55a7c491e97079e429483085f1d58.asciidoc index a09d7affa..4ab78399a 100644 --- a/docs/examples/d7a55a7c491e97079e429483085f1d58.asciidoc +++ b/docs/examples/d7a55a7c491e97079e429483085f1d58.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc:60 +// data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc:68 [source, python] ---- diff --git a/docs/examples/d7a5b0159ffdcdd1ab9078b38829a08b.asciidoc b/docs/examples/d7a5b0159ffdcdd1ab9078b38829a08b.asciidoc index 1992809fe..a87336b58 100644 --- a/docs/examples/d7a5b0159ffdcdd1ab9078b38829a08b.asciidoc +++ b/docs/examples/d7a5b0159ffdcdd1ab9078b38829a08b.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/semantic-query.asciidoc:87 +// query-dsl/semantic-query.asciidoc:85 [source, python] ---- diff --git a/docs/examples/d7fe687201ac87b307cd06ed015dd317.asciidoc b/docs/examples/d7fe687201ac87b307cd06ed015dd317.asciidoc index e713f4ada..c1c6f8b30 100644 --- a/docs/examples/d7fe687201ac87b307cd06ed015dd317.asciidoc +++ b/docs/examples/d7fe687201ac87b307cd06ed015dd317.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// indices/put-mapping.asciidoc:288 +// indices/put-mapping.asciidoc:294 [source, python] ---- diff --git a/docs/examples/d803ed00d8f45f81c33e415e1c1ecb8c.asciidoc b/docs/examples/d803ed00d8f45f81c33e415e1c1ecb8c.asciidoc index 8c7f478d6..e938c437f 100644 --- a/docs/examples/d803ed00d8f45f81c33e415e1c1ecb8c.asciidoc +++ b/docs/examples/d803ed00d8f45f81c33e415e1c1ecb8c.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// data-streams/change-mappings-and-settings.asciidoc:642 +// data-streams/change-mappings-and-settings.asciidoc:646 [source, python] ---- diff --git a/docs/examples/d8496fa0e5a394fd758617ed6a6c956f.asciidoc b/docs/examples/d8496fa0e5a394fd758617ed6a6c956f.asciidoc index 9b1fae207..7b786e31e 100644 --- a/docs/examples/d8496fa0e5a394fd758617ed6a6c956f.asciidoc +++ b/docs/examples/d8496fa0e5a394fd758617ed6a6c956f.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/percolate-query.asciidoc:373 +// query-dsl/percolate-query.asciidoc:371 [source, python] ---- diff --git a/docs/examples/d851282dba548251d10db5954a339307.asciidoc b/docs/examples/d851282dba548251d10db5954a339307.asciidoc index e47caa602..c81b69f08 100644 --- a/docs/examples/d851282dba548251d10db5954a339307.asciidoc +++ b/docs/examples/d851282dba548251d10db5954a339307.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/search-your-data/paginate-search-results.asciidoc:136 +// search/search-your-data/paginate-search-results.asciidoc:151 [source, python] ---- diff --git a/docs/examples/da8db0769dff7305f178c12b1111bc99.asciidoc b/docs/examples/da8db0769dff7305f178c12b1111bc99.asciidoc index 5a683b93f..12d20c3d4 100644 --- a/docs/examples/da8db0769dff7305f178c12b1111bc99.asciidoc +++ b/docs/examples/da8db0769dff7305f178c12b1111bc99.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/simple-query-string-query.asciidoc:262 +// query-dsl/simple-query-string-query.asciidoc:265 [source, python] ---- diff --git a/docs/examples/dc33160f4087443f867080a8f5b2cfbd.asciidoc b/docs/examples/dc33160f4087443f867080a8f5b2cfbd.asciidoc index 2cc88b81d..c48efe95c 100644 --- a/docs/examples/dc33160f4087443f867080a8f5b2cfbd.asciidoc +++ b/docs/examples/dc33160f4087443f867080a8f5b2cfbd.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// esql/esql-rest.asciidoc:176 +// esql/esql-rest.asciidoc:180 [source, python] ---- diff --git a/docs/examples/dcf82f3aacae49c0bb4ccbc673f13e9f.asciidoc b/docs/examples/dcf82f3aacae49c0bb4ccbc673f13e9f.asciidoc index c98d06e98..87e687d7e 100644 --- a/docs/examples/dcf82f3aacae49c0bb4ccbc673f13e9f.asciidoc +++ b/docs/examples/dcf82f3aacae49c0bb4ccbc673f13e9f.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/search-your-data/knn-search.asciidoc:1202 +// search/search-your-data/knn-search.asciidoc:1200 [source, python] ---- diff --git a/docs/examples/dd16c9c981551c9da47ebb5ef5105fa0.asciidoc b/docs/examples/dd16c9c981551c9da47ebb5ef5105fa0.asciidoc deleted file mode 100644 index 8ffce9166..000000000 --- a/docs/examples/dd16c9c981551c9da47ebb5ef5105fa0.asciidoc +++ /dev/null @@ -1,57 +0,0 @@ -// This file is autogenerated, DO NOT EDIT -// migration/migrate_9_0.asciidoc:535 - -[source, python] ----- -resp = client.indices.update_aliases( - actions=[ - { - "add": { - "index": ".reindexed-v9-ml-anomalies-custom-example", - "alias": ".ml-anomalies-example1", - "filter": { - "term": { - "job_id": { - "value": "example1" - } - } - }, - "is_hidden": True - } - }, - { - "add": { - "index": ".reindexed-v9-ml-anomalies-custom-example", - "alias": ".ml-anomalies-example2", - "filter": { - "term": { - "job_id": { - "value": "example2" - } - } - }, - "is_hidden": True - } - }, - { - "remove": { - "index": ".ml-anomalies-custom-example", - "aliases": ".ml-anomalies-*" - } - }, - { - "remove_index": { - "index": ".ml-anomalies-custom-example" - } - }, - { - "add": { - "index": ".reindexed-v9-ml-anomalies-custom-example", - "alias": ".ml-anomalies-custom-example", - "is_hidden": True - } - } - ], -) -print(resp) ----- diff --git a/docs/examples/dddb6a6ebd145f8411c5b4910d332f87.asciidoc b/docs/examples/dddb6a6ebd145f8411c5b4910d332f87.asciidoc index 79eadab36..79c3d4e11 100644 --- a/docs/examples/dddb6a6ebd145f8411c5b4910d332f87.asciidoc +++ b/docs/examples/dddb6a6ebd145f8411c5b4910d332f87.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// esql/multivalued-fields.asciidoc:233 +// esql/multivalued-fields.asciidoc:243 [source, python] ---- diff --git a/docs/examples/df04e2e9af66d5e30b1bfdbd458cab13.asciidoc b/docs/examples/df04e2e9af66d5e30b1bfdbd458cab13.asciidoc index ce180edf2..e4d62925c 100644 --- a/docs/examples/df04e2e9af66d5e30b1bfdbd458cab13.asciidoc +++ b/docs/examples/df04e2e9af66d5e30b1bfdbd458cab13.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// how-to/size-your-shards.asciidoc:239 +// how-to/size-your-shards.asciidoc:238 [source, python] ---- diff --git a/docs/examples/e017c2de6f93a8dd97f5c6e002dd5c4f.asciidoc b/docs/examples/e017c2de6f93a8dd97f5c6e002dd5c4f.asciidoc deleted file mode 100644 index ad5ef4204..000000000 --- a/docs/examples/e017c2de6f93a8dd97f5c6e002dd5c4f.asciidoc +++ /dev/null @@ -1,28 +0,0 @@ -// This file is autogenerated, DO NOT EDIT -// ml/anomaly-detection/apis/post-calendar-event.asciidoc:132 - -[source, python] ----- -resp = client.ml.post_calendar_events( - calendar_id="dst-germany", - events=[ - { - "description": "Fall 2024", - "start_time": 1729994400000, - "end_time": 1730167200000, - "skip_result": False, - "skip_model_update": False, - "force_time_shift": -3600 - }, - { - "description": "Spring 2025", - "start_time": 1743296400000, - "end_time": 1743469200000, - "skip_result": False, - "skip_model_update": False, - "force_time_shift": 3600 - } - ], -) -print(resp) ----- diff --git a/docs/examples/e0db84e8f7dce49b9301ce997ae831dd.asciidoc b/docs/examples/e0db84e8f7dce49b9301ce997ae831dd.asciidoc new file mode 100644 index 000000000..b97672753 --- /dev/null +++ b/docs/examples/e0db84e8f7dce49b9301ce997ae831dd.asciidoc @@ -0,0 +1,22 @@ +// This file is autogenerated, DO NOT EDIT +// search/retriever.asciidoc:1128 + +[source, python] +---- +resp = client.search( + index="books", + retriever={ + "linear": { + "query": "elasticsearch", + "fields": [ + "title^3", + "description^2", + "title_semantic", + "description_semantic^2" + ], + "normalizer": "minmax" + } + }, +) +print(resp) +---- diff --git a/docs/examples/3649194a97d265a3bc758f8b38f7561e.asciidoc b/docs/examples/e197ab718ad6c3cfbf2dd908f0ccd60f.asciidoc similarity index 100% rename from docs/examples/3649194a97d265a3bc758f8b38f7561e.asciidoc rename to docs/examples/e197ab718ad6c3cfbf2dd908f0ccd60f.asciidoc diff --git a/docs/examples/e1c08f5774e81da31cd75aa1bdc2c548.asciidoc b/docs/examples/e1c08f5774e81da31cd75aa1bdc2c548.asciidoc index 6d6f4a99e..285006ecf 100644 --- a/docs/examples/e1c08f5774e81da31cd75aa1bdc2c548.asciidoc +++ b/docs/examples/e1c08f5774e81da31cd75aa1bdc2c548.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/percolate-query.asciidoc:688 +// query-dsl/percolate-query.asciidoc:686 [source, python] ---- diff --git a/docs/examples/e308899a306e61d1a590868308689955.asciidoc b/docs/examples/e308899a306e61d1a590868308689955.asciidoc index 8773d24c2..911aa3909 100644 --- a/docs/examples/e308899a306e61d1a590868308689955.asciidoc +++ b/docs/examples/e308899a306e61d1a590868308689955.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// ingest/processors/ip-location.asciidoc:136 +// ingest/processors/ip-location.asciidoc:151 [source, python] ---- diff --git a/docs/examples/e318759f4cc932154f540b748e85d6e1.asciidoc b/docs/examples/e318759f4cc932154f540b748e85d6e1.asciidoc new file mode 100644 index 000000000..5f245894c --- /dev/null +++ b/docs/examples/e318759f4cc932154f540b748e85d6e1.asciidoc @@ -0,0 +1,22 @@ +// This file is autogenerated, DO NOT EDIT +// search/retriever.asciidoc:1040 + +[source, python] +---- +resp = client.search( + index="books", + retriever={ + "linear": { + "query": "elasticsearch", + "fields": [ + "title^3", + "description^2", + "title_semantic", + "description_semantic^2" + ], + "normalizer": "minmax" + } + }, +) +print(resp) +---- diff --git a/docs/examples/e3fe842951dc873d7d00c8f6a010c53f.asciidoc b/docs/examples/e3fe842951dc873d7d00c8f6a010c53f.asciidoc index d9002cd4d..0109eed73 100644 --- a/docs/examples/e3fe842951dc873d7d00c8f6a010c53f.asciidoc +++ b/docs/examples/e3fe842951dc873d7d00c8f6a010c53f.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// troubleshooting/common-issues/task-queue-backlog.asciidoc:90 +// troubleshooting/common-issues/task-queue-backlog.asciidoc:67 [source, python] ---- diff --git a/docs/examples/e47d1e903b5f7ce07d0aa79127373b7d.asciidoc b/docs/examples/e47d1e903b5f7ce07d0aa79127373b7d.asciidoc new file mode 100644 index 000000000..6105eda1f --- /dev/null +++ b/docs/examples/e47d1e903b5f7ce07d0aa79127373b7d.asciidoc @@ -0,0 +1,41 @@ +// This file is autogenerated, DO NOT EDIT +// data-streams/failure-store-recipes.asciidoc:920 + +[source, python] +---- +resp = client.search( + index="my-datastream-indexing-example::failures", + query={ + "bool": { + "must_not": [ + { + "exists": { + "field": "error.pipeline" + } + } + ], + "must": [ + { + "match": { + "document.index": "my-datastream-indexing-example" + } + }, + { + "match": { + "error.type": "document_parsing_exception" + } + }, + { + "range": { + "@timestamp": { + "gt": "2025-05-01T00:00:00Z", + "lte": "2025-05-02T00:00:00Z" + } + } + } + ] + } + }, +) +print(resp) +---- diff --git a/docs/examples/e4b6a6a921c97b4c0bbe97bd89f4cf33.asciidoc b/docs/examples/e4b6a6a921c97b4c0bbe97bd89f4cf33.asciidoc index fcc4bd7da..a57a290f7 100644 --- a/docs/examples/e4b6a6a921c97b4c0bbe97bd89f4cf33.asciidoc +++ b/docs/examples/e4b6a6a921c97b4c0bbe97bd89f4cf33.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// data-streams/promote-data-stream-api.asciidoc:32 +// data-streams/promote-data-stream-api.asciidoc:28 [source, python] ---- diff --git a/docs/examples/e4be53736bcc02b03068fd72fdbfe271.asciidoc b/docs/examples/e4be53736bcc02b03068fd72fdbfe271.asciidoc index ee96d3031..6a863ea8c 100644 --- a/docs/examples/e4be53736bcc02b03068fd72fdbfe271.asciidoc +++ b/docs/examples/e4be53736bcc02b03068fd72fdbfe271.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// indices/put-mapping.asciidoc:114 +// indices/put-mapping.asciidoc:120 [source, python] ---- diff --git a/docs/examples/e563da4a2054efcdf0e53ead11caac1d.asciidoc b/docs/examples/e563da4a2054efcdf0e53ead11caac1d.asciidoc new file mode 100644 index 000000000..974feda9c --- /dev/null +++ b/docs/examples/e563da4a2054efcdf0e53ead11caac1d.asciidoc @@ -0,0 +1,11 @@ +// This file is autogenerated, DO NOT EDIT +// search/search-your-data/semantic-text-hybrid-search:219 + +[source, python] +---- +resp = client.esql.query( + format="txt", + query="\n FROM semantic-embeddings METADATA _score \n | WHERE content: \"muscle soreness running?\" OR match(semantic_text, \"How to avoid muscle soreness while running?\", { \"boost\": 0.75 }) \n | SORT _score DESC \n | LIMIT 1000\n ", +) +print(resp) +---- diff --git a/docs/examples/e6f6d3aeea7ecea47cfd5c3d727f7004.asciidoc b/docs/examples/e6f6d3aeea7ecea47cfd5c3d727f7004.asciidoc index 28e0f8426..a5824b98c 100644 --- a/docs/examples/e6f6d3aeea7ecea47cfd5c3d727f7004.asciidoc +++ b/docs/examples/e6f6d3aeea7ecea47cfd5c3d727f7004.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/search-your-data/retrievers-examples.asciidoc:448 +// search/search-your-data/retrievers-examples.asciidoc:719 [source, python] ---- diff --git a/docs/examples/e715fb8c792bf09ac98f0ceca99beb84.asciidoc b/docs/examples/e715fb8c792bf09ac98f0ceca99beb84.asciidoc deleted file mode 100644 index e799bf64f..000000000 --- a/docs/examples/e715fb8c792bf09ac98f0ceca99beb84.asciidoc +++ /dev/null @@ -1,10 +0,0 @@ -// This file is autogenerated, DO NOT EDIT -// migration/migrate_9_0.asciidoc:345 - -[source, python] ----- -resp = client.migration.deprecations( - index=".ml-anomalies-*", -) -print(resp) ----- diff --git a/docs/examples/e821d27a8b810821707ba860e31f8b78.asciidoc b/docs/examples/e821d27a8b810821707ba860e31f8b78.asciidoc index d5cfc9760..2151278c1 100644 --- a/docs/examples/e821d27a8b810821707ba860e31f8b78.asciidoc +++ b/docs/examples/e821d27a8b810821707ba860e31f8b78.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// indices/put-mapping.asciidoc:238 +// indices/put-mapping.asciidoc:244 [source, python] ---- diff --git a/docs/examples/e8ea65153d7775f25b08dfdfe6954498.asciidoc b/docs/examples/e8ea65153d7775f25b08dfdfe6954498.asciidoc index 089cb7473..a3539abb9 100644 --- a/docs/examples/e8ea65153d7775f25b08dfdfe6954498.asciidoc +++ b/docs/examples/e8ea65153d7775f25b08dfdfe6954498.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/simple-query-string-query.asciidoc:245 +// query-dsl/simple-query-string-query.asciidoc:248 [source, python] ---- diff --git a/docs/examples/e95e61988dc3073a007f7b7445dd233b.asciidoc b/docs/examples/e95e61988dc3073a007f7b7445dd233b.asciidoc index 58ddd86d2..61c72e9d6 100644 --- a/docs/examples/e95e61988dc3073a007f7b7445dd233b.asciidoc +++ b/docs/examples/e95e61988dc3073a007f7b7445dd233b.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc:192 +// data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc:204 [source, python] ---- diff --git a/docs/examples/ea68e3428cc2ca3455bf312d09451489.asciidoc b/docs/examples/ea68e3428cc2ca3455bf312d09451489.asciidoc index a6ec582ef..af12d96b8 100644 --- a/docs/examples/ea68e3428cc2ca3455bf312d09451489.asciidoc +++ b/docs/examples/ea68e3428cc2ca3455bf312d09451489.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/search-your-data/knn-search.asciidoc:1244 +// search/search-your-data/knn-search.asciidoc:1242 [source, python] ---- diff --git a/docs/examples/eb54506fbc71a7d250e86b22d0600114.asciidoc b/docs/examples/eb54506fbc71a7d250e86b22d0600114.asciidoc index 1b7faae1f..8168d2136 100644 --- a/docs/examples/eb54506fbc71a7d250e86b22d0600114.asciidoc +++ b/docs/examples/eb54506fbc71a7d250e86b22d0600114.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// connector/apis/list-connectors-api.asciidoc:117 +// connector/apis/list-connectors-api.asciidoc:114 [source, python] ---- diff --git a/docs/examples/ec135f0cc0d3f526df68000b2a95c65b.asciidoc b/docs/examples/ec135f0cc0d3f526df68000b2a95c65b.asciidoc deleted file mode 100644 index 10f0be019..000000000 --- a/docs/examples/ec135f0cc0d3f526df68000b2a95c65b.asciidoc +++ /dev/null @@ -1,12 +0,0 @@ -// This file is autogenerated, DO NOT EDIT -// migration/migrate_9_0.asciidoc:403 - -[source, python] ----- -resp = client.indices.create_from( - source=".ml-anomalies-custom-example", - dest=".reindexed-v9-ml-anomalies-custom-example", - create_from=None, -) -print(resp) ----- diff --git a/docs/examples/ec4b43c3ebd8816799fa004596b2f0cb.asciidoc b/docs/examples/ec4b43c3ebd8816799fa004596b2f0cb.asciidoc index effaf77bd..cfc579861 100644 --- a/docs/examples/ec4b43c3ebd8816799fa004596b2f0cb.asciidoc +++ b/docs/examples/ec4b43c3ebd8816799fa004596b2f0cb.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// index-modules/slowlog.asciidoc:232 +// index-modules/slowlog.asciidoc:233 [source, python] ---- diff --git a/docs/examples/ec5a2ce156c36aaa267fa31dd9367307.asciidoc b/docs/examples/ec5a2ce156c36aaa267fa31dd9367307.asciidoc index 08b09c56b..2b0f00fd7 100644 --- a/docs/examples/ec5a2ce156c36aaa267fa31dd9367307.asciidoc +++ b/docs/examples/ec5a2ce156c36aaa267fa31dd9367307.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// transform/checkpoints.asciidoc:80 +// transform/checkpoints.asciidoc:82 [source, python] ---- diff --git a/docs/examples/edb25dc0162b039d477cb06aed2d6275.asciidoc b/docs/examples/edb25dc0162b039d477cb06aed2d6275.asciidoc index 76902ca50..835de5295 100644 --- a/docs/examples/edb25dc0162b039d477cb06aed2d6275.asciidoc +++ b/docs/examples/edb25dc0162b039d477cb06aed2d6275.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/sparse-vector-query.asciidoc:152 +// query-dsl/sparse-vector-query.asciidoc:160 [source, python] ---- diff --git a/docs/examples/ef866d06ffd96099957b077a53127c6c.asciidoc b/docs/examples/ef866d06ffd96099957b077a53127c6c.asciidoc new file mode 100644 index 000000000..20e857dc0 --- /dev/null +++ b/docs/examples/ef866d06ffd96099957b077a53127c6c.asciidoc @@ -0,0 +1,17 @@ +// This file is autogenerated, DO NOT EDIT +// mapping/types/semantic-text.asciidoc:182 + +[source, python] +---- +resp = client.index( + index="test-index", + id="1", + document={ + "my_semantic_field": [ + "my first chunk", + "my second chunk" + ] + }, +) +print(resp) +---- diff --git a/docs/examples/f097c02541056f3c0fc855e7bbeef8a8.asciidoc b/docs/examples/f097c02541056f3c0fc855e7bbeef8a8.asciidoc index dedc1caaa..373fbf824 100644 --- a/docs/examples/f097c02541056f3c0fc855e7bbeef8a8.asciidoc +++ b/docs/examples/f097c02541056f3c0fc855e7bbeef8a8.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// analysis/analyzers/lang-analyzer.asciidoc:1746 +// analysis/analyzers/lang-analyzer.asciidoc:1745 [source, python] ---- diff --git a/docs/examples/f2227017e46c51940829d64e08474476.asciidoc b/docs/examples/f2227017e46c51940829d64e08474476.asciidoc new file mode 100644 index 000000000..380defed3 --- /dev/null +++ b/docs/examples/f2227017e46c51940829d64e08474476.asciidoc @@ -0,0 +1,18 @@ +// This file is autogenerated, DO NOT EDIT +// data-streams/failure-store-recipes.asciidoc:1026 + +[source, python] +---- +resp = client.ingest.put_pipeline( + id="my-datastream-remediation-pipeline", + processors=[ + { + "script": { + "lang": "painless", + "source": "\n ctx._index = ctx.document.index; \n ctx._routing = ctx.document.routing;\n def s = ctx.document.source; \n ctx.remove(\"error\"); \n ctx.remove(\"document\"); \n for (e in s.entrySet()) { \n ctx[e.key] = e.value;\n }" + } + } + ], +) +print(resp) +---- diff --git a/docs/examples/f298c4eb50ea97b34c57f8756eb350d3.asciidoc b/docs/examples/f298c4eb50ea97b34c57f8756eb350d3.asciidoc index e6b401225..53ca9632d 100644 --- a/docs/examples/f298c4eb50ea97b34c57f8756eb350d3.asciidoc +++ b/docs/examples/f298c4eb50ea97b34c57f8756eb350d3.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// cat/pending_tasks.asciidoc:57 +// cat/pending_tasks.asciidoc:58 [source, python] ---- diff --git a/docs/examples/f29b2674299ddf51a25ed87619025ede.asciidoc b/docs/examples/f29b2674299ddf51a25ed87619025ede.asciidoc index dfae20141..ce3e50526 100644 --- a/docs/examples/f29b2674299ddf51a25ed87619025ede.asciidoc +++ b/docs/examples/f29b2674299ddf51a25ed87619025ede.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// rollup/apis/rollup-search.asciidoc:122 +// rollup/apis/rollup-search.asciidoc:121 [source, python] ---- diff --git a/docs/examples/f2a5f77f929cc7b893b80f4bd5b1a192.asciidoc b/docs/examples/f2a5f77f929cc7b893b80f4bd5b1a192.asciidoc index 322a5d096..864a3b8ba 100644 --- a/docs/examples/f2a5f77f929cc7b893b80f4bd5b1a192.asciidoc +++ b/docs/examples/f2a5f77f929cc7b893b80f4bd5b1a192.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// connector/apis/get-connector-api.asciidoc:74 +// connector/apis/get-connector-api.asciidoc:71 [source, python] ---- diff --git a/docs/examples/f32f0c19b42de3b87dd764fe4ca17e7c.asciidoc b/docs/examples/f32f0c19b42de3b87dd764fe4ca17e7c.asciidoc index 34cd44cc4..cb8604ae9 100644 --- a/docs/examples/f32f0c19b42de3b87dd764fe4ca17e7c.asciidoc +++ b/docs/examples/f32f0c19b42de3b87dd764fe4ca17e7c.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/query-string-query.asciidoc:420 +// query-dsl/query-string-query.asciidoc:423 [source, python] ---- diff --git a/docs/examples/f39512478cae2db8f4566a1e4af9e8f5.asciidoc b/docs/examples/f39512478cae2db8f4566a1e4af9e8f5.asciidoc index 569f9d2ad..271a51425 100644 --- a/docs/examples/f39512478cae2db8f4566a1e4af9e8f5.asciidoc +++ b/docs/examples/f39512478cae2db8f4566a1e4af9e8f5.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// rollup/rollup-getting-started.asciidoc:217 +// rollup/rollup-getting-started.asciidoc:213 [source, python] ---- diff --git a/docs/examples/f3fb52680482925c202c2e2f8af6f044.asciidoc b/docs/examples/f3fb52680482925c202c2e2f8af6f044.asciidoc index bd1263028..260106272 100644 --- a/docs/examples/f3fb52680482925c202c2e2f8af6f044.asciidoc +++ b/docs/examples/f3fb52680482925c202c2e2f8af6f044.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// how-to/size-your-shards.asciidoc:459 +// how-to/size-your-shards.asciidoc:458 [source, python] ---- diff --git a/docs/examples/b3f442a7d9eb391121dcab991787f9d6.asciidoc b/docs/examples/f4c0e6a9b58b640200d02047f5aa36bf.asciidoc similarity index 70% rename from docs/examples/b3f442a7d9eb391121dcab991787f9d6.asciidoc rename to docs/examples/f4c0e6a9b58b640200d02047f5aa36bf.asciidoc index 0f1dbf105..ab3c64711 100644 --- a/docs/examples/b3f442a7d9eb391121dcab991787f9d6.asciidoc +++ b/docs/examples/f4c0e6a9b58b640200d02047f5aa36bf.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/binary.asciidoc:68 +// mapping/types/keyword.asciidoc:292 [source, python] ---- @@ -16,9 +16,9 @@ resp = client.indices.create( }, mappings={ "properties": { - "binary": { - "type": "binary", - "doc_values": True + "kwd": { + "type": "keyword", + "null_value": "NA" } } }, @@ -29,9 +29,10 @@ resp1 = client.index( index="idx", id="1", document={ - "binary": [ - "IAA=", - "EAA=" + "kwd": [ + "foo", + None, + "bar" ] }, ) diff --git a/docs/examples/f60d6a7a9e7fd63f9ce1384f88c044cb.asciidoc b/docs/examples/f60d6a7a9e7fd63f9ce1384f88c044cb.asciidoc new file mode 100644 index 000000000..518951a31 --- /dev/null +++ b/docs/examples/f60d6a7a9e7fd63f9ce1384f88c044cb.asciidoc @@ -0,0 +1,11 @@ +// This file is autogenerated, DO NOT EDIT +// search/search-your-data/semantic-search-semantic-text.asciidoc:166 + +[source, python] +---- +resp = client.esql.query( + format="txt", + query="\n FROM semantic-embeddings METADATA _score \n | WHERE content: \"How to avoid muscle soreness while running?\" \n | SORT _score DESC \n | LIMIT 1000 \n ", +) +print(resp) +---- diff --git a/docs/examples/f6566395f85d3afe917228643d7318d6.asciidoc b/docs/examples/f6566395f85d3afe917228643d7318d6.asciidoc index c5bc986e9..1a38176a3 100644 --- a/docs/examples/f6566395f85d3afe917228643d7318d6.asciidoc +++ b/docs/examples/f6566395f85d3afe917228643d7318d6.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// how-to/size-your-shards.asciidoc:469 +// how-to/size-your-shards.asciidoc:468 [source, python] ---- diff --git a/docs/examples/f6d6d1f5c84cf4f6ccd71a84d193e483.asciidoc b/docs/examples/f6d6d1f5c84cf4f6ccd71a84d193e483.asciidoc new file mode 100644 index 000000000..fbfba946c --- /dev/null +++ b/docs/examples/f6d6d1f5c84cf4f6ccd71a84d193e483.asciidoc @@ -0,0 +1,24 @@ +// This file is autogenerated, DO NOT EDIT +// quickstart/esql-search-tutorial.asciidoc:340 + +[source, python] +---- +resp = client.index( + index="cooking_blog", + document={ + "title": "Mediterranean Quinoa Bowl", + "semantic_description": "A protein-rich bowl with quinoa, chickpeas, fresh vegetables, and herbs. This nutritious Mediterranean-inspired dish is easy to prepare and perfect for a quick, healthy dinner.", + "author": "Jamie Oliver", + "date": "2023-06-01", + "category": "Main Course", + "tags": [ + "vegetarian", + "healthy", + "mediterranean", + "quinoa" + ], + "rating": 4.7 + }, +) +print(resp) +---- diff --git a/docs/examples/f70a54cd9a9f4811bf962e469f2ca2ea.asciidoc b/docs/examples/f70a54cd9a9f4811bf962e469f2ca2ea.asciidoc index 9506f1299..f86a6169f 100644 --- a/docs/examples/f70a54cd9a9f4811bf962e469f2ca2ea.asciidoc +++ b/docs/examples/f70a54cd9a9f4811bf962e469f2ca2ea.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/bool-query.asciidoc:91 +// query-dsl/bool-query.asciidoc:134 [source, python] ---- diff --git a/docs/examples/f7ed127048694a1f5735e07a208b93ad.asciidoc b/docs/examples/f7ed127048694a1f5735e07a208b93ad.asciidoc new file mode 100644 index 000000000..a1e5b3a69 --- /dev/null +++ b/docs/examples/f7ed127048694a1f5735e07a208b93ad.asciidoc @@ -0,0 +1,20 @@ +// This file is autogenerated, DO NOT EDIT +// data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc:15 + +[source, python] +---- +resp = client.indices.delete_data_stream( + name="dsl-data-stream", +) +print(resp) + +resp1 = client.indices.delete_index_template( + name="dsl-data-stream-template", +) +print(resp1) + +resp2 = client.ilm.delete_lifecycle( + name="pre-dsl-ilm-policy", +) +print(resp2) +---- diff --git a/docs/examples/f8a0010753b1ff563dc42d703902d2fa.asciidoc b/docs/examples/f8a0010753b1ff563dc42d703902d2fa.asciidoc index ef6a5206b..efde9a426 100644 --- a/docs/examples/f8a0010753b1ff563dc42d703902d2fa.asciidoc +++ b/docs/examples/f8a0010753b1ff563dc42d703902d2fa.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/bool-query.asciidoc:39 +// query-dsl/bool-query.asciidoc:32 [source, python] ---- diff --git a/docs/examples/f8cb1a04c2e487ff006b5ae0e1a7afbd.asciidoc b/docs/examples/f8cb1a04c2e487ff006b5ae0e1a7afbd.asciidoc index f851ff1bc..d66ed0a8c 100644 --- a/docs/examples/f8cb1a04c2e487ff006b5ae0e1a7afbd.asciidoc +++ b/docs/examples/f8cb1a04c2e487ff006b5ae0e1a7afbd.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// rollup/apis/rollup-caps.asciidoc:181 +// rollup/apis/rollup-caps.asciidoc:178 [source, python] ---- diff --git a/docs/examples/f8f960550104c33e00dc78bc8723ccef.asciidoc b/docs/examples/f8f960550104c33e00dc78bc8723ccef.asciidoc index 9b0699474..e79356e78 100644 --- a/docs/examples/f8f960550104c33e00dc78bc8723ccef.asciidoc +++ b/docs/examples/f8f960550104c33e00dc78bc8723ccef.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// quickstart/full-text-filtering-tutorial.asciidoc:42 +// quickstart/esql-search-tutorial.asciidoc:69 [source, python] ---- diff --git a/docs/examples/f96d8131e8a592fbf6dfd686173940a9.asciidoc b/docs/examples/f96d8131e8a592fbf6dfd686173940a9.asciidoc index 051fb6d52..7c9ed5b9c 100644 --- a/docs/examples/f96d8131e8a592fbf6dfd686173940a9.asciidoc +++ b/docs/examples/f96d8131e8a592fbf6dfd686173940a9.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// rest-api/watcher/update-settings.asciidoc:22 +// rest-api/watcher/update-settings.asciidoc:29 [source, python] ---- diff --git a/docs/examples/f994498dd6576be657dedce2822d2b9e.asciidoc b/docs/examples/f994498dd6576be657dedce2822d2b9e.asciidoc index b29501e73..88b368f7b 100644 --- a/docs/examples/f994498dd6576be657dedce2822d2b9e.asciidoc +++ b/docs/examples/f994498dd6576be657dedce2822d2b9e.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/search-your-data/semantic-text-hybrid-search:119 +// search/search-your-data/semantic-text-hybrid-search:126 [source, python] ---- diff --git a/docs/examples/fa88f6f5a7d728ec4f1d05244228cb09.asciidoc b/docs/examples/fa88f6f5a7d728ec4f1d05244228cb09.asciidoc index f123ea93c..c1a005182 100644 --- a/docs/examples/fa88f6f5a7d728ec4f1d05244228cb09.asciidoc +++ b/docs/examples/fa88f6f5a7d728ec4f1d05244228cb09.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/bool-query.asciidoc:110 +// query-dsl/bool-query.asciidoc:153 [source, python] ---- diff --git a/docs/examples/fa8eca1f33f0bfdbb497c906115ce8d7.asciidoc b/docs/examples/fa8eca1f33f0bfdbb497c906115ce8d7.asciidoc new file mode 100644 index 000000000..b18a47184 --- /dev/null +++ b/docs/examples/fa8eca1f33f0bfdbb497c906115ce8d7.asciidoc @@ -0,0 +1,11 @@ +// This file is autogenerated, DO NOT EDIT +// data-streams/failure-store.asciidoc:406 + +[source, python] +---- +resp = client.sql.query( + format="txt", + query="SELECT * FROM \"my-datastream::failures\" LIMIT 1", +) +print(resp) +---- diff --git a/docs/examples/fad26f4fb5a1bc9c38db33394e877d94.asciidoc b/docs/examples/fad26f4fb5a1bc9c38db33394e877d94.asciidoc index 3fb4bdc81..8c642c3db 100644 --- a/docs/examples/fad26f4fb5a1bc9c38db33394e877d94.asciidoc +++ b/docs/examples/fad26f4fb5a1bc9c38db33394e877d94.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// ml/df-analytics/apis/get-dfanalytics-stats.asciidoc:539 +// ml/df-analytics/apis/get-dfanalytics-stats.asciidoc:538 [source, python] ---- diff --git a/docs/examples/fb0152f6c70f647a8b6709969113486d.asciidoc b/docs/examples/fb0152f6c70f647a8b6709969113486d.asciidoc index 1548e7f1b..ae302dda7 100644 --- a/docs/examples/fb0152f6c70f647a8b6709969113486d.asciidoc +++ b/docs/examples/fb0152f6c70f647a8b6709969113486d.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/keyword.asciidoc:222 +// mapping/types/keyword.asciidoc:216 [source, python] ---- diff --git a/docs/examples/fe208d94ec93eabf3bd06139fa70701e.asciidoc b/docs/examples/fe208d94ec93eabf3bd06139fa70701e.asciidoc index f38b22cb3..21882266f 100644 --- a/docs/examples/fe208d94ec93eabf3bd06139fa70701e.asciidoc +++ b/docs/examples/fe208d94ec93eabf3bd06139fa70701e.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// rollup/migrating-to-downsampling.asciidoc:59 +// rollup/migrating-to-downsampling.asciidoc:58 [source, python] ---- diff --git a/docs/examples/fe54f3e53dbe7dee40ec3108a461d19a.asciidoc b/docs/examples/fe54f3e53dbe7dee40ec3108a461d19a.asciidoc index 3b0334fe2..a1cf06093 100644 --- a/docs/examples/fe54f3e53dbe7dee40ec3108a461d19a.asciidoc +++ b/docs/examples/fe54f3e53dbe7dee40ec3108a461d19a.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// security/authentication/jwt-realm.asciidoc:522 +// security/authentication/jwt-realm.asciidoc:532 [source, python] ---- diff --git a/docs/examples/fe6429d0d82174aa5acf95e96e237380.asciidoc b/docs/examples/fe6429d0d82174aa5acf95e96e237380.asciidoc index efcf594b4..2b0e615d4 100644 --- a/docs/examples/fe6429d0d82174aa5acf95e96e237380.asciidoc +++ b/docs/examples/fe6429d0d82174aa5acf95e96e237380.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/range.asciidoc:324 +// mapping/types/range.asciidoc:317 [source, python] ---- diff --git a/docs/examples/fe7169bab8e626f582c9ea87585d0f35.asciidoc b/docs/examples/fe7169bab8e626f582c9ea87585d0f35.asciidoc index 311ac7917..e78fb939b 100644 --- a/docs/examples/fe7169bab8e626f582c9ea87585d0f35.asciidoc +++ b/docs/examples/fe7169bab8e626f582c9ea87585d0f35.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/histogram.asciidoc:98 +// mapping/types/histogram.asciidoc:91 [source, python] ---- diff --git a/docs/guide/release-notes.asciidoc b/docs/guide/release-notes.asciidoc index c6fc0f39d..05b8f3f44 100644 --- a/docs/guide/release-notes.asciidoc +++ b/docs/guide/release-notes.asciidoc @@ -1,6 +1,37 @@ [[release-notes]] == Release notes +=== 8.19.2 (2025-10-28) + +### Enhancements + +- Add `flush_after_seconds` option to `streaming_bulk()` (https://github.com/elastic/elasticsearch-py/pull/3064[#3064]) + +### Bug Fixes + +- DSL: support passing inner documents as `AttrDict` instances (https://github.com/elastic/elasticsearch-py/pull/3080[#3080]) +- DSL: add some recently added field classes as top-level exports for the package (https://github.com/elastic/elasticsearch-py/pull/3078[#3078]) + +### API + +- Add `streams` namespace with `streams.logs_disable`, `streams.logs_enable`, `streams.status` APIs +- Add `indices.get_data_stream_settings` API +- Add `indices.put_data_stream_settings` API +- Add `bytes` and `time` parameters to various APIs in the `cat` namespace. +- Add `index_template` parameter to `indices.simulate_index_template` API +- Add `input_type` parameter to `inference.text_embedding` API +- Removed unsupported `size` parameter from `reindex` API + +### DSL + +- New `CartesianBounds`, `CartesianCentroid`, `ChangePoint` aggregations +- Add `p_value` parameter to `SignificantTerms` aggregation +- Add `fields` parameter to `SemanticText` field + +### Other + +- Add 3.14 to CI builds (https://github.com/elastic/elasticsearch-py/pull/3103[#3103]) + === 8.19.1 (2025-09-11) - ES|QL query builder integration with the DSL module (https://github.com/elastic/elasticsearch-py/pull/3058[#3058]) diff --git a/elasticsearch/_version.py b/elasticsearch/_version.py index b09795dbb..41c149a22 100644 --- a/elasticsearch/_version.py +++ b/elasticsearch/_version.py @@ -15,5 +15,5 @@ # specific language governing permissions and limitations # under the License. -__versionstr__ = "8.19.1" +__versionstr__ = "8.19.2" __es_specification_commit__ = "f4816bb41c52c1bfda93c48191f0a0e4e2d575be"