diff --git a/docs/examples/00fea15cbca83be9d5f1a024ff2ec708.asciidoc b/docs/examples/00fea15cbca83be9d5f1a024ff2ec708.asciidoc index d6ce47875..c9322a6a6 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:199 +// inference/service-elasticsearch.asciidoc:204 [source, python] ---- diff --git a/docs/examples/010d5e901a2690fa7b2396edbe6cd463.asciidoc b/docs/examples/010d5e901a2690fa7b2396edbe6cd463.asciidoc index 90bdb6112..c76a26693 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:162 +// ingest/common-log-format-example.asciidoc:161 [source, python] ---- diff --git a/docs/examples/015e6e6132b6d6d44bddb06bc3b316ed.asciidoc b/docs/examples/015e6e6132b6d6d44bddb06bc3b316ed.asciidoc index 2a6a12a51..1930760fd 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:1322 +// search/search-your-data/retrievers-examples.asciidoc:1051 [source, python] ---- diff --git a/docs/examples/0165d22da5f2fc7678392b31d8eb5566.asciidoc b/docs/examples/0165d22da5f2fc7678392b31d8eb5566.asciidoc index d2e7ad7ff..b716f8df7 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:1655 +// search/search-your-data/retrievers-examples.asciidoc:1363 [source, python] ---- diff --git a/docs/examples/01ae196538fac197eedbbf458a4ef31b.asciidoc b/docs/examples/01ae196538fac197eedbbf458a4ef31b.asciidoc index cf35df41e..e087a80ec 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:254 +// mapping/types/keyword.asciidoc:260 [source, python] ---- diff --git a/docs/examples/01b23f09d2b7f140faf649eadbbf3ac3.asciidoc b/docs/examples/01b23f09d2b7f140faf649eadbbf3ac3.asciidoc index 1f3839c3f..7d37ed747 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:85 +// indices/index-templates.asciidoc:86 [source, python] ---- diff --git a/docs/examples/01cd0ea360282a2c591a366679d7187d.asciidoc b/docs/examples/01cd0ea360282a2c591a366679d7187d.asciidoc index 79f5d0185..d52222ef9 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:60 +// troubleshooting/common-issues/task-queue-backlog.asciidoc:83 [source, python] ---- diff --git a/docs/examples/0246f73cc2ed3dfec577119e8cd15404.asciidoc b/docs/examples/0246f73cc2ed3dfec577119e8cd15404.asciidoc index 22265deef..670c9daa3 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:189 +// indices/put-mapping.asciidoc:183 [source, python] ---- diff --git a/docs/examples/02b6aa3e5652839f03de3a655854b897.asciidoc b/docs/examples/02b6aa3e5652839f03de3a655854b897.asciidoc index 99fe5374a..bc1939367 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:469 +// data-streams/downsampling-manual.asciidoc:466 [source, python] ---- diff --git a/docs/examples/0350410d11579f4e876c798ce1eaef5b.asciidoc b/docs/examples/0350410d11579f4e876c798ce1eaef5b.asciidoc index 3aad0b601..41f174407 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:563 +// query-dsl/percolate-query.asciidoc:565 [source, python] ---- diff --git a/docs/examples/03891265df2111a38e0b6b24c1b967e1.asciidoc b/docs/examples/03891265df2111a38e0b6b24c1b967e1.asciidoc index b3429bbde..cf65de095 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:288 +// rest-api/security/get-service-accounts.asciidoc:320 [source, python] ---- diff --git a/docs/examples/611c1e05f4ebb48a1a8c8488238ce34d.asciidoc b/docs/examples/0709a38613d2de90d418ce12b36af30e.asciidoc similarity index 74% rename from docs/examples/611c1e05f4ebb48a1a8c8488238ce34d.asciidoc rename to docs/examples/0709a38613d2de90d418ce12b36af30e.asciidoc index 33aa13fb3..340a95e60 100644 --- a/docs/examples/611c1e05f4ebb48a1a8c8488238ce34d.asciidoc +++ b/docs/examples/0709a38613d2de90d418ce12b36af30e.asciidoc @@ -3,8 +3,6 @@ [source, python] ---- -resp = client.cluster.reroute( - metric="none", -) +resp = client.cluster.reroute() print(resp) ---- diff --git a/docs/examples/0737ebaea33631f001fb3f4226948492.asciidoc b/docs/examples/0737ebaea33631f001fb3f4226948492.asciidoc index d4a082a27..8b47a2a5b 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:238 +// ingest/processors/geoip.asciidoc:237 [source, python] ---- diff --git a/docs/examples/074e4602d1ca54412380a40867d078bc.asciidoc b/docs/examples/074e4602d1ca54412380a40867d078bc.asciidoc index 0714cd63d..8eab49b0b 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:181 +// index-modules/slowlog.asciidoc:180 [source, python] ---- diff --git a/docs/examples/07dadb9b0a774bd8e7f3527cf8a44afc.asciidoc b/docs/examples/07dadb9b0a774bd8e7f3527cf8a44afc.asciidoc index 1994efccb..a2827083f 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:15 +// query-dsl/semantic-query.asciidoc:17 [source, python] ---- diff --git a/docs/examples/083b92e8ea264e49bf9fd40fc6a3094b.asciidoc b/docs/examples/083b92e8ea264e49bf9fd40fc6a3094b.asciidoc index ee247349f..6c94b6da2 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:259 +// inference/service-elasticsearch.asciidoc:264 [source, python] ---- diff --git a/docs/examples/0a650401134f07e40216f0d0d1a66a32.asciidoc b/docs/examples/0a650401134f07e40216f0d0d1a66a32.asciidoc index 79ea752ef..7dfc1b717 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:125 +// cat/allocation.asciidoc:126 [source, python] ---- diff --git a/docs/examples/0bc6155e0c88062a4d8490da49db3aa8.asciidoc b/docs/examples/0bc6155e0c88062a4d8490da49db3aa8.asciidoc index ddef8a6b5..77db1349e 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:1083 +// search/search-your-data/retrievers-examples.asciidoc:812 [source, python] ---- diff --git a/docs/examples/0bee07a581c5776e068f6f4efad5a399.asciidoc b/docs/examples/0bee07a581c5776e068f6f4efad5a399.asciidoc index 0b33c28da..5ef14fcc9 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:195 +// esql/esql-across-clusters.asciidoc:194 [source, python] ---- diff --git a/docs/examples/0c2d9ac7e3f28d4d802e21cbbbcfeb34.asciidoc b/docs/examples/0c2d9ac7e3f28d4d802e21cbbbcfeb34.asciidoc index 13c62b64c..1ccb32524 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:214 +// cat/recovery.asciidoc:118 [source, python] ---- diff --git a/docs/examples/0d689ac6e78be5d438f9b5d441be2b44.asciidoc b/docs/examples/0d689ac6e78be5d438f9b5d441be2b44.asciidoc index 00c710d69..89f2a7eeb 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:1462 +// search/search-your-data/retrievers-examples.asciidoc:1191 [source, python] ---- diff --git a/docs/examples/0dfa9733c94bc43c6f14c7b6984c98fb.asciidoc b/docs/examples/0dfa9733c94bc43c6f14c7b6984c98fb.asciidoc index eaf7b69ae..1501cad9e 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:112 +// cat/component-templates.asciidoc:113 [source, python] ---- diff --git a/docs/examples/0e31b8ad176b31028becf9500989bcbd.asciidoc b/docs/examples/0e31b8ad176b31028becf9500989bcbd.asciidoc index 3f84ecc3e..fed70ff60 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:123 +// inference/service-watsonx-ai.asciidoc:102 [source, python] ---- diff --git a/docs/examples/0e71a18d1aac61720cdc6b3f91fe643f.asciidoc b/docs/examples/0e71a18d1aac61720cdc6b3f91fe643f.asciidoc index d5adcaa23..51907cae9 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:156 +// query-dsl/simple-query-string-query.asciidoc:153 [source, python] ---- diff --git a/docs/examples/0f028f71f04c1d569fab402869565a84.asciidoc b/docs/examples/0f028f71f04c1d569fab402869565a84.asciidoc new file mode 100644 index 000000000..295df000b --- /dev/null +++ b/docs/examples/0f028f71f04c1d569fab402869565a84.asciidoc @@ -0,0 +1,15 @@ +// 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 a96668bfe..d76d2022a 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:60 +// indices/simulate-template.asciidoc:61 [source, python] ---- diff --git a/docs/examples/0fc4b589df5388da784c6d981e769e31.asciidoc b/docs/examples/0fc4b589df5388da784c6d981e769e31.asciidoc index 6c8b86ea6..e499f3289 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:154 +// indices/put-index-template-v1.asciidoc:155 [source, python] ---- diff --git a/docs/examples/103296e16b4233926ad1f07360385606.asciidoc b/docs/examples/103296e16b4233926ad1f07360385606.asciidoc index 8becee40d..311b42d6c 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:1793 +// analysis/analyzers/lang-analyzer.asciidoc:1794 [source, python] ---- diff --git a/docs/examples/10f0c8fed98455c460c374b50ffbb204.asciidoc b/docs/examples/10f0c8fed98455c460c374b50ffbb204.asciidoc index 7496a2077..5aedd6b3c 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:317 +// data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc:301 [source, python] ---- diff --git a/docs/examples/12433d2b637d002e8d5c9a1adce69d3b.asciidoc b/docs/examples/12433d2b637d002e8d5c9a1adce69d3b.asciidoc index f978c0bfa..3d588dde2 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:112 +// indices/put-mapping.asciidoc:106 [source, python] ---- diff --git a/docs/examples/12adea5d76f73d94d80d42f53f67563f.asciidoc b/docs/examples/12adea5d76f73d94d80d42f53f67563f.asciidoc new file mode 100644 index 000000000..18270ad1c --- /dev/null +++ b/docs/examples/12adea5d76f73d94d80d42f53f67563f.asciidoc @@ -0,0 +1,11 @@ +// 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/c38abc4b33115bce453748288837db8f.asciidoc b/docs/examples/134384b8c63cfbd8d762fb01757bb3f9.asciidoc similarity index 84% rename from docs/examples/c38abc4b33115bce453748288837db8f.asciidoc rename to docs/examples/134384b8c63cfbd8d762fb01757bb3f9.asciidoc index 2834455bc..ef8d5d6ba 100644 --- a/docs/examples/c38abc4b33115bce453748288837db8f.asciidoc +++ b/docs/examples/134384b8c63cfbd8d762fb01757bb3f9.asciidoc @@ -6,7 +6,7 @@ resp = client.index( index="logs-debug", document={ - "@timestamp": "2019-12-12", + "date": "2019-12-12", "message": "Starting up Elasticsearch", "level": "debug" }, @@ -16,7 +16,7 @@ print(resp) resp1 = client.index( index="logs-debug", document={ - "@timestamp": "2019-12-12", + "date": "2019-12-12", "message": "Starting up Elasticsearch" }, ) diff --git a/docs/examples/13d90ba227131aefbf4fcfd5992e662a.asciidoc b/docs/examples/13d90ba227131aefbf4fcfd5992e662a.asciidoc index 1d7ddd0d8..fc457fe4e 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:202 +// query-dsl/bool-query.asciidoc:159 [source, python] ---- diff --git a/docs/examples/148edc235fcfbc263561f87f5533e688.asciidoc b/docs/examples/148edc235fcfbc263561f87f5533e688.asciidoc index 9ed85a21a..8b97c4933 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:194 +// query-dsl/percolate-query.asciidoc:196 [source, python] ---- diff --git a/docs/examples/151d2b11807ec684b0c01aa89189a801.asciidoc b/docs/examples/151d2b11807ec684b0c01aa89189a801.asciidoc index ce49b8d45..b0926a099 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:477 +// query-dsl/query-string-query.asciidoc:474 [source, python] ---- diff --git a/docs/examples/162b5b693b713f0bfab1209d59443c46.asciidoc b/docs/examples/162b5b693b713f0bfab1209d59443c46.asciidoc index 83ec7dd0b..044c538d9 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:176 +// query-dsl/bool-query.asciidoc:133 [source, python] ---- diff --git a/docs/examples/17b1647c8509543f2388c886f2584a20.asciidoc b/docs/examples/17b1647c8509543f2388c886f2584a20.asciidoc index 2e2f73e5c..bd99a92db 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:105 +// reranking/semantic-reranking.asciidoc:107 [source, python] ---- diff --git a/docs/examples/187733e50c60350f3f75921bea3b72c2.asciidoc b/docs/examples/187733e50c60350f3f75921bea3b72c2.asciidoc index 4d54d2a58..718144564 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:630 +// search/search-your-data/paginate-search-results.asciidoc:615 [source, python] ---- diff --git a/docs/examples/18de6782bd18f4a9baec2feec8c02a8b.asciidoc b/docs/examples/18de6782bd18f4a9baec2feec8c02a8b.asciidoc deleted file mode 100644 index 999873e69..000000000 --- a/docs/examples/18de6782bd18f4a9baec2feec8c02a8b.asciidoc +++ /dev/null @@ -1,18 +0,0 @@ -// 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 6f2df178e..c48bf98b9 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:199 +// esql/multivalued-fields.asciidoc:191 [source, python] ---- diff --git a/docs/examples/1a9efb56adb2cd84faa9825a129381b9.asciidoc b/docs/examples/1a9efb56adb2cd84faa9825a129381b9.asciidoc index 870811976..e0d883c89 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:219 +// rollup/apis/rollup-search.asciidoc:222 [source, python] ---- diff --git a/docs/examples/1aa91d3d48140d6367b6cabca8737b8f.asciidoc b/docs/examples/1aa91d3d48140d6367b6cabca8737b8f.asciidoc index 05c6b61e9..17dc48f5e 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:638 +// docs/bulk.asciidoc:642 [source, python] ---- diff --git a/docs/examples/1ba7afe23a26fe9ac7856d8c5bc1059d.asciidoc b/docs/examples/1ba7afe23a26fe9ac7856d8c5bc1059d.asciidoc index dc02df84d..67df96154 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:1501 +// analysis/analyzers/lang-analyzer.asciidoc:1502 [source, python] ---- diff --git a/docs/examples/1d9b695a17cffd910c496c9b03c75d6f.asciidoc b/docs/examples/1d9b695a17cffd910c496c9b03c75d6f.asciidoc index 86081dab0..c9c7bce87 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:42 +// data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc:34 [source, python] ---- diff --git a/docs/examples/1e0b85750d4e63ebbc927d4627c44bf8.asciidoc b/docs/examples/1e0b85750d4e63ebbc927d4627c44bf8.asciidoc index 7083e786e..b4d009c90 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:601 +// how-to/size-your-shards.asciidoc:604 [source, python] ---- diff --git a/docs/examples/1e26353d546d733634187b8c3a7837a7.asciidoc b/docs/examples/1e26353d546d733634187b8c3a7837a7.asciidoc index 0266f4383..37cc447f6 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:107 +// connector/apis/list-connectors-api.asciidoc:110 [source, python] ---- diff --git a/docs/examples/20005d8a6555b259b299d862cd218701.asciidoc b/docs/examples/20005d8a6555b259b299d862cd218701.asciidoc index cb4910e7d..0a4219e1e 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:194 +// query-dsl/match-query.asciidoc:190 [source, python] ---- diff --git a/docs/examples/216e24f05cbb82c1718713fbab8623d2.asciidoc b/docs/examples/216e24f05cbb82c1718713fbab8623d2.asciidoc index e158982a7..9ddf0fe44 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:137 +// ingest/processors/geoip.asciidoc:136 [source, python] ---- diff --git a/docs/examples/2171361cd8e70dcde91bdb9bbd8702f1.asciidoc b/docs/examples/2171361cd8e70dcde91bdb9bbd8702f1.asciidoc deleted file mode 100644 index f18bb87d5..000000000 --- a/docs/examples/2171361cd8e70dcde91bdb9bbd8702f1.asciidoc +++ /dev/null @@ -1,30 +0,0 @@ -// 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/21d41e8cbd107fbdf0901f885834dafc.asciidoc b/docs/examples/21d41e8cbd107fbdf0901f885834dafc.asciidoc index dfd21919b..4ce3834f3 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:140 +// mapping/types/wildcard.asciidoc:139 [source, python] ---- diff --git a/docs/examples/222e49c924ca8bac7b41bc952a39261c.asciidoc b/docs/examples/222e49c924ca8bac7b41bc952a39261c.asciidoc index f7ee79fc2..faebb1e6e 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:53 +// query-dsl/semantic-query.asciidoc:55 [source, python] ---- diff --git a/docs/examples/246763219ec06172f7aa57bba28d344a.asciidoc b/docs/examples/246763219ec06172f7aa57bba28d344a.asciidoc index 8b1b1a996..5a340dc07 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:152 +// mapping/types/rank-vectors.asciidoc:159 [source, python] ---- diff --git a/docs/examples/24f4dfdf9922d5aa79151675b7767742.asciidoc b/docs/examples/24f4dfdf9922d5aa79151675b7767742.asciidoc index 2a298c3d4..454f46a64 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:400 +// search/search-your-data/paginate-search-results.asciidoc:385 [source, python] ---- diff --git a/docs/examples/25576b6773322f0929d4c635a940dba0.asciidoc b/docs/examples/25576b6773322f0929d4c635a940dba0.asciidoc index b1c18d64a..56e0c8101 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:533 +// query-dsl/query-string-query.asciidoc:530 [source, python] ---- diff --git a/docs/examples/270549e6b062228312c4e7a54a2c2209.asciidoc b/docs/examples/270549e6b062228312c4e7a54a2c2209.asciidoc index 9ae9ebbce..f2fbab21c 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:39 +// troubleshooting/common-issues/task-queue-backlog.asciidoc:55 [source, python] ---- diff --git a/docs/examples/272e27bf1fcc4fe5dbd4092679dd0342.asciidoc b/docs/examples/272e27bf1fcc4fe5dbd4092679dd0342.asciidoc new file mode 100644 index 000000000..f7955285c --- /dev/null +++ b/docs/examples/272e27bf1fcc4fe5dbd4092679dd0342.asciidoc @@ -0,0 +1,11 @@ +// 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 b72a520b3..ef9cd5175 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:424 +// data-streams/downsampling-manual.asciidoc:421 [source, python] ---- diff --git a/docs/examples/2864a24608b3ac59d21f604f8a31d131.asciidoc b/docs/examples/2864a24608b3ac59d21f604f8a31d131.asciidoc index 2f3d3401f..98fb98017 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:514 +// security/authentication/jwt-realm.asciidoc:504 [source, python] ---- diff --git a/docs/examples/2a21674c40f9b182a8944769d20b2357.asciidoc b/docs/examples/2a21674c40f9b182a8944769d20b2357.asciidoc index 80622a16c..a9b622970 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:130 +// mapping/types/rank-vectors.asciidoc:137 [source, python] ---- diff --git a/docs/examples/2a71e2d7f7179dd76183d30789046808.asciidoc b/docs/examples/2a71e2d7f7179dd76183d30789046808.asciidoc index 08f15d6cd..3e5c29b2d 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:234 +// esql/multivalued-fields.asciidoc:224 [source, python] ---- diff --git a/docs/examples/2afd49985950cbcccf727fa858d00067.asciidoc b/docs/examples/2afd49985950cbcccf727fa858d00067.asciidoc index 5ec0e9037..19ceadeaa 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:258 +// mapping/types/semantic-text.asciidoc:159 [source, python] ---- diff --git a/docs/examples/2afdf0d83724953aa2875b5fb37d60cc.asciidoc b/docs/examples/2afdf0d83724953aa2875b5fb37d60cc.asciidoc index 168651f02..2a307f890 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:387 +// esql/esql-rest.asciidoc:384 [source, python] ---- diff --git a/docs/examples/2b7687e3d7c06824950e00618c297864.asciidoc b/docs/examples/2b7687e3d7c06824950e00618c297864.asciidoc index dc642b896..6c9103348 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:209 +// indices/resolve-cluster.asciidoc:205 [source, python] ---- diff --git a/docs/examples/2bb41b0b4876ce98cd0cd8fb6d337f18.asciidoc b/docs/examples/2bb41b0b4876ce98cd0cd8fb6d337f18.asciidoc deleted file mode 100644 index 64dfcb7b5..000000000 --- a/docs/examples/2bb41b0b4876ce98cd0cd8fb6d337f18.asciidoc +++ /dev/null @@ -1,16 +0,0 @@ -// 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 deleted file mode 100644 index db2012b10..000000000 --- a/docs/examples/2c23285eb9f52010ecb1d5cab640ff78.asciidoc +++ /dev/null @@ -1,29 +0,0 @@ -// 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/9be8f52aab94b6bc8b8603234551475d.asciidoc b/docs/examples/2c27a8eb6528126f37a843d434cd88b6.asciidoc similarity index 86% rename from docs/examples/9be8f52aab94b6bc8b8603234551475d.asciidoc rename to docs/examples/2c27a8eb6528126f37a843d434cd88b6.asciidoc index 27f9c3fbc..5df64d938 100644 --- a/docs/examples/9be8f52aab94b6bc8b8603234551475d.asciidoc +++ b/docs/examples/2c27a8eb6528126f37a843d434cd88b6.asciidoc @@ -9,7 +9,7 @@ resp = client.indices.analyze( { "type": "synonym_graph", "synonyms": [ - "internet phonebook, domain name system" + "dns, domain name system" ] } ], diff --git a/docs/examples/2c3207c0c985d253b2ecccc14e69e25a.asciidoc b/docs/examples/2c3207c0c985d253b2ecccc14e69e25a.asciidoc index 4946350ea..8822e4d52 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:415 +// data-streams/downsampling-manual.asciidoc:412 [source, python] ---- diff --git a/docs/examples/2d0244c020075595acb625aa5ba8f455.asciidoc b/docs/examples/2d0244c020075595acb625aa5ba8f455.asciidoc index 7711e2bc4..483a812fc 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:255 +// mapping/fields/synthetic-source.asciidoc:253 [source, python] ---- diff --git a/docs/examples/2dad2b0c8ba503228f4b11cecca0b348.asciidoc b/docs/examples/2dad2b0c8ba503228f4b11cecca0b348.asciidoc index c251c2bf6..b073c0fa0 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:234 +// data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc:222 [source, python] ---- diff --git a/docs/examples/2ee239df3243c98418f7d9a5c7be4cfd.asciidoc b/docs/examples/2ee239df3243c98418f7d9a5c7be4cfd.asciidoc index 27f78f221..d916e38fa 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:218 +// analysis/tokenfilters/flatten-graph-tokenfilter.asciidoc:203 [source, python] ---- diff --git a/docs/examples/2f2fd35905feef0b561c05d70c7064c1.asciidoc b/docs/examples/2f2fd35905feef0b561c05d70c7064c1.asciidoc index 98ad01d8c..d7bf20ff3 100644 --- a/docs/examples/2f2fd35905feef0b561c05d70c7064c1.asciidoc +++ b/docs/examples/2f2fd35905feef0b561c05d70c7064c1.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// migration/migrate_8_0/migrate_to_java_time.asciidoc:239 +// mapping/dynamic/templates.asciidoc:570 [source, python] ---- diff --git a/docs/examples/2f67db5e4d6c958258c3d70fb2d0b1c8.asciidoc b/docs/examples/2f67db5e4d6c958258c3d70fb2d0b1c8.asciidoc deleted file mode 100644 index 00612b5df..000000000 --- a/docs/examples/2f67db5e4d6c958258c3d70fb2d0b1c8.asciidoc +++ /dev/null @@ -1,13 +0,0 @@ -// 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 d2eae342c..a5cb08edb 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:363 +// mapping/types/semantic-text.asciidoc:242 [source, python] ---- diff --git a/docs/examples/2f9574fee2ebecd6f7d917ee99b26bcc.asciidoc b/docs/examples/2f9574fee2ebecd6f7d917ee99b26bcc.asciidoc index 2a3abce15..1017daeec 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:73 +// mapping/params/doc-values.asciidoc:65 [source, python] ---- diff --git a/docs/examples/2f98924c3d593ea2b60edb9cef5bee22.asciidoc b/docs/examples/2f98924c3d593ea2b60edb9cef5bee22.asciidoc index 6b434ce62..e811461d4 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:483 +// how-to/size-your-shards.asciidoc:484 [source, python] ---- diff --git a/docs/examples/708fe682185b46704fce563465933ded.asciidoc b/docs/examples/2fa7ded8515b32f26c54394ea598f573.asciidoc similarity index 85% rename from docs/examples/708fe682185b46704fce563465933ded.asciidoc rename to docs/examples/2fa7ded8515b32f26c54394ea598f573.asciidoc index 4e8ca244a..bc1835a56 100644 --- a/docs/examples/708fe682185b46704fce563465933ded.asciidoc +++ b/docs/examples/2fa7ded8515b32f26c54394ea598f573.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// indices/index-templates.asciidoc:122 +// indices/index-templates.asciidoc:123 [source, python] ---- @@ -22,7 +22,8 @@ resp = client.indices.put_index_template( "type": "keyword" }, "created_at": { - "type": "date" + "type": "date", + "format": "EEE MMM dd HH:mm:ss Z yyyy" } } }, diff --git a/docs/examples/2fea3e324939cc7e9c396964aeee7111.asciidoc b/docs/examples/2fea3e324939cc7e9c396964aeee7111.asciidoc index aad8d9d23..aee1dc023 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:253 +// query-dsl/match-query.asciidoc:256 [source, python] ---- diff --git a/docs/examples/30d051f534aeb884176eedb2c11dac85.asciidoc b/docs/examples/30d051f534aeb884176eedb2c11dac85.asciidoc index d3c2b9193..7d95ecb4e 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:171 +// inference/service-elasticsearch.asciidoc:176 [source, python] ---- diff --git a/docs/examples/30f3e3b9df46afd12e68bc71f18483b4.asciidoc b/docs/examples/30f3e3b9df46afd12e68bc71f18483b4.asciidoc index 332f5b268..594027bb3 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:137 +// indices/put-mapping.asciidoc:131 [source, python] ---- diff --git a/docs/examples/3166455372f2d96622caff076e91ebe7.asciidoc b/docs/examples/3166455372f2d96622caff076e91ebe7.asciidoc index ca7037697..bcc74217a 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:306 +// query-dsl/percolate-query.asciidoc:308 [source, python] ---- diff --git a/docs/examples/31bc93e429ad0de11dd2dd231e8f2c5e.asciidoc b/docs/examples/31bc93e429ad0de11dd2dd231e8f2c5e.asciidoc deleted file mode 100644 index 85b343892..000000000 --- a/docs/examples/31bc93e429ad0de11dd2dd231e8f2c5e.asciidoc +++ /dev/null @@ -1,10 +0,0 @@ -// 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 f29deb5b7..4afe0c1b7 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:1647 +// analysis/analyzers/lang-analyzer.asciidoc:1648 [source, python] ---- diff --git a/docs/examples/327466380bcd55361973b4a96c6dccb2.asciidoc b/docs/examples/327466380bcd55361973b4a96c6dccb2.asciidoc index 307952a06..4d6c43729 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:1697 +// analysis/analyzers/lang-analyzer.asciidoc:1698 [source, python] ---- diff --git a/docs/examples/3312c82f81816bf76629db9582991812.asciidoc b/docs/examples/3312c82f81816bf76629db9582991812.asciidoc index fc383a8e4..15244e685 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:136 +// index-modules/slowlog.asciidoc:135 [source, python] ---- diff --git a/docs/examples/334811cfceb6858aeec5b3461717dd63.asciidoc b/docs/examples/334811cfceb6858aeec5b3461717dd63.asciidoc index 67d05520d..cf1347fab 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:189 +// ingest/processors/geoip.asciidoc:188 [source, python] ---- diff --git a/docs/examples/346f28d82acb5427c304aa574fea0008.asciidoc b/docs/examples/346f28d82acb5427c304aa574fea0008.asciidoc index a0683551d..efd1f5771 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:1846 +// analysis/analyzers/lang-analyzer.asciidoc:1847 [source, python] ---- diff --git a/docs/examples/e197ab718ad6c3cfbf2dd908f0ccd60f.asciidoc b/docs/examples/3649194a97d265a3bc758f8b38f7561e.asciidoc similarity index 100% rename from docs/examples/e197ab718ad6c3cfbf2dd908f0ccd60f.asciidoc rename to docs/examples/3649194a97d265a3bc758f8b38f7561e.asciidoc diff --git a/docs/examples/36792c81c053e0555407d1e83e7e054f.asciidoc b/docs/examples/36792c81c053e0555407d1e83e7e054f.asciidoc index 040e9433d..4941727c4 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:486 +// search/retriever.asciidoc:452 [source, python] ---- diff --git a/docs/examples/36d229f734adcdab00be266a7ce038b1.asciidoc b/docs/examples/36d229f734adcdab00be266a7ce038b1.asciidoc index a6752687c..b52adb699 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:397 +// mapping/types/dense-vector.asciidoc:404 [source, python] ---- diff --git a/docs/examples/3758b8f2ab9f6f28a764ee6c42c85766.asciidoc b/docs/examples/3758b8f2ab9f6f28a764ee6c42c85766.asciidoc index 86088d303..0e548f378 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:565 +// search/search-your-data/paginate-search-results.asciidoc:550 [source, python] ---- diff --git a/docs/examples/37c73410bf13429279cbc61a413957d8.asciidoc b/docs/examples/37c73410bf13429279cbc61a413957d8.asciidoc index 56fc5156b..b75a76507 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:557 +// how-to/size-your-shards.asciidoc:558 [source, python] ---- diff --git a/docs/examples/39ce44333d28ed2b833722d3e3cb06f3.asciidoc b/docs/examples/39ce44333d28ed2b833722d3e3cb06f3.asciidoc index c6dda3af5..4aa468359 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:230 +// query-dsl/bool-query.asciidoc:187 [source, python] ---- diff --git a/docs/examples/3a204b57072a104d9b50f3a9e064a8f6.asciidoc b/docs/examples/3a204b57072a104d9b50f3a9e064a8f6.asciidoc new file mode 100644 index 000000000..6ebfa63af --- /dev/null +++ b/docs/examples/3a204b57072a104d9b50f3a9e064a8f6.asciidoc @@ -0,0 +1,19 @@ +// 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/d1a285aa244ec461d68f13e7078a33c0.asciidoc b/docs/examples/3ab8f65fcb55a0e3664c55749ec41efd.asciidoc similarity index 93% rename from docs/examples/d1a285aa244ec461d68f13e7078a33c0.asciidoc rename to docs/examples/3ab8f65fcb55a0e3664c55749ec41efd.asciidoc index ee97186fe..292815dbd 100644 --- a/docs/examples/d1a285aa244ec461d68f13e7078a33c0.asciidoc +++ b/docs/examples/3ab8f65fcb55a0e3664c55749ec41efd.asciidoc @@ -32,7 +32,8 @@ resp = client.indices.create( "decimal_digit", "arabic_normalization", "persian_normalization", - "persian_stop" + "persian_stop", + "persian_stem" ] } } diff --git a/docs/examples/3afc6dacf90b42900ab571aad8a61d75.asciidoc b/docs/examples/3afc6dacf90b42900ab571aad8a61d75.asciidoc index 9168398c6..db5b89d75 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:1598 +// analysis/analyzers/lang-analyzer.asciidoc:1599 [source, python] ---- diff --git a/docs/examples/3bc4a3681e3ea9cb3de49f72085807d8.asciidoc b/docs/examples/3bc4a3681e3ea9cb3de49f72085807d8.asciidoc index 9849eb5f6..b58b0609d 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:326 +// search/search-your-data/retrievers-examples.asciidoc:321 [source, python] ---- diff --git a/docs/examples/3c7621a81fa982b79f040a6d2611530e.asciidoc b/docs/examples/3c7621a81fa982b79f040a6d2611530e.asciidoc index de860006f..71e813344 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:156 +// indices/simulate-template.asciidoc:157 [source, python] ---- diff --git a/docs/examples/3cd93a48906069709b76420c66930c01.asciidoc b/docs/examples/3cd93a48906069709b76420c66930c01.asciidoc index fffdc26dd..6c3859dd8 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:265 +// analysis/tokenfilters/stemmer-tokenfilter.asciidoc:264 [source, python] ---- diff --git a/docs/examples/3d924850fb2372fff4739fd145660f88.asciidoc b/docs/examples/3d924850fb2372fff4739fd145660f88.asciidoc deleted file mode 100644 index 34cd7292a..000000000 --- a/docs/examples/3d924850fb2372fff4739fd145660f88.asciidoc +++ /dev/null @@ -1,20 +0,0 @@ -// 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 5babde107..b8b84cc75 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:286 +// query-dsl/query-string-query.asciidoc:283 [source, python] ---- diff --git a/docs/examples/40b73b5c7ca144dc3f63f5b741f33d80.asciidoc b/docs/examples/40b73b5c7ca144dc3f63f5b741f33d80.asciidoc index 609755ffd..0b7604dc6 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:155 +// query-dsl/percolate-query.asciidoc:157 [source, python] ---- diff --git a/docs/examples/40bd86e400d27e68b8f0ae580c29d32d.asciidoc b/docs/examples/40bd86e400d27e68b8f0ae580c29d32d.asciidoc index 2cb413860..f150be621 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:278 +// how-to/size-your-shards.asciidoc:279 [source, python] ---- diff --git a/docs/examples/40c3e7bb1fdc125a1ab21bd7d7326694.asciidoc b/docs/examples/40c3e7bb1fdc125a1ab21bd7d7326694.asciidoc index af859cd55..9a580ba46 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:151 +// esql/multivalued-fields.asciidoc:145 [source, python] ---- diff --git a/docs/examples/40f97f70e8e743c6a6296c81b920aeb0.asciidoc b/docs/examples/40f97f70e8e743c6a6296c81b920aeb0.asciidoc index 8f4e0432d..06969d9fd 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:313 +// how-to/size-your-shards.asciidoc:314 [source, python] ---- diff --git a/docs/examples/425eaaf9c7e3b1e77a3474fbab4183b4.asciidoc b/docs/examples/425eaaf9c7e3b1e77a3474fbab4183b4.asciidoc index b6bb4fb2c..7b8038083 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:25 +// troubleshooting/common-issues/task-queue-backlog.asciidoc:36 [source, python] ---- diff --git a/docs/examples/4342ccf6cc24fd80bd3cd1f9a4c2ef8e.asciidoc b/docs/examples/4342ccf6cc24fd80bd3cd1f9a4c2ef8e.asciidoc index e86d02b47..ea2dda1ee 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:530 +// search/search-your-data/paginate-search-results.asciidoc:515 [source, python] ---- diff --git a/docs/examples/43d9e314431336a6f084cea76dfd6489.asciidoc b/docs/examples/43d9e314431336a6f084cea76dfd6489.asciidoc index 786d31f07..c1ec6eb7d 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:278 +// search/retriever.asciidoc:254 [source, python] ---- diff --git a/docs/examples/46276fbcba7b5e9541dd56ec3f20cf2a.asciidoc b/docs/examples/46276fbcba7b5e9541dd56ec3f20cf2a.asciidoc deleted file mode 100644 index 44fe001b8..000000000 --- a/docs/examples/46276fbcba7b5e9541dd56ec3f20cf2a.asciidoc +++ /dev/null @@ -1,18 +0,0 @@ -// 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 568634b45..185af87c5 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:257 +// indices/put-index-template-v1.asciidoc:258 [source, python] ---- diff --git a/docs/examples/472ec8c57fec8457e31fe6dd7f6e3713.asciidoc b/docs/examples/472ec8c57fec8457e31fe6dd7f6e3713.asciidoc index e73d68276..09064de43 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:451 +// query-dsl/query-string-query.asciidoc:448 [source, python] ---- diff --git a/docs/examples/47909e194d10743093f4a22c27a85925.asciidoc b/docs/examples/47909e194d10743093f4a22c27a85925.asciidoc index fba225225..845b3e147 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:213 +// search/search-your-data/paginate-search-results.asciidoc:198 [source, python] ---- diff --git a/docs/examples/488f6df1df71972392b670ce557f7ff3.asciidoc b/docs/examples/488f6df1df71972392b670ce557f7ff3.asciidoc index f987f3c7d..6d60ffbe5 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:239 +// indices/put-index-template-v1.asciidoc:240 [source, python] ---- diff --git a/docs/examples/49b31e23f8b9667b6a7b2734d55fb6ed.asciidoc b/docs/examples/49b31e23f8b9667b6a7b2734d55fb6ed.asciidoc deleted file mode 100644 index a3fcb5fab..000000000 --- a/docs/examples/49b31e23f8b9667b6a7b2734d55fb6ed.asciidoc +++ /dev/null @@ -1,24 +0,0 @@ -// 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 4e6dd4ec4..4e7fd6c8f 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:1276 +// search/profile.asciidoc:1275 [source, python] ---- diff --git a/docs/examples/4b3a49710fafa35d6d41a8ec12434515.asciidoc b/docs/examples/4b3a49710fafa35d6d41a8ec12434515.asciidoc index 5ea292e1c..3348a97e0 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:465 +// query-dsl/percolate-query.asciidoc:467 [source, python] ---- diff --git a/docs/examples/4bef98a2dac575a50ee0783c2269f1db.asciidoc b/docs/examples/4bef98a2dac575a50ee0783c2269f1db.asciidoc index d2788d077..80814dcf0 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:491 +// mapping/types/dense-vector.asciidoc:498 [source, python] ---- diff --git a/docs/examples/4c174e228b6b74497b73ef2be80de7ad.asciidoc b/docs/examples/4c174e228b6b74497b73ef2be80de7ad.asciidoc index 899054e29..3dd959ac0 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:1466 +// ml/trained-models/apis/get-trained-models.asciidoc:1467 [source, python] ---- diff --git a/docs/examples/4c3db8987d7b2d3d3df78ff1e71e7ede.asciidoc b/docs/examples/4c3db8987d7b2d3d3df78ff1e71e7ede.asciidoc index b8f216834..4fb637fd2 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:21 +// query-dsl/match-query.asciidoc:22 [source, python] ---- diff --git a/docs/examples/4c9350ed09b28f00e297ebe73c3b95a2.asciidoc b/docs/examples/4c9350ed09b28f00e297ebe73c3b95a2.asciidoc index 6d0c9c9ed..85dd4b15b 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:231 +// inference/service-elasticsearch.asciidoc:236 [source, python] ---- diff --git a/docs/examples/4c95d54b32df4dc49e9762b6c1ae2c05.asciidoc b/docs/examples/4c95d54b32df4dc49e9762b6c1ae2c05.asciidoc index 37e7f3fb3..da1513b91 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:374 +// mapping/types/text.asciidoc:368 [source, python] ---- diff --git a/docs/examples/4ca15672fc5ab1d80a127d086b6d2837.asciidoc b/docs/examples/4ca15672fc5ab1d80a127d086b6d2837.asciidoc index 0492c7100..b0a3784fb 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:456 +// cluster/allocation-explain.asciidoc:457 [source, python] ---- diff --git a/docs/examples/4dab4c5168047ba596af1beb0e55b845.asciidoc b/docs/examples/4dab4c5168047ba596af1beb0e55b845.asciidoc deleted file mode 100644 index 275db14c9..000000000 --- a/docs/examples/4dab4c5168047ba596af1beb0e55b845.asciidoc +++ /dev/null @@ -1,10 +0,0 @@ -// 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/ad0204602a9ebdf748b06ce9ade218e4.asciidoc b/docs/examples/4de4bb55bbc0a76c75d256f245a3ee3f.asciidoc similarity index 50% rename from docs/examples/ad0204602a9ebdf748b06ce9ade218e4.asciidoc rename to docs/examples/4de4bb55bbc0a76c75d256f245a3ee3f.asciidoc index 9ff7e3d80..11ed7d7dd 100644 --- a/docs/examples/ad0204602a9ebdf748b06ce9ade218e4.asciidoc +++ b/docs/examples/4de4bb55bbc0a76c75d256f245a3ee3f.asciidoc @@ -1,15 +1,15 @@ // This file is autogenerated, DO NOT EDIT -// inference/service-voyageai.asciidoc:169 +// inference/elastic-infer-service.asciidoc:100 [source, python] ---- resp = client.inference.put( - task_type="rerank", - inference_id="voyageai-rerank", + task_type="sparse_embedding", + inference_id="elser-model-eis", inference_config={ - "service": "voyageai", + "service": "elastic", "service_settings": { - "model_id": "rerank-2" + "model_name": "elser" } }, ) diff --git a/docs/examples/4e50d9d25bfb07ac73e3a2be5d2fbbf7.asciidoc b/docs/examples/4e50d9d25bfb07ac73e3a2be5d2fbbf7.asciidoc index bf60eda88..59b09c26e 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:244 +// search/search-your-data/paginate-search-results.asciidoc:229 [source, python] ---- diff --git a/docs/examples/4ed946065faa92f9950f04e402676a97.asciidoc b/docs/examples/4ed946065faa92f9950f04e402676a97.asciidoc index ee956cd68..72f00c320 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:210 +// rest-api/info.asciidoc:206 [source, python] ---- diff --git a/docs/examples/4f6694ef147a73b1163bde3c13779d26.asciidoc b/docs/examples/4f6694ef147a73b1163bde3c13779d26.asciidoc index 419fb698c..249c1bddd 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:62 +// troubleshooting/common-issues/rejected-requests.asciidoc:68 [source, python] ---- diff --git a/docs/examples/50b5c0332949d2154c72b629b5fa6222.asciidoc b/docs/examples/50b5c0332949d2154c72b629b5fa6222.asciidoc index abb1aabc9..b096a417a 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:351 +// indices/put-mapping.asciidoc:345 [source, python] ---- diff --git a/docs/examples/50d9c0508ddb0fc5ba5a893eec219dd8.asciidoc b/docs/examples/50d9c0508ddb0fc5ba5a893eec219dd8.asciidoc index edfa07a0d..a078c4d75 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:131 +// mapping/fields/synthetic-source.asciidoc:129 [source, python] ---- diff --git a/docs/examples/51390ca10aa22d7104e8970f09ea4512.asciidoc b/docs/examples/51390ca10aa22d7104e8970f09ea4512.asciidoc deleted file mode 100644 index 89b0ed3ee..000000000 --- a/docs/examples/51390ca10aa22d7104e8970f09ea4512.asciidoc +++ /dev/null @@ -1,33 +0,0 @@ -// 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 0759524d5..a0daa1e65 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:1101 +// search/search-your-data/knn-search.asciidoc:1103 [source, python] ---- diff --git a/docs/examples/51b44224feee6e2e5974824334474c77.asciidoc b/docs/examples/51b44224feee6e2e5974824334474c77.asciidoc index 39fd07694..93e483a64 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:337 +// snapshot-restore/repository-s3.asciidoc:371 [source, python] ---- diff --git a/docs/examples/51f6a62c0f0a02aa97a42c6a80542aa4.asciidoc b/docs/examples/51f6a62c0f0a02aa97a42c6a80542aa4.asciidoc deleted file mode 100644 index f42cdc908..000000000 --- a/docs/examples/51f6a62c0f0a02aa97a42c6a80542aa4.asciidoc +++ /dev/null @@ -1,28 +0,0 @@ -// This file is autogenerated, DO NOT EDIT -// search/retriever.asciidoc:1012 - -[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 83ea88334..cd29eaa7d 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:175 +// ingest/common-log-format-example.asciidoc:174 [source, python] ---- diff --git a/docs/examples/52f4c5eb08d39f98e2e2f5527ece9731.asciidoc b/docs/examples/52f4c5eb08d39f98e2e2f5527ece9731.asciidoc index 34a3c3906..89fa235ad 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:213 +// inference/service-alibabacloud-ai-search.asciidoc:210 [source, python] ---- diff --git a/docs/examples/551799fef2f86e393db83a967e4a30d1.asciidoc b/docs/examples/551799fef2f86e393db83a967e4a30d1.asciidoc index 54ada40f7..e2b93fb61 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:257 +// mapping/types/aggregate-metric-double.asciidoc:264 [source, python] ---- diff --git a/docs/examples/56a1aa4f7fa62f2289e20607e3039bf3.asciidoc b/docs/examples/56a1aa4f7fa62f2289e20607e3039bf3.asciidoc index dcaf62835..3d50d720a 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:25 +// indices/put-mapping.asciidoc:19 [source, python] ---- diff --git a/docs/examples/56da252798b8e7b006738428aa1a7f4c.asciidoc b/docs/examples/56da252798b8e7b006738428aa1a7f4c.asciidoc index 28f81baf9..f53776159 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:366 +// mapping/types/range.asciidoc:373 [source, python] ---- diff --git a/docs/examples/57a62f66b67a08c38942f0edb0fbaa26.asciidoc b/docs/examples/57a62f66b67a08c38942f0edb0fbaa26.asciidoc deleted file mode 100644 index e4ea7ee57..000000000 --- a/docs/examples/57a62f66b67a08c38942f0edb0fbaa26.asciidoc +++ /dev/null @@ -1,26 +0,0 @@ -// 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 925fc1eb0..cb0cd262e 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:1453 +// analysis/analyzers/lang-analyzer.asciidoc:1454 [source, python] ---- diff --git a/docs/examples/59aa5216630f80c5dc298fc5bba4a819.asciidoc b/docs/examples/59aa5216630f80c5dc298fc5bba4a819.asciidoc new file mode 100644 index 000000000..216f6cbbd --- /dev/null +++ b/docs/examples/59aa5216630f80c5dc298fc5bba4a819.asciidoc @@ -0,0 +1,10 @@ +// 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 deleted file mode 100644 index 6dd92adf7..000000000 --- a/docs/examples/5a4a6cf06b3a10f55012639166630290.asciidoc +++ /dev/null @@ -1,31 +0,0 @@ -// 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 e34426f1f..57c176743 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:260 +// indices/put-component-template.asciidoc:262 [source, python] ---- diff --git a/docs/examples/5bba213a7f543190139d1a69ab2ed076.asciidoc b/docs/examples/5bba213a7f543190139d1a69ab2ed076.asciidoc index fac7ee153..c9c33f40d 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:304 +// esql/esql-across-clusters.asciidoc:302 [source, python] ---- diff --git a/docs/examples/5daf8ede198be9b118da5bee9896cb00.asciidoc b/docs/examples/5daf8ede198be9b118da5bee9896cb00.asciidoc index 84560ddf9..ddad0eab9 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:326 +// mapping/types/flattened.asciidoc:333 [source, python] ---- diff --git a/docs/examples/5e21dbac92f34d236a8f0cc0d3a39cdd.asciidoc b/docs/examples/5e21dbac92f34d236a8f0cc0d3a39cdd.asciidoc index 2a6435589..559f8a514 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:421 +// security/authentication/jwt-realm.asciidoc:411 [source, python] ---- diff --git a/docs/examples/5f1ed9cfdc149763b444acfbe10b0e16.asciidoc b/docs/examples/5f1ed9cfdc149763b444acfbe10b0e16.asciidoc index ff7adf42f..118ad732e 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:277 +// indices/put-mapping.asciidoc:271 [source, python] ---- diff --git a/docs/examples/60d3f9a99cc91b43aaa7524a9a74dba0.asciidoc b/docs/examples/60d3f9a99cc91b43aaa7524a9a74dba0.asciidoc index c7e0d37a9..6fe2dc982 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:47 +// troubleshooting/common-issues/rejected-requests.asciidoc:50 [source, python] ---- diff --git a/docs/examples/6220087321e6d288024a70c6b09bd720.asciidoc b/docs/examples/6220087321e6d288024a70c6b09bd720.asciidoc index 0607558a9..b7f8b8531 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:356 +// query-dsl/percolate-query.asciidoc:358 [source, python] ---- diff --git a/docs/examples/62d3c8fccb11471bdc12555c1a7777f2.asciidoc b/docs/examples/62d3c8fccb11471bdc12555c1a7777f2.asciidoc index 4edd09c02..3e5631809 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:95 +// mapping/fields/synthetic-source.asciidoc:93 [source, python] ---- diff --git a/docs/examples/631a8d49bfbe622fd07c6868489b9fb0.asciidoc b/docs/examples/631a8d49bfbe622fd07c6868489b9fb0.asciidoc deleted file mode 100644 index a5964a29b..000000000 --- a/docs/examples/631a8d49bfbe622fd07c6868489b9fb0.asciidoc +++ /dev/null @@ -1,19 +0,0 @@ -// This file is autogenerated, DO NOT EDIT -// search/retriever.asciidoc:1106 - -[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 404568af6..746b8a42d 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:177 +// inference/service-alibabacloud-ai-search.asciidoc:174 [source, python] ---- diff --git a/docs/examples/63ecdab34940af053acc409164914c32.asciidoc b/docs/examples/63ecdab34940af053acc409164914c32.asciidoc index 32050c264..0c5d51106 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:126 +// mapping/types/sparse-vector.asciidoc:63 [source, python] ---- diff --git a/docs/examples/642161d70dacf7d153767d37d3726838.asciidoc b/docs/examples/642161d70dacf7d153767d37d3726838.asciidoc index a7c877f17..a6acd8d13 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:169 +// rollup/apis/rollup-index-caps.asciidoc:171 [source, python] ---- diff --git a/docs/examples/4ab7c13d27ec8f9e6705a0e77fe53c20.asciidoc b/docs/examples/643e19c3b6ac1134554dd890e2249c2b.asciidoc similarity index 84% rename from docs/examples/4ab7c13d27ec8f9e6705a0e77fe53c20.asciidoc rename to docs/examples/643e19c3b6ac1134554dd890e2249c2b.asciidoc index e80b9f805..c77ffb136 100644 --- a/docs/examples/4ab7c13d27ec8f9e6705a0e77fe53c20.asciidoc +++ b/docs/examples/643e19c3b6ac1134554dd890e2249c2b.asciidoc @@ -1,12 +1,12 @@ // This file is autogenerated, DO NOT EDIT -// data-streams/logs.asciidoc:22 +// data-streams/logs.asciidoc:20 [source, python] ---- resp = client.indices.put_index_template( name="my-index-template", index_patterns=[ - "my-datastream-*" + "logs-*" ], data_stream={}, template={ diff --git a/docs/examples/67154a4837cf996a9a9c3e61d6e9d1b3.asciidoc b/docs/examples/67154a4837cf996a9a9c3e61d6e9d1b3.asciidoc deleted file mode 100644 index 647b80bda..000000000 --- a/docs/examples/67154a4837cf996a9a9c3e61d6e9d1b3.asciidoc +++ /dev/null @@ -1,15 +0,0 @@ -// 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 c9b9f6d70..f0c9152d8 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:410 +// esql/esql-rest.asciidoc:407 [source, python] ---- diff --git a/docs/examples/69541f0bb81ab3797926bb2a00607cda.asciidoc b/docs/examples/69541f0bb81ab3797926bb2a00607cda.asciidoc index baa6e0332..bd34b9be6 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:778 +// search/retriever.asciidoc:748 [source, python] ---- diff --git a/docs/examples/6b0288acb739c4667d41339e5100c327.asciidoc b/docs/examples/6b0288acb739c4667d41339e5100c327.asciidoc index a58107558..421376449 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:231 +// query-dsl/match-query.asciidoc:234 [source, python] ---- diff --git a/docs/examples/6b67c6121efb86ee100d40c2646f77b5.asciidoc b/docs/examples/6b67c6121efb86ee100d40c2646f77b5.asciidoc index 72e615b09..bc427ddf0 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:220 +// index-modules/slowlog.asciidoc:219 [source, python] ---- diff --git a/docs/examples/6ba332596f5eb29660c90ab2d480e7dc.asciidoc b/docs/examples/6ba332596f5eb29660c90ab2d480e7dc.asciidoc index d0227f1b3..fbd0709e9 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:188 +// indices/put-index-template-v1.asciidoc:189 [source, python] ---- diff --git a/docs/examples/6baf72c04d48cb04c2f8be609ff3b3b5.asciidoc b/docs/examples/6baf72c04d48cb04c2f8be609ff3b3b5.asciidoc index f0a7c3e14..cd4a70809 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:209 +// mapping/types/semantic-text.asciidoc:132 [source, python] ---- diff --git a/docs/examples/45b0b2420c807bcb31fcb051daa7099a.asciidoc b/docs/examples/6cb1dae368c945ecf7c9ec332a5743a2.asciidoc similarity index 92% rename from docs/examples/45b0b2420c807bcb31fcb051daa7099a.asciidoc rename to docs/examples/6cb1dae368c945ecf7c9ec332a5743a2.asciidoc index 4100136c8..553747119 100644 --- a/docs/examples/45b0b2420c807bcb31fcb051daa7099a.asciidoc +++ b/docs/examples/6cb1dae368c945ecf7c9ec332a5743a2.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/text.asciidoc:235 +// mapping/types/text.asciidoc:180 [source, python] ---- @@ -18,7 +18,6 @@ resp = client.indices.create( "properties": { "text": { "type": "text", - "store": True, "fields": { "raw": { "type": "keyword" diff --git a/docs/examples/6dcd3916679f6aa64f79524c75991ebd.asciidoc b/docs/examples/6dcd3916679f6aa64f79524c75991ebd.asciidoc index 9e12ba604..3b72c1464 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:251 +// esql/esql-rest.asciidoc:248 [source, python] ---- diff --git a/docs/examples/6e498b9dc753b94abf2618c407fa5cd8.asciidoc b/docs/examples/6e498b9dc753b94abf2618c407fa5cd8.asciidoc new file mode 100644 index 000000000..265795311 --- /dev/null +++ b/docs/examples/6e498b9dc753b94abf2618c407fa5cd8.asciidoc @@ -0,0 +1,16 @@ +// 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 a3fb0794d..14522e393 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:397 +// search/retriever.asciidoc:363 [source, python] ---- diff --git a/docs/examples/7039aa15511e9b876c2e00d067751e2e.asciidoc b/docs/examples/7039aa15511e9b876c2e00d067751e2e.asciidoc deleted file mode 100644 index 5f5241adb..000000000 --- a/docs/examples/7039aa15511e9b876c2e00d067751e2e.asciidoc +++ /dev/null @@ -1,22 +0,0 @@ -// 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/71998bb300ac2a58419b0772cdc1c586.asciidoc b/docs/examples/71998bb300ac2a58419b0772cdc1c586.asciidoc index 14b9ffaf2..0b9cdbc9f 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:78 +// mapping/types/version.asciidoc:85 [source, python] ---- diff --git a/docs/examples/72abd8a82b4a8fc2fc06f54150d23b76.asciidoc b/docs/examples/72abd8a82b4a8fc2fc06f54150d23b76.asciidoc deleted file mode 100644 index 121ba5c64..000000000 --- a/docs/examples/72abd8a82b4a8fc2fc06f54150d23b76.asciidoc +++ /dev/null @@ -1,54 +0,0 @@ -// 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 41b4fc221..db79aaa94 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:94 +// rollup/apis/rollup-index-caps.asciidoc:95 [source, python] ---- diff --git a/docs/examples/744aeb2af40f519e430e21e004e3c3b7.asciidoc b/docs/examples/744aeb2af40f519e430e21e004e3c3b7.asciidoc index 994404bc0..952a42b78 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:103 +// esql/multivalued-fields.asciidoc:99 [source, python] ---- diff --git a/docs/examples/746e0a1cb5984f2672963b363505c7b3.asciidoc b/docs/examples/746e0a1cb5984f2672963b363505c7b3.asciidoc index 90f930456..5c56c2f3f 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:196 +// mapping/types/date.asciidoc:188 [source, python] ---- diff --git a/docs/examples/35b686d9d9e915d0dea7a4251781767d.asciidoc b/docs/examples/750ac969f9a05567f5cdf4f93d6244b6.asciidoc similarity index 95% rename from docs/examples/35b686d9d9e915d0dea7a4251781767d.asciidoc rename to docs/examples/750ac969f9a05567f5cdf4f93d6244b6.asciidoc index ee73d8b69..7e47cc7c7 100644 --- a/docs/examples/35b686d9d9e915d0dea7a4251781767d.asciidoc +++ b/docs/examples/750ac969f9a05567f5cdf4f93d6244b6.asciidoc @@ -4,7 +4,6 @@ [source, python] ---- resp = client.cluster.reroute( - metric="none", commands=[ { "allocate_empty_primary": { diff --git a/docs/examples/75e6d66e94e61bd8a555beaaee255c36.asciidoc b/docs/examples/75e6d66e94e61bd8a555beaaee255c36.asciidoc index f1e5b8201..bfb1cadf1 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:176 +// rollup/apis/rollup-search.asciidoc:178 [source, python] ---- diff --git a/docs/examples/76e02434835630cb830724beb92df354.asciidoc b/docs/examples/76e02434835630cb830724beb92df354.asciidoc index 9ab5b0f00..cc7602fe4 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:1725 +// search/search-your-data/retrievers-examples.asciidoc:1433 [source, python] ---- diff --git a/docs/examples/7709a48020a6cefbbe547fb944541cdb.asciidoc b/docs/examples/7709a48020a6cefbbe547fb944541cdb.asciidoc index 9476542db..00ea6fa58 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:414 +// mapping/types/dense-vector.asciidoc:421 [source, python] ---- diff --git a/docs/examples/7752b677825523bfb0c38ad9325a6d47.asciidoc b/docs/examples/7752b677825523bfb0c38ad9325a6d47.asciidoc index e35bd7225..1fb038498 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:76 +// connector/apis/delete-connector-api.asciidoc:79 [source, python] ---- diff --git a/docs/examples/78043831fd32004a82930c8ac8a1d809.asciidoc b/docs/examples/78043831fd32004a82930c8ac8a1d809.asciidoc index d86f2f207..5a0d6d76f 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:1670 +// search/search-your-data/retrievers-examples.asciidoc:1378 [source, python] ---- diff --git a/docs/examples/7846974b47a3eab1832a475663d23ad9.asciidoc b/docs/examples/7846974b47a3eab1832a475663d23ad9.asciidoc index d39caa3d6..0fc04cfc2 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:307 +// search/search-your-data/paginate-search-results.asciidoc:292 [source, python] ---- diff --git a/docs/examples/7885ca9d7c61050095288eef6bc6cca9.asciidoc b/docs/examples/7885ca9d7c61050095288eef6bc6cca9.asciidoc index 90021946c..2367c5ae1 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:686 +// security/authentication/jwt-realm.asciidoc:676 [source, python] ---- diff --git a/docs/examples/79d206a528be704050a437adce2496dd.asciidoc b/docs/examples/79d206a528be704050a437adce2496dd.asciidoc index 9026321ac..0a1f7c9ca 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:659 +// search/retriever.asciidoc:629 [source, python] ---- diff --git a/docs/examples/7a32f44a1511ecb0d3f0b0ff2aca5c44.asciidoc b/docs/examples/7a32f44a1511ecb0d3f0b0ff2aca5c44.asciidoc deleted file mode 100644 index 984cd88e4..000000000 --- a/docs/examples/7a32f44a1511ecb0d3f0b0ff2aca5c44.asciidoc +++ /dev/null @@ -1,23 +0,0 @@ -// 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 c19b46886..2bc21bbf0 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:341 +// mapping/types/semantic-text.asciidoc:220 [source, python] ---- diff --git a/docs/examples/7cd23457e220c8b64c5b0041d2acc27a.asciidoc b/docs/examples/7cd23457e220c8b64c5b0041d2acc27a.asciidoc index 4dac054a0..261211313 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:122 +// setup/advanced-configuration.asciidoc:123 [source, python] ---- diff --git a/docs/examples/7d3a74fe0ba3fe95d1c3275365ff9315.asciidoc b/docs/examples/7d3a74fe0ba3fe95d1c3275365ff9315.asciidoc index 578034516..c812891e4 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:367 +// mapping/types/flattened.asciidoc:374 [source, python] ---- diff --git a/docs/examples/7daff6b7e668ab8a762b8ab5dff7a167.asciidoc b/docs/examples/7daff6b7e668ab8a762b8ab5dff7a167.asciidoc index aebed399e..75048641a 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:268 +// query-dsl/sparse-vector-query.asciidoc:260 [source, python] ---- diff --git a/docs/examples/7ea7ab20df76c47b391a582ae4bce803.asciidoc b/docs/examples/7ea7ab20df76c47b391a582ae4bce803.asciidoc deleted file mode 100644 index b016a7d54..000000000 --- a/docs/examples/7ea7ab20df76c47b391a582ae4bce803.asciidoc +++ /dev/null @@ -1,16 +0,0 @@ -// 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 3c22a69ea..a2b9f8e5c 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:203 +// ingest/processors/ip-location.asciidoc:188 [source, python] ---- diff --git a/docs/examples/7f2d511cb64743c006225e5933a14bb4.asciidoc b/docs/examples/7f2d511cb64743c006225e5933a14bb4.asciidoc index efe78a8c9..60a3269ff 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:70 +// esql/esql-across-clusters.asciidoc:69 [source, python] ---- diff --git a/docs/examples/7f56755fb6c42f7e6203339a6d0cb6e6.asciidoc b/docs/examples/7f56755fb6c42f7e6203339a6d0cb6e6.asciidoc index 2abbd8530..18e25a546 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:280 +// query-dsl/match-query.asciidoc:283 [source, python] ---- diff --git a/docs/examples/7fde3ff91c4a2e7080444af37d5cd287.asciidoc b/docs/examples/7fde3ff91c4a2e7080444af37d5cd287.asciidoc index 9c570d54b..649738ffe 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:292 +// esql/esql-rest.asciidoc:289 [source, python] ---- diff --git a/docs/examples/80d2ccb7e2056d66bcf95096ae61af4b.asciidoc b/docs/examples/80d2ccb7e2056d66bcf95096ae61af4b.asciidoc deleted file mode 100644 index 294d9dafe..000000000 --- a/docs/examples/80d2ccb7e2056d66bcf95096ae61af4b.asciidoc +++ /dev/null @@ -1,15 +0,0 @@ -// 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/820f689eaaef15fc07abd1073fa880f8.asciidoc b/docs/examples/820f689eaaef15fc07abd1073fa880f8.asciidoc index e67211792..212392e24 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:24 +// search/search-your-data/paginate-search-results.asciidoc:11 [source, python] ---- diff --git a/docs/examples/828f0045747fde4888a947bb99e190e3.asciidoc b/docs/examples/828f0045747fde4888a947bb99e190e3.asciidoc index 1a5385263..b0c0af2a7 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:867 +// search/retriever.asciidoc:837 [source, python] ---- diff --git a/docs/examples/853fc710cea79fb4e1a85fb6d149f9c5.asciidoc b/docs/examples/853fc710cea79fb4e1a85fb6d149f9c5.asciidoc index d12fb9c69..12888ed06 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:906 +// search/retriever.asciidoc:876 [source, python] ---- diff --git a/docs/examples/85479e02af00681210e17e3d0ff51e21.asciidoc b/docs/examples/85479e02af00681210e17e3d0ff51e21.asciidoc index 4921850c3..6b13cce81 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:101 +// mapping/types/date.asciidoc:93 [source, python] ---- diff --git a/docs/examples/858fde15fb0a0340873b123043f8c3b4.asciidoc b/docs/examples/858fde15fb0a0340873b123043f8c3b4.asciidoc index acb5c2d72..7e0f1de21 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:111 +// mapping/types/histogram.asciidoc:118 [source, python] ---- diff --git a/docs/examples/85f6667f148d16d075493fddf07e2932.asciidoc b/docs/examples/85f6667f148d16d075493fddf07e2932.asciidoc index 5893e6504..b17580c51 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:620 +// data-streams/change-mappings-and-settings.asciidoc:616 [source, python] ---- diff --git a/docs/examples/85f9fc6f98e8573efed9b034e853d5ae.asciidoc b/docs/examples/85f9fc6f98e8573efed9b034e853d5ae.asciidoc index 67aaf4ac1..107825f54 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:284 +// inference/service-elasticsearch.asciidoc:289 [source, python] ---- diff --git a/docs/examples/8619bd17bbfe33490b1f277007f654db.asciidoc b/docs/examples/8619bd17bbfe33490b1f277007f654db.asciidoc index 785b6ac6a..d48245664 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:216 +// inference/service-cohere.asciidoc:214 [source, python] ---- diff --git a/docs/examples/8621c05cc7cf3880bde751f6670a0c3a.asciidoc b/docs/examples/8621c05cc7cf3880bde751f6670a0c3a.asciidoc new file mode 100644 index 000000000..d4812b0ab --- /dev/null +++ b/docs/examples/8621c05cc7cf3880bde751f6670a0c3a.asciidoc @@ -0,0 +1,15 @@ +// 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 31bbd9a29..685c48a97 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:677 +// data-streams/change-mappings-and-settings.asciidoc:673 [source, python] ---- diff --git a/docs/examples/8634c9993485d622fb12d24f4f242264.asciidoc b/docs/examples/8634c9993485d622fb12d24f4f242264.asciidoc index b0dcd030b..d5a35b8a4 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:436 +// data-streams/downsampling-manual.asciidoc:433 [source, python] ---- diff --git a/docs/examples/86f426ffa67416a50f2702f7131d35de.asciidoc b/docs/examples/86f426ffa67416a50f2702f7131d35de.asciidoc deleted file mode 100644 index bc013b97c..000000000 --- a/docs/examples/86f426ffa67416a50f2702f7131d35de.asciidoc +++ /dev/null @@ -1,20 +0,0 @@ -// 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 c000ba046..02f191745 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:287 +// esql/multivalued-fields.asciidoc:275 [source, python] ---- diff --git a/docs/examples/8a0b5f759de3f27f0801c1176e616117.asciidoc b/docs/examples/8a0b5f759de3f27f0801c1176e616117.asciidoc index a8e4ef726..4a66835cb 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:34 +// search/search-your-data/semantic-search-semantic-text.asciidoc:36 [source, python] ---- diff --git a/docs/examples/8a1b6eae4893c5dd27b3d81fd8d70f5b.asciidoc b/docs/examples/8a1b6eae4893c5dd27b3d81fd8d70f5b.asciidoc index 8a6c13fbf..c46aba59b 100644 --- a/docs/examples/8a1b6eae4893c5dd27b3d81fd8d70f5b.asciidoc +++ b/docs/examples/8a1b6eae4893c5dd27b3d81fd8d70f5b.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/search-your-data/semantic-search-elser.asciidoc:157 +// migration/migrate_9_0.asciidoc:467 [source, python] ---- diff --git a/docs/examples/8b8b6aac2111b2d8b93758ac737e6543.asciidoc b/docs/examples/8b8b6aac2111b2d8b93758ac737e6543.asciidoc index 05e97cf2a..31bfc8362 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:226 +// mapping/fields/synthetic-source.asciidoc:224 [source, python] ---- diff --git a/docs/examples/8c47c80139f40f25db44f5781ca2dfbe.asciidoc b/docs/examples/8c47c80139f40f25db44f5781ca2dfbe.asciidoc new file mode 100644 index 000000000..8503017e7 --- /dev/null +++ b/docs/examples/8c47c80139f40f25db44f5781ca2dfbe.asciidoc @@ -0,0 +1,10 @@ +// 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 f0cc6406b..68ae5624a 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:616 +// docs/bulk.asciidoc:620 [source, python] ---- diff --git a/docs/examples/8d05862be1f9e7edaba162b1888b5677.asciidoc b/docs/examples/8d05862be1f9e7edaba162b1888b5677.asciidoc index eaebb31e2..0433809f5 100644 --- a/docs/examples/8d05862be1f9e7edaba162b1888b5677.asciidoc +++ b/docs/examples/8d05862be1f9e7edaba162b1888b5677.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// quickstart/esql-search-tutorial.asciidoc:77 +// quickstart/full-text-filtering-tutorial.asciidoc:50 [source, python] ---- diff --git a/docs/examples/8d9b04f2a97f4229dec9e620126de049.asciidoc b/docs/examples/8d9b04f2a97f4229dec9e620126de049.asciidoc index 6fa55b386..fdcc89bdb 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:575 +// snapshot-restore/repository-s3.asciidoc:609 [source, python] ---- diff --git a/docs/examples/8de6fed6ba2b94ce6a12ce076be2b4d7.asciidoc b/docs/examples/8de6fed6ba2b94ce6a12ce076be2b4d7.asciidoc index 32ab5cc14..13ad215ea 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:133 +// cat/segments.asciidoc:132 [source, python] ---- diff --git a/docs/examples/8ecefdcf8f153cf91588e9fdde8f3e6b.asciidoc b/docs/examples/8ecefdcf8f153cf91588e9fdde8f3e6b.asciidoc index d854839f2..1597f63d7 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:302 +// query-dsl/query-string-query.asciidoc:299 [source, python] ---- diff --git a/docs/examples/8ed31628081db2b6e9106d61d1e142be.asciidoc b/docs/examples/8ed31628081db2b6e9106d61d1e142be.asciidoc index 007c894a4..31c18d331 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:294 +// query-dsl/simple-query-string-query.asciidoc:291 [source, python] ---- diff --git a/docs/examples/8f6f7ea5abf56152b4a5639ddf40848f.asciidoc b/docs/examples/8f6f7ea5abf56152b4a5639ddf40848f.asciidoc index 0e400e7cc..68d39126d 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:481 +// security/authentication/jwt-realm.asciidoc:471 [source, python] ---- diff --git a/docs/examples/8fec06a98d0151c1d717a01491d0b8f0.asciidoc b/docs/examples/8fec06a98d0151c1d717a01491d0b8f0.asciidoc index b0e25f0ad..46d05770e 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:87 +// data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc:79 [source, python] ---- diff --git a/docs/examples/9169d19a80175ec94f80865d0f9bef4c.asciidoc b/docs/examples/9169d19a80175ec94f80865d0f9bef4c.asciidoc index 607fb674c..850788ba4 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:348 +// search/retriever.asciidoc:314 [source, python] ---- diff --git a/docs/examples/91750571c195718f0ff246e058e4bc63.asciidoc b/docs/examples/91750571c195718f0ff246e058e4bc63.asciidoc index a5de7b36b..4b45f680e 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:88 +// search/search-your-data/paginate-search-results.asciidoc:73 [source, python] ---- diff --git a/docs/examples/927b20a221f975b75d1227b67d0eb7e2.asciidoc b/docs/examples/927b20a221f975b75d1227b67d0eb7e2.asciidoc index eaa000d01..5ba6e11be 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:271 +// esql/esql-rest.asciidoc:268 [source, python] ---- diff --git a/docs/examples/9382f022086c692ba05efb0acae65946.asciidoc b/docs/examples/9382f022086c692ba05efb0acae65946.asciidoc index 70fee42d6..02ad2f12e 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:65 +// mapping/fields/synthetic-source.asciidoc:63 [source, python] ---- diff --git a/docs/examples/944806221eb89f5af2298ccdf2902277.asciidoc b/docs/examples/944806221eb89f5af2298ccdf2902277.asciidoc index be677f846..896a4c10f 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:169 +// rollup/apis/rollup-caps.asciidoc:171 [source, python] ---- diff --git a/docs/examples/948418e0ef1b7e7cfee2f11be715d7d2.asciidoc b/docs/examples/948418e0ef1b7e7cfee2f11be715d7d2.asciidoc index 48447243b..700fe6f3a 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:986 +// search/search-your-data/retrievers-examples.asciidoc:715 [source, python] ---- diff --git a/docs/examples/9501e6c8e95c21838653ea15b9b7ed5f.asciidoc b/docs/examples/9501e6c8e95c21838653ea15b9b7ed5f.asciidoc index 0613ecbc0..1971c9b0d 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:789 +// query-dsl/percolate-query.asciidoc:791 [source, python] ---- diff --git a/docs/examples/95414139c7b1203e3c2d99a354415801.asciidoc b/docs/examples/95414139c7b1203e3c2d99a354415801.asciidoc index 8cee7bc6a..773758b44 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:185 +// cat/recovery.asciidoc:89 [source, python] ---- diff --git a/docs/examples/957d2e6ddbb9a9b16549c5e67b93b41b.asciidoc b/docs/examples/957d2e6ddbb9a9b16549c5e67b93b41b.asciidoc index 8b3478cfe..4b88d0aa8 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:270 +// query-dsl/query-string-query.asciidoc:267 [source, python] ---- diff --git a/docs/examples/968fb5b92aa65af09544f7c002b0953e.asciidoc b/docs/examples/968fb5b92aa65af09544f7c002b0953e.asciidoc index 5b835081f..3746bf530 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:141 +// search/search-your-data/semantic-search-semantic-text.asciidoc:144 [source, python] ---- diff --git a/docs/examples/96ea0e80323d6d2d99964625c004a44d.asciidoc b/docs/examples/96ea0e80323d6d2d99964625c004a44d.asciidoc index ed5869398..4f91cd731 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:415 +// data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc:394 [source, python] ---- diff --git a/docs/examples/971fd23adb81bb5842c7750e0379336a.asciidoc b/docs/examples/971fd23adb81bb5842c7750e0379336a.asciidoc index e9641e6a1..a7eb8de57 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:794 +// search/retriever.asciidoc:764 [source, python] ---- diff --git a/docs/examples/97c6c07f46f4177f0565a04bc50924a3.asciidoc b/docs/examples/97c6c07f46f4177f0565a04bc50924a3.asciidoc index 723e4a9b4..35f2440da 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:118 +// search/search-your-data/retrievers-examples.asciidoc:113 [source, python] ---- diff --git a/docs/examples/986f892bfa4dfdf1da8455fdf84a4b0c.asciidoc b/docs/examples/986f892bfa4dfdf1da8455fdf84a4b0c.asciidoc index c2d806deb..3e5ded035 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:231 +// inference/service-alibabacloud-ai-search.asciidoc:228 [source, python] ---- diff --git a/docs/examples/9a203aae3e1412d919546276fb52a5ca.asciidoc b/docs/examples/9a203aae3e1412d919546276fb52a5ca.asciidoc index 311f671bc..3d9cb9247 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:198 +// inference/service-cohere.asciidoc:196 [source, python] ---- diff --git a/docs/examples/9ab351893dae65ec97fd8cb6832950fb.asciidoc b/docs/examples/9ab351893dae65ec97fd8cb6832950fb.asciidoc index 3474cad83..f3393b1a2 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:1286 +// search/search-your-data/knn-search.asciidoc:1288 [source, python] ---- diff --git a/docs/examples/2cd8439db5054c93c49f1bf50433e1bb.asciidoc b/docs/examples/9aedc45f83e022732789e8d796f5a43c.asciidoc similarity index 96% rename from docs/examples/2cd8439db5054c93c49f1bf50433e1bb.asciidoc rename to docs/examples/9aedc45f83e022732789e8d796f5a43c.asciidoc index 47c71c482..0636b0a05 100644 --- a/docs/examples/2cd8439db5054c93c49f1bf50433e1bb.asciidoc +++ b/docs/examples/9aedc45f83e022732789e8d796f5a43c.asciidoc @@ -4,7 +4,6 @@ [source, python] ---- resp = client.cluster.reroute( - metric="none", commands=[ { "move": { diff --git a/docs/examples/9c2ce0132e4527077443f007d27b1158.asciidoc b/docs/examples/9c2ce0132e4527077443f007d27b1158.asciidoc index 2af70867a..64eb514f0 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:415 +// mapping/types/flattened.asciidoc:422 [source, python] ---- diff --git a/docs/examples/9d66cb59711f24e6b4ff85608c9b5a1b.asciidoc b/docs/examples/9d66cb59711f24e6b4ff85608c9b5a1b.asciidoc index dfe0eb762..46b5bc2ff 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:51 +// troubleshooting/common-issues/task-queue-backlog.asciidoc:73 [source, python] ---- diff --git a/docs/examples/9de4edafd22a8b9cb557632b2c8779cd.asciidoc b/docs/examples/9de4edafd22a8b9cb557632b2c8779cd.asciidoc index 855f95589..435e9f608 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:312 +// esql/esql-rest.asciidoc:309 [source, python] ---- diff --git a/docs/examples/9f03a8340761e729e8bdc8c7b6f66d98.asciidoc b/docs/examples/9f03a8340761e729e8bdc8c7b6f66d98.asciidoc deleted file mode 100644 index 79ecaa066..000000000 --- a/docs/examples/9f03a8340761e729e8bdc8c7b6f66d98.asciidoc +++ /dev/null @@ -1,20 +0,0 @@ -// 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 a8b12ac29..d9508e5ae 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:240 +// indices/simulate-template.asciidoc:241 [source, python] ---- diff --git a/docs/examples/a00311843b5f8f3e9f7d511334a828b1.asciidoc b/docs/examples/a00311843b5f8f3e9f7d511334a828b1.asciidoc index 5802d6251..9d5f860ed 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:97 +// rollup/apis/rollup-caps.asciidoc:98 [source, python] ---- diff --git a/docs/examples/a1070cf2f5969d42d71cda057223f152.asciidoc b/docs/examples/a1070cf2f5969d42d71cda057223f152.asciidoc index 5c00da449..2de683ba9 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:247 +// how-to/size-your-shards.asciidoc:248 [source, python] ---- diff --git a/docs/examples/a1b668795243398f5bc40bcc9bead884.asciidoc b/docs/examples/a1b668795243398f5bc40bcc9bead884.asciidoc index 8b80052b2..56d50d1b9 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:247 +// mapping/types/range.asciidoc:254 [source, python] ---- diff --git a/docs/examples/a1ccd51eef37e43c935a047b0ee15daa.asciidoc b/docs/examples/a1ccd51eef37e43c935a047b0ee15daa.asciidoc index 00ce45ab7..d2ad185f9 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:404 +// data-streams/downsampling-manual.asciidoc:401 [source, python] ---- diff --git a/docs/examples/a1dda7e7c01be96a4acf7b725d70385f.asciidoc b/docs/examples/a1dda7e7c01be96a4acf7b725d70385f.asciidoc index d8d5a4831..304ea62c6 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:714 +// search/retriever.asciidoc:684 [source, python] ---- diff --git a/docs/examples/a1f70bc71b763b58206814c40a7440e7.asciidoc b/docs/examples/a1f70bc71b763b58206814c40a7440e7.asciidoc index 03e109bd9..103eacdfc 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:54 +// rest-api/watcher/update-settings.asciidoc:47 [source, python] ---- diff --git a/docs/examples/a2566a2ed14ecc504ca27f85771c2638.asciidoc b/docs/examples/a2566a2ed14ecc504ca27f85771c2638.asciidoc deleted file mode 100644 index d8a541544..000000000 --- a/docs/examples/a2566a2ed14ecc504ca27f85771c2638.asciidoc +++ /dev/null @@ -1,29 +0,0 @@ -// 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 26d1c1ce8..a1a4feb8b 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:183 +// search/retriever.asciidoc:159 [source, python] ---- diff --git a/docs/examples/a3779f21f132787c48681bfb50453592.asciidoc b/docs/examples/a3779f21f132787c48681bfb50453592.asciidoc index 9e06dd98d..6b0436b24 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:100 +// ingest/processors/ip-location.asciidoc:85 [source, python] ---- diff --git a/docs/examples/a46f566ca031375658c22f89b87dc6d2.asciidoc b/docs/examples/a46f566ca031375658c22f89b87dc6d2.asciidoc new file mode 100644 index 000000000..b046f9db2 --- /dev/null +++ b/docs/examples/a46f566ca031375658c22f89b87dc6d2.asciidoc @@ -0,0 +1,12 @@ +// 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 62a6b9162..48329183c 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:148 +// mapping/types/date_nanos.asciidoc:155 [source, python] ---- diff --git a/docs/examples/a5e6ad9e65615f6f92ae6a19674dd742.asciidoc b/docs/examples/a5e6ad9e65615f6f92ae6a19674dd742.asciidoc index 9779c9745..35d77326c 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:593 +// query-dsl/percolate-query.asciidoc:595 [source, python] ---- diff --git a/docs/examples/a5f9eb40087921e67d820775acf71522.asciidoc b/docs/examples/a5f9eb40087921e67d820775acf71522.asciidoc index 43e78f484..c85c3543d 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:224 +// indices/put-mapping.asciidoc:218 [source, python] ---- diff --git a/docs/examples/a692b4c0ca7825c467880b346841f5a5.asciidoc b/docs/examples/a692b4c0ca7825c467880b346841f5a5.asciidoc index 91cfd9925..4069ff6d3 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:168 +// indices/put-mapping.asciidoc:162 [source, python] ---- diff --git a/docs/examples/a6ccac9f80c5e5efdaab992f3a32d919.asciidoc b/docs/examples/a6ccac9f80c5e5efdaab992f3a32d919.asciidoc index e87bec20f..d1b0285d8 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:428 +// data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc:407 [source, python] ---- diff --git a/docs/examples/a72613de3774571ba24def4b495161b5.asciidoc b/docs/examples/a72613de3774571ba24def4b495161b5.asciidoc index 11a947b90..790292f7e 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:434 +// indices/put-mapping.asciidoc:428 [source, python] ---- diff --git a/docs/examples/a7471238a42c7cd0f8a7ac9ea14dfbcb.asciidoc b/docs/examples/a7471238a42c7cd0f8a7ac9ea14dfbcb.asciidoc deleted file mode 100644 index f598509a4..000000000 --- a/docs/examples/a7471238a42c7cd0f8a7ac9ea14dfbcb.asciidoc +++ /dev/null @@ -1,62 +0,0 @@ -// 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 f308b760b..5801198e8 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:241 +// mapping/types/boolean.asciidoc:248 [source, python] ---- diff --git a/docs/examples/a8dff54362184b2732b9bd248cf6df8a.asciidoc b/docs/examples/a8dff54362184b2732b9bd248cf6df8a.asciidoc index fb1449003..2881a6771 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:411 +// mapping/types/range.asciidoc:418 [source, python] ---- diff --git a/docs/examples/a960b43e720b4934edb74ab4b085ca77.asciidoc b/docs/examples/a960b43e720b4934edb74ab4b085ca77.asciidoc index b1949984a..b48cffe85 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:85 +// connector/apis/list-connectors-api.asciidoc:88 [source, python] ---- diff --git a/docs/examples/a999b5661bebb802bbbfe04faacf1971.asciidoc b/docs/examples/a999b5661bebb802bbbfe04faacf1971.asciidoc index b8c02fe91..77df3aaa7 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:510 +// how-to/size-your-shards.asciidoc:511 [source, python] ---- diff --git a/docs/examples/a9f14efc26fdd3c37a71f06c310163d9.asciidoc b/docs/examples/a9f14efc26fdd3c37a71f06c310163d9.asciidoc index 68d4a5be9..79fb403e2 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:680 +// search/retriever.asciidoc:650 [source, python] ---- diff --git a/docs/examples/aa676d54a59dee87ecd28bcc1edce59b.asciidoc b/docs/examples/aa676d54a59dee87ecd28bcc1edce59b.asciidoc index 9a8dc2088..d6bbbd75a 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:195 +// inference/service-alibabacloud-ai-search.asciidoc:192 [source, python] ---- diff --git a/docs/examples/aa814309ad5f1630886ba75255b444f5.asciidoc b/docs/examples/aa814309ad5f1630886ba75255b444f5.asciidoc index d542f9477..9ced73fdc 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:80 +// troubleshooting/common-issues/task-queue-backlog.asciidoc:104 [source, python] ---- diff --git a/docs/examples/aad7d80990a6a3c391ff555ce09ae9dc.asciidoc b/docs/examples/aad7d80990a6a3c391ff555ce09ae9dc.asciidoc index db094b13f..adf825bb3 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:288 +// mapping/types/numeric.asciidoc:295 [source, python] ---- diff --git a/docs/examples/ac22cc2b0f4ad659055feed2852a2d59.asciidoc b/docs/examples/ac22cc2b0f4ad659055feed2852a2d59.asciidoc index 2fd88d8db..b722f9c00 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:1776 +// search/search-your-data/retrievers-examples.asciidoc:1485 [source, python] ---- diff --git a/docs/examples/ac497917ef707538198a8458ae3d5c6b.asciidoc b/docs/examples/ac497917ef707538198a8458ae3d5c6b.asciidoc index ee4ab8bd9..d0c229186 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:169 +// query-dsl/match-query.asciidoc:165 [source, python] ---- diff --git a/docs/examples/ac5b91aa75696f9880451c9439fd9eec.asciidoc b/docs/examples/ac5b91aa75696f9880451c9439fd9eec.asciidoc index 128528250..84f62b3bf 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:454 +// mapping/types/range.asciidoc:461 [source, python] ---- diff --git a/docs/examples/acc6cd860032167e34fa5e0c043ab3b0.asciidoc b/docs/examples/acc6cd860032167e34fa5e0c043ab3b0.asciidoc index 83bd847a4..ecfc1bbc9 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:338 +// query-dsl/query-string-query.asciidoc:335 [source, python] ---- diff --git a/docs/examples/ad2416ca0581316cee6c63129685bca5.asciidoc b/docs/examples/ad2416ca0581316cee6c63129685bca5.asciidoc index 3d857fa1a..c7ce73d94 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:501 +// query-dsl/query-string-query.asciidoc:498 [source, python] ---- diff --git a/docs/examples/add240aa149d8b11139947502b279ee0.asciidoc b/docs/examples/add240aa149d8b11139947502b279ee0.asciidoc index 3095f9ee1..eee73448f 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:418 +// search/search-your-data/paginate-search-results.asciidoc:403 [source, python] ---- diff --git a/docs/examples/ae4b57e167b81ffed537a8e6eaf7f855.asciidoc b/docs/examples/ae4b57e167b81ffed537a8e6eaf7f855.asciidoc deleted file mode 100644 index f131f8dfa..000000000 --- a/docs/examples/ae4b57e167b81ffed537a8e6eaf7f855.asciidoc +++ /dev/null @@ -1,22 +0,0 @@ -// This file is autogenerated, DO NOT EDIT -// search/retriever.asciidoc:1040 - -[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 b88af670d..0e01584d8 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:505 +// docs/bulk.asciidoc:509 [source, python] ---- diff --git a/docs/examples/af607715d0693587dd12962266359a96.asciidoc b/docs/examples/af607715d0693587dd12962266359a96.asciidoc index 2b5709f00..afd7cc471 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:216 +// snapshot-restore/repository-s3.asciidoc:232 [source, python] ---- diff --git a/docs/examples/afa11ebb493ebbfd77acbbe50d2ce6db.asciidoc b/docs/examples/afa11ebb493ebbfd77acbbe50d2ce6db.asciidoc index fcead7c24..591e3db08 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:594 +// data-streams/downsampling-manual.asciidoc:591 [source, python] ---- diff --git a/docs/examples/afef5cac988592b97ae289ab39c2f437.asciidoc b/docs/examples/afef5cac988592b97ae289ab39c2f437.asciidoc index 4ed1299b1..681761170 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:313 +// mapping/types/text.asciidoc:307 [source, python] ---- diff --git a/docs/examples/b0ee6f19875fe5bad8aab02d60e3532c.asciidoc b/docs/examples/b0ee6f19875fe5bad8aab02d60e3532c.asciidoc index df5a640e1..610238476 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:86 +// ingest/processors/geoip.asciidoc:85 [source, python] ---- diff --git a/docs/examples/b11a0675e49df0709be693297ca73a2c.asciidoc b/docs/examples/b11a0675e49df0709be693297ca73a2c.asciidoc index 2cee25e86..d86bed6c9 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:203 +// rest-api/info.asciidoc:199 [source, python] ---- diff --git a/docs/examples/d0595401ef09dc23579c9df111049c20.asciidoc b/docs/examples/b3479ee4586c15020549afae58d94d65.asciidoc similarity index 84% rename from docs/examples/d0595401ef09dc23579c9df111049c20.asciidoc rename to docs/examples/b3479ee4586c15020549afae58d94d65.asciidoc index 0159c24b9..2ae2dff35 100644 --- a/docs/examples/d0595401ef09dc23579c9df111049c20.asciidoc +++ b/docs/examples/b3479ee4586c15020549afae58d94d65.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/geo-point.asciidoc:221 +// mapping/types/geo-point.asciidoc:225 [source, python] ---- @@ -17,8 +17,7 @@ resp = client.indices.create( mappings={ "properties": { "point": { - "type": "geo_point", - "synthetic_source_keep": "arrays" + "type": "geo_point" } } }, @@ -30,13 +29,13 @@ resp1 = client.index( id="1", document={ "point": [ - { - "lat": 10, - "lon": 30 - }, { "lat": -90, "lon": -80 + }, + { + "lat": 10, + "lon": 30 } ] }, diff --git a/docs/examples/b3cd07f02059165fd62a2f148be3dc58.asciidoc b/docs/examples/b3cd07f02059165fd62a2f148be3dc58.asciidoc index 8d200d0d9..be7f57a49 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:252 +// mapping/types/numeric.asciidoc:259 [source, python] ---- diff --git a/docs/examples/f4c0e6a9b58b640200d02047f5aa36bf.asciidoc b/docs/examples/b3f442a7d9eb391121dcab991787f9d6.asciidoc similarity index 70% rename from docs/examples/f4c0e6a9b58b640200d02047f5aa36bf.asciidoc rename to docs/examples/b3f442a7d9eb391121dcab991787f9d6.asciidoc index ab3c64711..0f1dbf105 100644 --- a/docs/examples/f4c0e6a9b58b640200d02047f5aa36bf.asciidoc +++ b/docs/examples/b3f442a7d9eb391121dcab991787f9d6.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/keyword.asciidoc:292 +// mapping/types/binary.asciidoc:68 [source, python] ---- @@ -16,9 +16,9 @@ resp = client.indices.create( }, mappings={ "properties": { - "kwd": { - "type": "keyword", - "null_value": "NA" + "binary": { + "type": "binary", + "doc_values": True } } }, @@ -29,10 +29,9 @@ resp1 = client.index( index="idx", id="1", document={ - "kwd": [ - "foo", - None, - "bar" + "binary": [ + "IAA=", + "EAA=" ] }, ) diff --git a/docs/examples/b557f114e21dbc6f531d4e7621a08e8f.asciidoc b/docs/examples/b557f114e21dbc6f531d4e7621a08e8f.asciidoc index 67550d6d1..0b87c58c8 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:83 +// mapping/fields/source-field.asciidoc:80 [source, python] ---- diff --git a/docs/examples/b583bf8d3a2f49d633aa2cfed5606418.asciidoc b/docs/examples/b583bf8d3a2f49d633aa2cfed5606418.asciidoc index fc4cf9551..797108412 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:194 +// indices/put-component-template.asciidoc:196 [source, python] ---- diff --git a/docs/examples/b5bc1bb7278f2f95bc54790c78c928e0.asciidoc b/docs/examples/b5bc1bb7278f2f95bc54790c78c928e0.asciidoc index 30ad58e2e..0e8d41aca 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:169 +// rollup/apis/get-job.asciidoc:170 [source, python] ---- diff --git a/docs/examples/b68ed7037042719945a2452d23e64c78.asciidoc b/docs/examples/b68ed7037042719945a2452d23e64c78.asciidoc index 222a5fa01..ff3787f68 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:341 +// query-dsl/percolate-query.asciidoc:343 [source, python] ---- diff --git a/docs/examples/b7c99eb38d4b37e22de1ffcb0e88ae4c.asciidoc b/docs/examples/b7c99eb38d4b37e22de1ffcb0e88ae4c.asciidoc index df4925624..878f2ab0a 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:277 +// query-dsl/percolate-query.asciidoc:279 [source, python] ---- diff --git a/docs/examples/b87438263ccd68624b1d69d8750f9432.asciidoc b/docs/examples/b87438263ccd68624b1d69d8750f9432.asciidoc index 8e087b9ad..94db3486a 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:39 +// mapping/params/doc-values.asciidoc:37 [source, python] ---- diff --git a/docs/examples/b9370fa1aa18fe4bc00cf81ef0c0d45b.asciidoc b/docs/examples/b9370fa1aa18fe4bc00cf81ef0c0d45b.asciidoc index 022050b51..ce99d9c1b 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:321 +// query-dsl/query-string-query.asciidoc:318 [source, python] ---- diff --git a/docs/examples/b94cee0f74f57742b3948f9b784dfdd4.asciidoc b/docs/examples/b94cee0f74f57742b3948f9b784dfdd4.asciidoc index 6234e4d54..fca964943 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:552 +// search/search-your-data/paginate-search-results.asciidoc:537 [source, python] ---- diff --git a/docs/examples/ba0e7e0b18fc9ec6c623d40186d1f61b.asciidoc b/docs/examples/ba0e7e0b18fc9ec6c623d40186d1f61b.asciidoc index 906026b4b..c25ea798e 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:275 +// indices/resolve-cluster.asciidoc:271 [source, python] ---- diff --git a/docs/examples/ba650046f9063f6c43d76f47e0f94403.asciidoc b/docs/examples/ba650046f9063f6c43d76f47e0f94403.asciidoc index 567a7d3f2..9b94f645f 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:245 +// mapping/types/date.asciidoc:244 [source, python] ---- diff --git a/docs/examples/bb2ba5d1885f87506f90dbb002e518f4.asciidoc b/docs/examples/bb2ba5d1885f87506f90dbb002e518f4.asciidoc index 8af1b90b1..f1cecf299 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:875 +// search/search-your-data/retrievers-examples.asciidoc:604 [source, python] ---- diff --git a/docs/examples/bb5a67e3d2d9cd3016e487e627769fe8.asciidoc b/docs/examples/bb5a67e3d2d9cd3016e487e627769fe8.asciidoc index 426fbc79b..94bea00eb 100644 --- a/docs/examples/bb5a67e3d2d9cd3016e487e627769fe8.asciidoc +++ b/docs/examples/bb5a67e3d2d9cd3016e487e627769fe8.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// quickstart/esql-search-tutorial.asciidoc:151 +// quickstart/full-text-filtering-tutorial.asciidoc:129 [source, python] ---- diff --git a/docs/examples/bdaf00d791706d7fde25fd65d3735b94.asciidoc b/docs/examples/bdaf00d791706d7fde25fd65d3735b94.asciidoc index 53567d173..08227226e 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:178 +// mapping/types/keyword.asciidoc:184 [source, python] ---- diff --git a/docs/examples/be5c5a9c25901737585e4fff9195da3c.asciidoc b/docs/examples/be5c5a9c25901737585e4fff9195da3c.asciidoc index 370353f27..1590cce0b 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:428 +// mapping/types/dense-vector.asciidoc:435 [source, python] ---- diff --git a/docs/examples/beb0b9ff4f68672273fcff1b7bae706b.asciidoc b/docs/examples/beb0b9ff4f68672273fcff1b7bae706b.asciidoc index f039bd547..4f6931ca5 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:417 +// indices/put-mapping.asciidoc:411 [source, python] ---- diff --git a/docs/examples/befa73a8a419fcf3b7798548b54a20bf.asciidoc b/docs/examples/befa73a8a419fcf3b7798548b54a20bf.asciidoc index cd849bc8f..7bd330d62 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:1144 +// search/search-your-data/knn-search.asciidoc:1146 [source, python] ---- diff --git a/docs/examples/bf1de9fa1b825fa875d27fa08821a6d1.asciidoc b/docs/examples/bf1de9fa1b825fa875d27fa08821a6d1.asciidoc index 4fc505db3..7e2332729 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:120 +// esql/esql-across-clusters.asciidoc:119 [source, python] ---- diff --git a/docs/examples/bfdad8a928ea30d7cf60d0a0a6bc6e2e.asciidoc b/docs/examples/bfdad8a928ea30d7cf60d0a0a6bc6e2e.asciidoc index a3ffebb32..f252a8b5a 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:717 +// docs/bulk.asciidoc:721 [source, python] ---- diff --git a/docs/examples/c067182d385f59ce5952fb9a716fbf05.asciidoc b/docs/examples/c067182d385f59ce5952fb9a716fbf05.asciidoc index c71753127..44ec44783 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:69 +// ml/anomaly-detection/apis/post-calendar-event.asciidoc:85 [source, python] ---- diff --git a/docs/examples/c14bd2a793721615d2f42bce5eea9f1f.asciidoc b/docs/examples/c14bd2a793721615d2f42bce5eea9f1f.asciidoc deleted file mode 100644 index 0774fd002..000000000 --- a/docs/examples/c14bd2a793721615d2f42bce5eea9f1f.asciidoc +++ /dev/null @@ -1,26 +0,0 @@ -// 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 6b33919c4..0df79b777 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:99 +// connector/apis/list-connectors-api.asciidoc:102 [source, python] ---- diff --git a/docs/examples/c2c21e2824fbf6b7198ede30419da82b.asciidoc b/docs/examples/c2c21e2824fbf6b7198ede30419da82b.asciidoc index c3bf844e6..1f047c0e7 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:544 +// search/search-your-data/paginate-search-results.asciidoc:529 [source, python] ---- diff --git a/docs/examples/c4607ca79b2bcde39305d6f4f21cad37.asciidoc b/docs/examples/c4607ca79b2bcde39305d6f4f21cad37.asciidoc index fc9f61425..fd2d55854 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:228 +// esql/esql-rest.asciidoc:226 [source, python] ---- diff --git a/docs/examples/c49ce88ff64cdeadb7029959e80c8f84.asciidoc b/docs/examples/c49ce88ff64cdeadb7029959e80c8f84.asciidoc deleted file mode 100644 index 1f0144aee..000000000 --- a/docs/examples/c49ce88ff64cdeadb7029959e80c8f84.asciidoc +++ /dev/null @@ -1,24 +0,0 @@ -// 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 a40dd2988..8ff744913 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:389 +// indices/put-mapping.asciidoc:383 [source, python] ---- diff --git a/docs/examples/c5ed7d83ade97a417aef28b9e2871e5d.asciidoc b/docs/examples/c5ed7d83ade97a417aef28b9e2871e5d.asciidoc index 20fd3c613..a4d7c3543 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:190 +// ingest/common-log-format-example.asciidoc:189 [source, python] ---- diff --git a/docs/examples/c6339d09f85000a6432304b0ec63b8f6.asciidoc b/docs/examples/c6339d09f85000a6432304b0ec63b8f6.asciidoc index b6e01c2b8..514f0f8aa 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:234 +// indices/put-component-template.asciidoc:236 [source, python] ---- diff --git a/docs/examples/c6bdd5c7de79d6d9ac8e33a397b511e8.asciidoc b/docs/examples/c6bdd5c7de79d6d9ac8e33a397b511e8.asciidoc index 27af0e15c..0fe500a97 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:333 +// indices/put-mapping.asciidoc:327 [source, python] ---- diff --git a/docs/examples/c793efe7280e9b6e09981c4d4f832348.asciidoc b/docs/examples/c793efe7280e9b6e09981c4d4f832348.asciidoc index e46548ee1..dcdc437f8 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:159 +// mapping/types/ip.asciidoc:166 [source, python] ---- diff --git a/docs/examples/c9c396b94bb88098477e2b08b55a12ee.asciidoc b/docs/examples/c9c396b94bb88098477e2b08b55a12ee.asciidoc index 518cc6213..e300dd9bb 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:770 +// docs/bulk.asciidoc:774 [source, python] ---- diff --git a/docs/examples/ca5dda98e977125d40a7fe1e178e213f.asciidoc b/docs/examples/ca5dda98e977125d40a7fe1e178e213f.asciidoc index fccdd63d8..a6c8c5cb1 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:142 +// query-dsl/sparse-vector-query.asciidoc:134 [source, python] ---- diff --git a/docs/examples/cc5eefcc2102aae7e87b0c87b4af10b8.asciidoc b/docs/examples/cc5eefcc2102aae7e87b0c87b4af10b8.asciidoc index f00e52a51..b994f1ee9 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:56 +// esql/multivalued-fields.asciidoc:54 [source, python] ---- diff --git a/docs/examples/cdb68b3f565df7c85e52a55864b37d40.asciidoc b/docs/examples/cdb68b3f565df7c85e52a55864b37d40.asciidoc index e5437840c..f3ee218e6 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:370 +// indices/put-mapping.asciidoc:364 [source, python] ---- diff --git a/docs/examples/ce2c2e8f5a2e4daf051b6e10122e5aae.asciidoc b/docs/examples/ce2c2e8f5a2e4daf051b6e10122e5aae.asciidoc index 84120b35f..2e8eefb75 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:512 +// mapping/types/dense-vector.asciidoc:519 [source, python] ---- diff --git a/docs/examples/cf23f18761df33f08bc6f6d1875496fd.asciidoc b/docs/examples/cf23f18761df33f08bc6f6d1875496fd.asciidoc index 79ac096c2..b4b4bdf4e 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:398 +// how-to/size-your-shards.asciidoc:399 [source, python] ---- diff --git a/docs/examples/d01a590fa9ea8a0cb34ed8dda502296c.asciidoc b/docs/examples/d01a590fa9ea8a0cb34ed8dda502296c.asciidoc deleted file mode 100644 index 2aa1436ea..000000000 --- a/docs/examples/d01a590fa9ea8a0cb34ed8dda502296c.asciidoc +++ /dev/null @@ -1,11 +0,0 @@ -// 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/d0fde00ef381e61b8a9e99f18cb5970a.asciidoc b/docs/examples/d0fde00ef381e61b8a9e99f18cb5970a.asciidoc index a0eed8cd0..bfbfbdf58 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:184 +// query-dsl/simple-query-string-query.asciidoc:181 [source, python] ---- diff --git a/docs/examples/d1d8b6e642db1a7c70dbbf0fe6d8e92d.asciidoc b/docs/examples/d1d8b6e642db1a7c70dbbf0fe6d8e92d.asciidoc index 1ada14768..45bd12593 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:203 +// query-dsl/sparse-vector-query.asciidoc:195 [source, python] ---- diff --git a/docs/examples/d260225cf97e068ead2a8a6bb5aefd90.asciidoc b/docs/examples/d260225cf97e068ead2a8a6bb5aefd90.asciidoc index 7aaf95c43..691f89eb5 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:1550 +// analysis/analyzers/lang-analyzer.asciidoc:1551 [source, python] ---- diff --git a/docs/examples/d3a0f648d0fd50b54a4e9ebe363c5047.asciidoc b/docs/examples/d3a0f648d0fd50b54a4e9ebe363c5047.asciidoc index 693ffa099..fdf783f2b 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:226 +// search/search-your-data/retrievers-examples.asciidoc:221 [source, python] ---- diff --git a/docs/examples/d3dccdb15822e971ededb9f6f7d8ada1.asciidoc b/docs/examples/d3dccdb15822e971ededb9f6f7d8ada1.asciidoc index c2b12bf6e..f3ce80185 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:357 +// query-dsl/query-string-query.asciidoc:354 [source, python] ---- diff --git a/docs/examples/d5dcddc6398b473b6ad9bce5c6adf986.asciidoc b/docs/examples/d5dcddc6398b473b6ad9bce5c6adf986.asciidoc index 6f5abb838..a432416ab 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:450 +// search/search-your-data/paginate-search-results.asciidoc:435 [source, python] ---- diff --git a/docs/examples/d603e76ab70131f7ec6b08758f95a0e3.asciidoc b/docs/examples/d603e76ab70131f7ec6b08758f95a0e3.asciidoc index 340a46837..b2a1f1635 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:244 +// cat/recovery.asciidoc:148 [source, python] ---- diff --git a/docs/examples/d6a21afa4a94b9baa734eac430940bcf.asciidoc b/docs/examples/d6a21afa4a94b9baa734eac430940bcf.asciidoc index 077f80277..44333100e 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:92 +// connector/apis/list-connectors-api.asciidoc:95 [source, python] ---- diff --git a/docs/examples/d6a4548b29e939fb197189c20c7c016f.asciidoc b/docs/examples/d6a4548b29e939fb197189c20c7c016f.asciidoc new file mode 100644 index 000000000..55232f34a --- /dev/null +++ b/docs/examples/d6a4548b29e939fb197189c20c7c016f.asciidoc @@ -0,0 +1,17 @@ +// 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 a22bd28f0..3103cc120 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:341 +// mapping/types/text.asciidoc:335 [source, python] ---- diff --git a/docs/examples/d7a55a7c491e97079e429483085f1d58.asciidoc b/docs/examples/d7a55a7c491e97079e429483085f1d58.asciidoc index 4ab78399a..a09d7affa 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:68 +// data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc:60 [source, python] ---- diff --git a/docs/examples/d7a5b0159ffdcdd1ab9078b38829a08b.asciidoc b/docs/examples/d7a5b0159ffdcdd1ab9078b38829a08b.asciidoc index a87336b58..1992809fe 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:85 +// query-dsl/semantic-query.asciidoc:87 [source, python] ---- diff --git a/docs/examples/d7fe687201ac87b307cd06ed015dd317.asciidoc b/docs/examples/d7fe687201ac87b307cd06ed015dd317.asciidoc index c1c6f8b30..e713f4ada 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:294 +// indices/put-mapping.asciidoc:288 [source, python] ---- diff --git a/docs/examples/d803ed00d8f45f81c33e415e1c1ecb8c.asciidoc b/docs/examples/d803ed00d8f45f81c33e415e1c1ecb8c.asciidoc index e938c437f..8c7f478d6 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:646 +// data-streams/change-mappings-and-settings.asciidoc:642 [source, python] ---- diff --git a/docs/examples/d8496fa0e5a394fd758617ed6a6c956f.asciidoc b/docs/examples/d8496fa0e5a394fd758617ed6a6c956f.asciidoc index 7b786e31e..9b1fae207 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:371 +// query-dsl/percolate-query.asciidoc:373 [source, python] ---- diff --git a/docs/examples/d851282dba548251d10db5954a339307.asciidoc b/docs/examples/d851282dba548251d10db5954a339307.asciidoc index c81b69f08..e47caa602 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:151 +// search/search-your-data/paginate-search-results.asciidoc:136 [source, python] ---- diff --git a/docs/examples/da8db0769dff7305f178c12b1111bc99.asciidoc b/docs/examples/da8db0769dff7305f178c12b1111bc99.asciidoc index 12d20c3d4..5a683b93f 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:265 +// query-dsl/simple-query-string-query.asciidoc:262 [source, python] ---- diff --git a/docs/examples/dcf82f3aacae49c0bb4ccbc673f13e9f.asciidoc b/docs/examples/dcf82f3aacae49c0bb4ccbc673f13e9f.asciidoc index 87e687d7e..c98d06e98 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:1200 +// search/search-your-data/knn-search.asciidoc:1202 [source, python] ---- diff --git a/docs/examples/dd16c9c981551c9da47ebb5ef5105fa0.asciidoc b/docs/examples/dd16c9c981551c9da47ebb5ef5105fa0.asciidoc new file mode 100644 index 000000000..8ffce9166 --- /dev/null +++ b/docs/examples/dd16c9c981551c9da47ebb5ef5105fa0.asciidoc @@ -0,0 +1,57 @@ +// 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 79c3d4e11..79eadab36 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:243 +// esql/multivalued-fields.asciidoc:233 [source, python] ---- diff --git a/docs/examples/df04e2e9af66d5e30b1bfdbd458cab13.asciidoc b/docs/examples/df04e2e9af66d5e30b1bfdbd458cab13.asciidoc index e4d62925c..ce180edf2 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:238 +// how-to/size-your-shards.asciidoc:239 [source, python] ---- diff --git a/docs/examples/e017c2de6f93a8dd97f5c6e002dd5c4f.asciidoc b/docs/examples/e017c2de6f93a8dd97f5c6e002dd5c4f.asciidoc new file mode 100644 index 000000000..ad5ef4204 --- /dev/null +++ b/docs/examples/e017c2de6f93a8dd97f5c6e002dd5c4f.asciidoc @@ -0,0 +1,28 @@ +// 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 deleted file mode 100644 index 0cfee6490..000000000 --- a/docs/examples/e0db84e8f7dce49b9301ce997ae831dd.asciidoc +++ /dev/null @@ -1,22 +0,0 @@ -// This file is autogenerated, DO NOT EDIT -// search/retriever.asciidoc:1071 - -[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/e1c08f5774e81da31cd75aa1bdc2c548.asciidoc b/docs/examples/e1c08f5774e81da31cd75aa1bdc2c548.asciidoc index 285006ecf..6d6f4a99e 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:686 +// query-dsl/percolate-query.asciidoc:688 [source, python] ---- diff --git a/docs/examples/e308899a306e61d1a590868308689955.asciidoc b/docs/examples/e308899a306e61d1a590868308689955.asciidoc index 911aa3909..8773d24c2 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:151 +// ingest/processors/ip-location.asciidoc:136 [source, python] ---- diff --git a/docs/examples/e318759f4cc932154f540b748e85d6e1.asciidoc b/docs/examples/e318759f4cc932154f540b748e85d6e1.asciidoc deleted file mode 100644 index e1c12b182..000000000 --- a/docs/examples/e318759f4cc932154f540b748e85d6e1.asciidoc +++ /dev/null @@ -1,22 +0,0 @@ -// This file is autogenerated, DO NOT EDIT -// search/retriever.asciidoc:983 - -[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 0109eed73..d9002cd4d 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:67 +// troubleshooting/common-issues/task-queue-backlog.asciidoc:90 [source, python] ---- diff --git a/docs/examples/e4b6a6a921c97b4c0bbe97bd89f4cf33.asciidoc b/docs/examples/e4b6a6a921c97b4c0bbe97bd89f4cf33.asciidoc index a57a290f7..fcc4bd7da 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:28 +// data-streams/promote-data-stream-api.asciidoc:32 [source, python] ---- diff --git a/docs/examples/e4be53736bcc02b03068fd72fdbfe271.asciidoc b/docs/examples/e4be53736bcc02b03068fd72fdbfe271.asciidoc index 6a863ea8c..ee96d3031 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:120 +// indices/put-mapping.asciidoc:114 [source, python] ---- diff --git a/docs/examples/e563da4a2054efcdf0e53ead11caac1d.asciidoc b/docs/examples/e563da4a2054efcdf0e53ead11caac1d.asciidoc deleted file mode 100644 index 974feda9c..000000000 --- a/docs/examples/e563da4a2054efcdf0e53ead11caac1d.asciidoc +++ /dev/null @@ -1,11 +0,0 @@ -// 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/8f56ae0bf05093986e46a29fb0890a4f.asciidoc b/docs/examples/e5f50b31f165462d883ecbff45f74985.asciidoc similarity index 85% rename from docs/examples/8f56ae0bf05093986e46a29fb0890a4f.asciidoc rename to docs/examples/e5f50b31f165462d883ecbff45f74985.asciidoc index 3767c3a15..9d3eb5f2a 100644 --- a/docs/examples/8f56ae0bf05093986e46a29fb0890a4f.asciidoc +++ b/docs/examples/e5f50b31f165462d883ecbff45f74985.asciidoc @@ -21,7 +21,8 @@ resp = client.indices.put_template( "type": "keyword" }, "created_at": { - "type": "date" + "type": "date", + "format": "EEE MMM dd HH:mm:ss Z yyyy" } } }, diff --git a/docs/examples/e6f6d3aeea7ecea47cfd5c3d727f7004.asciidoc b/docs/examples/e6f6d3aeea7ecea47cfd5c3d727f7004.asciidoc index a5824b98c..28e0f8426 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:719 +// search/search-your-data/retrievers-examples.asciidoc:448 [source, python] ---- diff --git a/docs/examples/e715fb8c792bf09ac98f0ceca99beb84.asciidoc b/docs/examples/e715fb8c792bf09ac98f0ceca99beb84.asciidoc new file mode 100644 index 000000000..e799bf64f --- /dev/null +++ b/docs/examples/e715fb8c792bf09ac98f0ceca99beb84.asciidoc @@ -0,0 +1,10 @@ +// 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/725c957303ead2d509f148e0428d7250.asciidoc b/docs/examples/e784fc00894635470adfd78a0c46b427.asciidoc similarity index 85% rename from docs/examples/725c957303ead2d509f148e0428d7250.asciidoc rename to docs/examples/e784fc00894635470adfd78a0c46b427.asciidoc index fc04bb88d..a5c0ed26a 100644 --- a/docs/examples/725c957303ead2d509f148e0428d7250.asciidoc +++ b/docs/examples/e784fc00894635470adfd78a0c46b427.asciidoc @@ -18,7 +18,8 @@ resp = client.cluster.put_component_template( "type": "keyword" }, "created_at": { - "type": "date" + "type": "date", + "format": "EEE MMM dd HH:mm:ss Z yyyy" } } } diff --git a/docs/examples/e821d27a8b810821707ba860e31f8b78.asciidoc b/docs/examples/e821d27a8b810821707ba860e31f8b78.asciidoc index 2151278c1..d5cfc9760 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:244 +// indices/put-mapping.asciidoc:238 [source, python] ---- diff --git a/docs/examples/e8ea65153d7775f25b08dfdfe6954498.asciidoc b/docs/examples/e8ea65153d7775f25b08dfdfe6954498.asciidoc index a3539abb9..089cb7473 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:248 +// query-dsl/simple-query-string-query.asciidoc:245 [source, python] ---- diff --git a/docs/examples/e95e61988dc3073a007f7b7445dd233b.asciidoc b/docs/examples/e95e61988dc3073a007f7b7445dd233b.asciidoc index 61c72e9d6..58ddd86d2 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:204 +// data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc:192 [source, python] ---- diff --git a/docs/examples/ea68e3428cc2ca3455bf312d09451489.asciidoc b/docs/examples/ea68e3428cc2ca3455bf312d09451489.asciidoc index af12d96b8..a6ec582ef 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:1242 +// search/search-your-data/knn-search.asciidoc:1244 [source, python] ---- diff --git a/docs/examples/eb54506fbc71a7d250e86b22d0600114.asciidoc b/docs/examples/eb54506fbc71a7d250e86b22d0600114.asciidoc index 8168d2136..1b7faae1f 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:114 +// connector/apis/list-connectors-api.asciidoc:117 [source, python] ---- diff --git a/docs/examples/ec135f0cc0d3f526df68000b2a95c65b.asciidoc b/docs/examples/ec135f0cc0d3f526df68000b2a95c65b.asciidoc new file mode 100644 index 000000000..10f0be019 --- /dev/null +++ b/docs/examples/ec135f0cc0d3f526df68000b2a95c65b.asciidoc @@ -0,0 +1,12 @@ +// 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 cfc579861..effaf77bd 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:233 +// index-modules/slowlog.asciidoc:232 [source, python] ---- diff --git a/docs/examples/ec5a2ce156c36aaa267fa31dd9367307.asciidoc b/docs/examples/ec5a2ce156c36aaa267fa31dd9367307.asciidoc index 2b0f00fd7..08b09c56b 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:82 +// transform/checkpoints.asciidoc:80 [source, python] ---- diff --git a/docs/examples/edb25dc0162b039d477cb06aed2d6275.asciidoc b/docs/examples/edb25dc0162b039d477cb06aed2d6275.asciidoc index 835de5295..76902ca50 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:160 +// query-dsl/sparse-vector-query.asciidoc:152 [source, python] ---- diff --git a/docs/examples/1cbaa43d1c741ddd8a13e21791709527.asciidoc b/docs/examples/ef10e8d07d9fae945e035d5dee1e9754.asciidoc similarity index 72% rename from docs/examples/1cbaa43d1c741ddd8a13e21791709527.asciidoc rename to docs/examples/ef10e8d07d9fae945e035d5dee1e9754.asciidoc index f50b0b860..fd86870f5 100644 --- a/docs/examples/1cbaa43d1c741ddd8a13e21791709527.asciidoc +++ b/docs/examples/ef10e8d07d9fae945e035d5dee1e9754.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// analysis/tokenfilters/flatten-graph-tokenfilter.asciidoc:126 +// analysis/tokenfilters/flatten-graph-tokenfilter.asciidoc:118 [source, python] ---- @@ -9,7 +9,7 @@ resp = client.indices.analyze( { "type": "synonym_graph", "synonyms": [ - "internet phonebook, domain name system" + "dns, domain name system" ] }, "flatten_graph" diff --git a/docs/examples/ef866d06ffd96099957b077a53127c6c.asciidoc b/docs/examples/ef866d06ffd96099957b077a53127c6c.asciidoc deleted file mode 100644 index 20e857dc0..000000000 --- a/docs/examples/ef866d06ffd96099957b077a53127c6c.asciidoc +++ /dev/null @@ -1,17 +0,0 @@ -// 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 373fbf824..dedc1caaa 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:1745 +// analysis/analyzers/lang-analyzer.asciidoc:1746 [source, python] ---- diff --git a/docs/examples/f298c4eb50ea97b34c57f8756eb350d3.asciidoc b/docs/examples/f298c4eb50ea97b34c57f8756eb350d3.asciidoc index 53ca9632d..e6b401225 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:58 +// cat/pending_tasks.asciidoc:57 [source, python] ---- diff --git a/docs/examples/f29b2674299ddf51a25ed87619025ede.asciidoc b/docs/examples/f29b2674299ddf51a25ed87619025ede.asciidoc index ce3e50526..dfae20141 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:121 +// rollup/apis/rollup-search.asciidoc:122 [source, python] ---- diff --git a/docs/examples/f2a5f77f929cc7b893b80f4bd5b1a192.asciidoc b/docs/examples/f2a5f77f929cc7b893b80f4bd5b1a192.asciidoc index 864a3b8ba..322a5d096 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:71 +// connector/apis/get-connector-api.asciidoc:74 [source, python] ---- diff --git a/docs/examples/f32f0c19b42de3b87dd764fe4ca17e7c.asciidoc b/docs/examples/f32f0c19b42de3b87dd764fe4ca17e7c.asciidoc index cb8604ae9..34cd44cc4 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:423 +// query-dsl/query-string-query.asciidoc:420 [source, python] ---- diff --git a/docs/examples/f39512478cae2db8f4566a1e4af9e8f5.asciidoc b/docs/examples/f39512478cae2db8f4566a1e4af9e8f5.asciidoc index 271a51425..569f9d2ad 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:213 +// rollup/rollup-getting-started.asciidoc:217 [source, python] ---- diff --git a/docs/examples/f3fb52680482925c202c2e2f8af6f044.asciidoc b/docs/examples/f3fb52680482925c202c2e2f8af6f044.asciidoc index 260106272..bd1263028 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:458 +// how-to/size-your-shards.asciidoc:459 [source, python] ---- diff --git a/docs/examples/f60d6a7a9e7fd63f9ce1384f88c044cb.asciidoc b/docs/examples/f60d6a7a9e7fd63f9ce1384f88c044cb.asciidoc deleted file mode 100644 index 518951a31..000000000 --- a/docs/examples/f60d6a7a9e7fd63f9ce1384f88c044cb.asciidoc +++ /dev/null @@ -1,11 +0,0 @@ -// 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 1a38176a3..c5bc986e9 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:468 +// how-to/size-your-shards.asciidoc:469 [source, python] ---- diff --git a/docs/examples/f6d6d1f5c84cf4f6ccd71a84d193e483.asciidoc b/docs/examples/f6d6d1f5c84cf4f6ccd71a84d193e483.asciidoc deleted file mode 100644 index fbfba946c..000000000 --- a/docs/examples/f6d6d1f5c84cf4f6ccd71a84d193e483.asciidoc +++ /dev/null @@ -1,24 +0,0 @@ -// 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 f86a6169f..9506f1299 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:134 +// query-dsl/bool-query.asciidoc:91 [source, python] ---- diff --git a/docs/examples/f7ed127048694a1f5735e07a208b93ad.asciidoc b/docs/examples/f7ed127048694a1f5735e07a208b93ad.asciidoc deleted file mode 100644 index a1e5b3a69..000000000 --- a/docs/examples/f7ed127048694a1f5735e07a208b93ad.asciidoc +++ /dev/null @@ -1,20 +0,0 @@ -// 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 efde9a426..ef6a5206b 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:32 +// query-dsl/bool-query.asciidoc:39 [source, python] ---- diff --git a/docs/examples/f8cb1a04c2e487ff006b5ae0e1a7afbd.asciidoc b/docs/examples/f8cb1a04c2e487ff006b5ae0e1a7afbd.asciidoc index d66ed0a8c..f851ff1bc 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:178 +// rollup/apis/rollup-caps.asciidoc:181 [source, python] ---- diff --git a/docs/examples/f8f960550104c33e00dc78bc8723ccef.asciidoc b/docs/examples/f8f960550104c33e00dc78bc8723ccef.asciidoc index e79356e78..9b0699474 100644 --- a/docs/examples/f8f960550104c33e00dc78bc8723ccef.asciidoc +++ b/docs/examples/f8f960550104c33e00dc78bc8723ccef.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// quickstart/esql-search-tutorial.asciidoc:69 +// quickstart/full-text-filtering-tutorial.asciidoc:42 [source, python] ---- diff --git a/docs/examples/1af9742c71ce0587cd49a73ec7fc1f6c.asciidoc b/docs/examples/f95a4d7ab02bf400246c8822f0245f02.asciidoc similarity index 92% rename from docs/examples/1af9742c71ce0587cd49a73ec7fc1f6c.asciidoc rename to docs/examples/f95a4d7ab02bf400246c8822f0245f02.asciidoc index 413fb5602..0d7391c3e 100644 --- a/docs/examples/1af9742c71ce0587cd49a73ec7fc1f6c.asciidoc +++ b/docs/examples/f95a4d7ab02bf400246c8822f0245f02.asciidoc @@ -5,7 +5,7 @@ ---- resp = client.cat.ml_trained_models( h="c,o,l,ct,v", - v="ture", + v=True, ) print(resp) ---- diff --git a/docs/examples/f96d8131e8a592fbf6dfd686173940a9.asciidoc b/docs/examples/f96d8131e8a592fbf6dfd686173940a9.asciidoc index 7c9ed5b9c..051fb6d52 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:29 +// rest-api/watcher/update-settings.asciidoc:22 [source, python] ---- diff --git a/docs/examples/f994498dd6576be657dedce2822d2b9e.asciidoc b/docs/examples/f994498dd6576be657dedce2822d2b9e.asciidoc index 88b368f7b..b29501e73 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:126 +// search/search-your-data/semantic-text-hybrid-search:119 [source, python] ---- diff --git a/docs/examples/58fb1f324597070bee2cf854c162d388.asciidoc b/docs/examples/f9bad6fd369764185e1cb09b89ee39cc.asciidoc similarity index 73% rename from docs/examples/58fb1f324597070bee2cf854c162d388.asciidoc rename to docs/examples/f9bad6fd369764185e1cb09b89ee39cc.asciidoc index 009ed67d4..64d5b6209 100644 --- a/docs/examples/58fb1f324597070bee2cf854c162d388.asciidoc +++ b/docs/examples/f9bad6fd369764185e1cb09b89ee39cc.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/text.asciidoc:181 +// mapping/types/text.asciidoc:237 [source, python] ---- @@ -18,12 +18,7 @@ resp = client.indices.create( "properties": { "text": { "type": "text", - "fields": { - "kwd": { - "type": "keyword", - "null_value": "NA" - } - } + "store": True } } }, @@ -35,7 +30,6 @@ 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/fa88f6f5a7d728ec4f1d05244228cb09.asciidoc b/docs/examples/fa88f6f5a7d728ec4f1d05244228cb09.asciidoc index c1a005182..f123ea93c 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:153 +// query-dsl/bool-query.asciidoc:110 [source, python] ---- diff --git a/docs/examples/fad26f4fb5a1bc9c38db33394e877d94.asciidoc b/docs/examples/fad26f4fb5a1bc9c38db33394e877d94.asciidoc index 8c642c3db..3fb4bdc81 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:538 +// ml/df-analytics/apis/get-dfanalytics-stats.asciidoc:539 [source, python] ---- diff --git a/docs/examples/fb0152f6c70f647a8b6709969113486d.asciidoc b/docs/examples/fb0152f6c70f647a8b6709969113486d.asciidoc index ae302dda7..1548e7f1b 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:216 +// mapping/types/keyword.asciidoc:222 [source, python] ---- diff --git a/docs/examples/fe208d94ec93eabf3bd06139fa70701e.asciidoc b/docs/examples/fe208d94ec93eabf3bd06139fa70701e.asciidoc index 21882266f..f38b22cb3 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:58 +// rollup/migrating-to-downsampling.asciidoc:59 [source, python] ---- diff --git a/docs/examples/fe54f3e53dbe7dee40ec3108a461d19a.asciidoc b/docs/examples/fe54f3e53dbe7dee40ec3108a461d19a.asciidoc index a1cf06093..3b0334fe2 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:532 +// security/authentication/jwt-realm.asciidoc:522 [source, python] ---- diff --git a/docs/examples/fe6429d0d82174aa5acf95e96e237380.asciidoc b/docs/examples/fe6429d0d82174aa5acf95e96e237380.asciidoc index 2b0e615d4..efcf594b4 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:317 +// mapping/types/range.asciidoc:324 [source, python] ---- diff --git a/docs/examples/fe7169bab8e626f582c9ea87585d0f35.asciidoc b/docs/examples/fe7169bab8e626f582c9ea87585d0f35.asciidoc index e78fb939b..311ac7917 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:91 +// mapping/types/histogram.asciidoc:98 [source, python] ---- diff --git a/docs/examples/c2a9233c00ffa0aeb921edc072dd0c6f.asciidoc b/docs/examples/ffda10edaa7ce087703193c3cb95a426.asciidoc similarity index 94% rename from docs/examples/c2a9233c00ffa0aeb921edc072dd0c6f.asciidoc rename to docs/examples/ffda10edaa7ce087703193c3cb95a426.asciidoc index 4f3b13969..d88901a8f 100644 --- a/docs/examples/c2a9233c00ffa0aeb921edc072dd0c6f.asciidoc +++ b/docs/examples/ffda10edaa7ce087703193c3cb95a426.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/search-your-data/retrievers-examples.asciidoc:15 +// search/search-your-data/retrievers-examples.asciidoc:14 [source, python] ---- @@ -20,11 +20,7 @@ resp = client.indices.create( } }, "text": { - "type": "text", - "copy_to": "text_semantic" - }, - "text_semantic": { - "type": "semantic_text" + "type": "text" }, "year": { "type": "integer" diff --git a/docs/guide/release-notes.asciidoc b/docs/guide/release-notes.asciidoc index 0ec09aaec..c6fc0f39d 100644 --- a/docs/guide/release-notes.asciidoc +++ b/docs/guide/release-notes.asciidoc @@ -1,6 +1,33 @@ [[release-notes]] == Release notes +=== 8.19.1 (2025-09-11) + +- ES|QL query builder integration with the DSL module (https://github.com/elastic/elasticsearch-py/pull/3058[#3058]) +- ES|QL query builder robustness fixes (https://github.com/elastic/elasticsearch-py/pull/3017[#3017]) +- Fix ES|QL `multi_match()` signature (https://github.com/elastic/elasticsearch-py/pull/3052[#3052]) + +API + +- Add support for ES|QL query builder objects to ES|QL Query and Async Query APIs +- Add Amazon Sagemaker to Inference API +- Add `expand_wildcards` parameter to Snapshot Create API +- Add Transform Set Upgrade Mode API +- Fix type of `params` parameter of SQL Query API to array +- Fix type of `fields` parameter of Term Vectors API to array of strings + +DSL + +- Preserve the `skip_empty` setting in `to_dict()` recursive serializations (https://github.com/elastic/elasticsearch-py/pull/3041[#3041]) +- Add `ChunkingSettings` type +- Add `SemanticTextIndexOptions` type +- Add `exclude_vectors` attribute to `SourceFilter` type +- Add `SparseVectorIndexOptions` type +- Add `execution_hint` attribute to `TDigest` type +- Add `primary` attribute to `ShardFailure` type +- Fix type of `key` attribute of `ArrayPercentilesItem` to float + + === 8.19.0 (2025-07-30) - ES|QL query builder (technical preview) (https://github.com/elastic/elasticsearch-py/pull/2997[#2997]) diff --git a/elasticsearch/_version.py b/elasticsearch/_version.py index b1460500a..96d30639f 100644 --- a/elasticsearch/_version.py +++ b/elasticsearch/_version.py @@ -15,4 +15,4 @@ # specific language governing permissions and limitations # under the License. -__versionstr__ = "8.19.0" +__versionstr__ = "8.19.1" diff --git a/elasticsearch/dsl/response/aggs.py b/elasticsearch/dsl/response/aggs.py index 8994fa761..51360f3f6 100644 --- a/elasticsearch/dsl/response/aggs.py +++ b/elasticsearch/dsl/response/aggs.py @@ -63,7 +63,7 @@ def _wrap_bucket(self, data: Dict[str, Any]) -> Bucket[_R]: ) def __iter__(self) -> Iterator["Agg"]: # type: ignore[override] - return iter(self.buckets) # type: ignore[arg-type] + return iter(self.buckets) def __len__(self) -> int: return len(self.buckets)