From 0acaf27446e8d405b4e7a6ab1a24c7c14bbc3b58 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Sun, 8 Sep 2024 20:44:28 +0400 Subject: [PATCH 1/2] Release 8.15.1 --- .../00fea15cbca83be9d5f1a024ff2ec708.asciidoc | 2 +- ...01b23f09d2b7f140faf649eadbbf3ac3.asciidoc} | 2 +- .../033838729cfb5d1a28d04f69ee78d924.asciidoc | 2 +- .../0350ff5ebb8207c004eb771088339cb4.asciidoc | 2 +- .../09769561f082b50558fb7d8707719963.asciidoc | 2 +- .../09cb1b18bf4033b4afafb25bd3dab12c.asciidoc | 2 +- .../0ad8edd10542ec2c4d5d8700d7e2ba97.asciidoc | 2 +- .../0b47b0bef81b9b5eecfb3775695bd6ad.asciidoc | 2 +- ...0b4e50f1b5a0537cbb1a41276bb51c54.asciidoc} | 2 +- .../0e0d8f652d7d29371b5ea7c7544385eb.asciidoc | 2 +- .../0e3abd15dde97a2334621190c4ad4f96.asciidoc | 2 +- .../0e5d25c7bb738c42d471020d678e2966.asciidoc | 2 +- .../0ea2167ce7c87d311b20c4f8c698a8d0.asciidoc | 2 +- .../0fb7705ddbf1fc2b65d2de2e00fe5769.asciidoc | 2 +- .../10f0c8fed98455c460c374b50ffbb204.asciidoc | 2 +- .../113ac8466084ee6ac4ed272e342dc468.asciidoc | 2 +- .../13ebcb01ebf1b5d2b5c52739db47e30c.asciidoc | 2 +- .../13fe12cdb73bc89f07a83f1e6b127511.asciidoc | 23 ++++ .../14a33c364873c2f930ca83d0a3005389.asciidoc | 2 +- .../14afe65afee3d43f27aaaa5b37f26a31.asciidoc | 2 +- .../150b5fee5678bf8cdf0932da73eada80.asciidoc | 2 +- .../1736545c8b5674f6d311f3277eb387f1.asciidoc | 2 +- .../187733e50c60350f3f75921bea3b72c2.asciidoc | 2 +- .../19c00c6b29bc7dbc5e92b3668da2da93.asciidoc | 2 +- .../1b60ad542abb511cbd926ac8c55b609c.asciidoc | 21 ++++ .../1cadbcf2cfeb312f73b7f098291356ac.asciidoc | 2 +- .../1e0b85750d4e63ebbc927d4627c44bf8.asciidoc | 2 +- .../200f6d4cc7b9c300b8962a119e03873f.asciidoc | 2 +- .../20179a8889e949d6a8ee5fbf2ba35c96.asciidoc | 25 ++++ .../2081739da0c69de8af6f5bf9e94433e6.asciidoc | 2 +- .../22cb99d4e6ba3101a2d9f59764a90877.asciidoc | 2 +- .../2342a56279106ea643026df657bf7f88.asciidoc | 2 +- ...24a037008e0fc2550ecb6a5d36c04a93.asciidoc} | 2 +- .../24f4dfdf9922d5aa79151675b7767742.asciidoc | 2 +- .../2577acb462b95bd4394523cf2f8a661f.asciidoc | 33 ++++++ .../2826510e4aeb1c0d8dc43d317ed7624a.asciidoc | 2 +- .../2a9d3119a9e26e29220be436b9382955.asciidoc | 2 +- .../2e09666d3ad5ad9afc22763ee6e97a2b.asciidoc | 19 +++ .../2f98924c3d593ea2b60edb9cef5bee22.asciidoc | 2 +- .../318e209cc4d6f306e65cb2f5598a50b1.asciidoc | 2 +- .../349823d86980d40ac45248c19a59e339.asciidoc | 2 +- .../3758b8f2ab9f6f28a764ee6c42c85766.asciidoc | 2 +- .../37c73410bf13429279cbc61a413957d8.asciidoc | 2 +- .../3b1ff884f3bab390ae357e622c0544a9.asciidoc | 2 +- .../3c0d0c38e1c819a35a68cdba5ae8ccc4.asciidoc | 20 ++++ .../3faec4ca15d8c2fbbd16781b1c8693d6.asciidoc | 2 +- .../40bd86e400d27e68b8f0ae580c29d32d.asciidoc | 2 +- .../40f97f70e8e743c6a6296c81b920aeb0.asciidoc | 2 +- .../421e68e2b9789f0e8c08760d9e685d1c.asciidoc | 2 +- .../4342ccf6cc24fd80bd3cd1f9a4c2ef8e.asciidoc | 2 +- .../435e0d6a7d86e074d572d9671b7b9676.asciidoc | 2 +- .../47909e194d10743093f4a22c27a85925.asciidoc | 2 +- .../48de51de87a8ad9fd8b8db1ca25b85c1.asciidoc | 2 +- .../4982c547be1ad9455ae836990aea92c5.asciidoc | 11 ++ ...4a72c68b96f44e80463084dfc0449d51.asciidoc} | 2 +- .../4bef98a2dac575a50ee0783c2269f1db.asciidoc | 21 ++++ .../4c9350ed09b28f00e297ebe73c3b95a2.asciidoc | 2 +- .../4e50d9d25bfb07ac73e3a2be5d2fbbf7.asciidoc | 2 +- .../51b44224feee6e2e5974824334474c77.asciidoc | 2 +- .../528e5f1c345c3769248cc6889e8cf552.asciidoc | 2 +- .../529b975b7cedaac58dce9821956adc37.asciidoc | 2 +- .../52f4c5eb08d39f98e2e2f5527ece9731.asciidoc | 20 ++++ .../5457c94f0039c6b95c7f9f305d0c6b58.asciidoc | 2 +- .../54c12d5099d7b715c15f5bbf65b386a1.asciidoc | 22 ++++ .../553d79817bb1333970e99507c37a159a.asciidoc | 2 +- .../5619103306878d58a058bce87c5bd82b.asciidoc | 2 +- .../5837d5f50665ac0a26181d3aaeb3f204.asciidoc | 2 +- .../5dfb23f6e36ef484f1d3271bae76a8d1.asciidoc | 2 +- .../5f8fb5513d4f725434db2f517ad4298f.asciidoc | 2 +- ...5fd002a018c589eb73fadad25889dbe9.asciidoc} | 2 +- .../60d689aae3f8de1e6830329dfd69a6a6.asciidoc | 2 +- .../6636701d31b0c9eb8316f1f8e99cc918.asciidoc | 2 +- ...6ce6cac9df216c52371c2e77e6e07ba1.asciidoc} | 2 +- .../6f07152055e99416deb10e95b428b847.asciidoc | 2 +- .../6fbbf40cab0187f544ff7bca31d18d57.asciidoc | 2 +- .../6fd82baa17a48e09e3d2eed514af7f46.asciidoc | 2 +- .../70cc66bf4054ebf0ad4955cb99d9ab80.asciidoc | 2 +- .../71c629c44bf3c542a0daacbfc253c4b0.asciidoc | 2 +- .../72beebe779a258c225dee7b023e60c52.asciidoc | 2 +- .../72d33fbd72b0766b2f14ea27d9ccf0fa.asciidoc | 10 -- .../7594a9a85c8511701e281974cbc253e1.asciidoc | 2 +- .../75e360d03fb416f0a65ca37c662c2e9c.asciidoc | 2 +- .../7846974b47a3eab1832a475663d23ad9.asciidoc | 2 +- .../79e8bbbd6c440a21b0b4260c8cb1a61c.asciidoc | 2 +- .../7c63a1d2fbec5283e913ff39fafd0604.asciidoc | 21 ++++ .../7e74d1a54e816e8f40cfdaa01b070788.asciidoc | 2 +- .../7f2d511cb64743c006225e5933a14bb4.asciidoc | 2 +- .../81aad155ff23b1b396833b1182c9d46b.asciidoc | 16 +++ .../82844ef45e11c0eece100d3109db3182.asciidoc | 2 +- .../82eff1d681a5d0d1538ef011bb32ab9a.asciidoc | 18 +++ .../840f8c863c30b04abcf2dd66b846f157.asciidoc | 22 ++++ .../84e2cf7417c9e0c9e6f3c23031001440.asciidoc | 2 +- .../8566f5ecf4ae14802ba63c8cc7c629f8.asciidoc | 2 +- .../8582e918a6275472d2eba2e95f1dbe77.asciidoc | 2 +- .../861f5f61409dc87f3671293b87839ff7.asciidoc | 2 +- .../8a1b6eae4893c5dd27b3d81fd8d70f5b.asciidoc | 2 +- .../8d9b04f2a97f4229dec9e620126de049.asciidoc | 2 +- .../8f2875d976332cf5da8fb7764097a307.asciidoc | 23 ++++ .../909a032a9c1f7095b798444705b09ad6.asciidoc | 2 +- .../9326e323f7ffde678fa04d2d1de3d3bc.asciidoc | 25 ++++ .../93d7ba4130722cae04f9690e52a8f54f.asciidoc | 2 +- .../96ea0e80323d6d2d99964625c004a44d.asciidoc | 2 +- .../9868ce609f4450702934fcbf4c340bf1.asciidoc | 21 ++++ .../986f892bfa4dfdf1da8455fdf84a4b0c.asciidoc | 20 ++++ .../990c0d794ed6f05d1620b5d49f7aff6e.asciidoc | 2 +- .../9cb150d67dfa0947f29aa809bcc93c6e.asciidoc | 11 ++ .../9d396afad93782699d7a929578c85284.asciidoc | 20 ++++ .../9de4704d2f047dae1259249112488697.asciidoc | 2 +- .../9fda516a5dc60ba477b970eaad4429db.asciidoc | 2 +- .../9ff9b2a73419a6c82f17a358b4991499.asciidoc | 2 +- .../a1070cf2f5969d42d71cda057223f152.asciidoc | 2 +- .../a69c7c3412af73758f629e76263063b5.asciidoc | 18 +++ .../a6ccac9f80c5e5efdaab992f3a32d919.asciidoc | 2 +- .../a75765e3fb130421dde6c3c2f12e8acb.asciidoc | 15 +++ .../a89052bcdfe40e604a98d12be6ae59d2.asciidoc | 2 +- .../a999b5661bebb802bbbfe04faacf1971.asciidoc | 2 +- .../aa6282d4bc92c753c4bd7a5b166abece.asciidoc | 2 +- .../aa676d54a59dee87ecd28bcc1edce59b.asciidoc | 20 ++++ .../aa7cf5df36b867aee5e3314ac4b4fa68.asciidoc | 2 +- .../add240aa149d8b11139947502b279ee0.asciidoc | 2 +- .../aebf9cc593fcf0d4ca08f8b61b67bf17.asciidoc | 18 +++ .../afe87a2850326e0328fbebbefec2e839.asciidoc | 2 +- .../b02e4907c9936c1adc16ccce9d49900d.asciidoc | 2 +- ...b09f155602f9b2a6c40fe7c4a5436b7a.asciidoc} | 2 +- .../b0fe9a7c8e519995258786be4bef36c4.asciidoc | 2 +- .../b16700002af3aa70639f3e88c733bf35.asciidoc | 12 ++ .../b3fffd96fdb118cd059b5f1d67d928de.asciidoc | 2 +- .../b94cee0f74f57742b3948f9b784dfdd4.asciidoc | 2 +- .../bcdfaa4487747249699a86a0dcd22f5e.asciidoc | 2 +- .../bd68666ca2e0be12f7624016317a62bc.asciidoc | 2 +- .../bf1de9fa1b825fa875d27fa08821a6d1.asciidoc | 2 +- .../c03ce952de42eae4b522cedc9fd3d14a.asciidoc | 2 +- .../c21aaedb5752a83489476fa3b5e2e9ff.asciidoc | 2 +- .../c2c21e2824fbf6b7198ede30419da82b.asciidoc | 2 +- .../c6f07c53eda4db77305bb14751b3263f.asciidoc | 50 -------- .../ce2c2e8f5a2e4daf051b6e10122e5aae.asciidoc | 19 +++ .../cedb56a71cc743d80263ce352bb21720.asciidoc | 2 +- .../cf23f18761df33f08bc6f6d1875496fd.asciidoc | 2 +- .../d27591881da6f5767523b1beb233adc7.asciidoc | 13 ++ .../d5dcddc6398b473b6ad9bce5c6adf986.asciidoc | 2 +- .../df04e2e9af66d5e30b1bfdbd458cab13.asciidoc | 2 +- .../dfa16b7300d225e013f23625f44c087b.asciidoc | 2 +- .../dfce1be1d035aff0b8fdf4a8839f7795.asciidoc | 15 +++ .../e095fc96504efecc588f97673912e3d3.asciidoc | 2 +- .../e3f2f6ee3e312b8a90634827ae954d70.asciidoc | 2 +- .../e63775a2ff22b945ab9d5f630b80c506.asciidoc | 2 +- .../e7cfe670b4177d1011076f845ec2916c.asciidoc | 13 ++ .../e8c348cabe15dfe58ab4c3cc13a963fe.asciidoc | 2 +- .../ed60daeaec351fc8b3f39a3dfad6fc4e.asciidoc | 2 +- .../ee223e604bb695cad2517d28ae63ac34.asciidoc | 2 +- ...ef46c42d473b2acc151a6a41272e0f14.asciidoc} | 2 +- .../ef9c29759459904fef162acd223462c4.asciidoc | 2 +- ...efbd4936cca1a752493d8fa2ba6ad1a3.asciidoc} | 2 +- .../f160561efab38e40c2feebf5a2542ab5.asciidoc | 2 +- .../f3fb52680482925c202c2e2f8af6f044.asciidoc | 2 +- .../f4dc1286d0a2f8d1fde64fbf12fd9f8d.asciidoc | 2 +- .../f5eed3f2e3558a238487bc85305b7a71.asciidoc | 2 +- .../f6566395f85d3afe917228643d7318d6.asciidoc | 2 +- .../f9a315ea99bed0cf2f36be1d74eb3e4a.asciidoc | 2 +- .../fab4b811ba968aa4df92fb1ac059ea31.asciidoc | 2 +- .../fc49437ce2e7916facf58128308c2aa3.asciidoc | 2 +- .../fd738a9af7b5d21da31a7722f03aade8.asciidoc | 2 +- docs/guide/release-notes.asciidoc | 13 ++ elasticsearch/_version.py | 2 +- .../generate-docs-examples/package-lock.json | 112 ++++++++++++++---- 165 files changed, 788 insertions(+), 216 deletions(-) rename docs/examples/{e944653610f311fa06148d5b0afdf697.asciidoc => 01b23f09d2b7f140faf649eadbbf3ac3.asciidoc} (92%) rename docs/examples/{46025fc47dfbfa410790df0dd6bdad8d.asciidoc => 0b4e50f1b5a0537cbb1a41276bb51c54.asciidoc} (88%) create mode 100644 docs/examples/13fe12cdb73bc89f07a83f1e6b127511.asciidoc create mode 100644 docs/examples/1b60ad542abb511cbd926ac8c55b609c.asciidoc create mode 100644 docs/examples/20179a8889e949d6a8ee5fbf2ba35c96.asciidoc rename docs/examples/{da3cecc36a7313385d32c7f52ccfb7e3.asciidoc => 24a037008e0fc2550ecb6a5d36c04a93.asciidoc} (91%) create mode 100644 docs/examples/2577acb462b95bd4394523cf2f8a661f.asciidoc create mode 100644 docs/examples/2e09666d3ad5ad9afc22763ee6e97a2b.asciidoc create mode 100644 docs/examples/3c0d0c38e1c819a35a68cdba5ae8ccc4.asciidoc create mode 100644 docs/examples/4982c547be1ad9455ae836990aea92c5.asciidoc rename docs/examples/{cc28a3dafcd5056f2a3ec07f6fda5091.asciidoc => 4a72c68b96f44e80463084dfc0449d51.asciidoc} (90%) create mode 100644 docs/examples/4bef98a2dac575a50ee0783c2269f1db.asciidoc create mode 100644 docs/examples/52f4c5eb08d39f98e2e2f5527ece9731.asciidoc create mode 100644 docs/examples/54c12d5099d7b715c15f5bbf65b386a1.asciidoc rename docs/examples/{d595b40bf1ea71923f9824d0f9c99c49.asciidoc => 5fd002a018c589eb73fadad25889dbe9.asciidoc} (98%) rename docs/examples/{e619e896ce3dad9dcfc6f8700438be98.asciidoc => 6ce6cac9df216c52371c2e77e6e07ba1.asciidoc} (98%) delete mode 100644 docs/examples/72d33fbd72b0766b2f14ea27d9ccf0fa.asciidoc create mode 100644 docs/examples/7c63a1d2fbec5283e913ff39fafd0604.asciidoc create mode 100644 docs/examples/81aad155ff23b1b396833b1182c9d46b.asciidoc create mode 100644 docs/examples/82eff1d681a5d0d1538ef011bb32ab9a.asciidoc create mode 100644 docs/examples/840f8c863c30b04abcf2dd66b846f157.asciidoc create mode 100644 docs/examples/8f2875d976332cf5da8fb7764097a307.asciidoc create mode 100644 docs/examples/9326e323f7ffde678fa04d2d1de3d3bc.asciidoc create mode 100644 docs/examples/9868ce609f4450702934fcbf4c340bf1.asciidoc create mode 100644 docs/examples/986f892bfa4dfdf1da8455fdf84a4b0c.asciidoc create mode 100644 docs/examples/9cb150d67dfa0947f29aa809bcc93c6e.asciidoc create mode 100644 docs/examples/9d396afad93782699d7a929578c85284.asciidoc create mode 100644 docs/examples/a69c7c3412af73758f629e76263063b5.asciidoc create mode 100644 docs/examples/a75765e3fb130421dde6c3c2f12e8acb.asciidoc create mode 100644 docs/examples/aa676d54a59dee87ecd28bcc1edce59b.asciidoc create mode 100644 docs/examples/aebf9cc593fcf0d4ca08f8b61b67bf17.asciidoc rename docs/examples/{88ec7fa6768a7e13cd2158667a69e97f.asciidoc => b09f155602f9b2a6c40fe7c4a5436b7a.asciidoc} (89%) create mode 100644 docs/examples/b16700002af3aa70639f3e88c733bf35.asciidoc delete mode 100644 docs/examples/c6f07c53eda4db77305bb14751b3263f.asciidoc create mode 100644 docs/examples/ce2c2e8f5a2e4daf051b6e10122e5aae.asciidoc create mode 100644 docs/examples/d27591881da6f5767523b1beb233adc7.asciidoc create mode 100644 docs/examples/dfce1be1d035aff0b8fdf4a8839f7795.asciidoc create mode 100644 docs/examples/e7cfe670b4177d1011076f845ec2916c.asciidoc rename docs/examples/{4f792d86ff79dcfe4643cd95505f8d5f.asciidoc => ef46c42d473b2acc151a6a41272e0f14.asciidoc} (90%) rename docs/examples/{4fe78a4dfb747fd5dc34145ec6b76183.asciidoc => efbd4936cca1a752493d8fa2ba6ad1a3.asciidoc} (89%) diff --git a/docs/examples/00fea15cbca83be9d5f1a024ff2ec708.asciidoc b/docs/examples/00fea15cbca83be9d5f1a024ff2ec708.asciidoc index 22b4df510..b7885f45d 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:93 +// inference/service-elasticsearch.asciidoc:112 [source, python] ---- diff --git a/docs/examples/e944653610f311fa06148d5b0afdf697.asciidoc b/docs/examples/01b23f09d2b7f140faf649eadbbf3ac3.asciidoc similarity index 92% rename from docs/examples/e944653610f311fa06148d5b0afdf697.asciidoc rename to docs/examples/01b23f09d2b7f140faf649eadbbf3ac3.asciidoc index 79faa0c40..b3dcd8bc1 100644 --- a/docs/examples/e944653610f311fa06148d5b0afdf697.asciidoc +++ b/docs/examples/01b23f09d2b7f140faf649eadbbf3ac3.asciidoc @@ -25,7 +25,7 @@ resp1 = client.cluster.put_component_template( "day_of_week": { "type": "keyword", "script": { - "source": "emit(doc['@timestamp'].value.dayOfWeekEnum.getDisplayName(TextStyle.FULL, Locale.ROOT))" + "source": "emit(doc['@timestamp'].value.dayOfWeekEnum.getDisplayName(TextStyle.FULL, Locale.ENGLISH))" } } } diff --git a/docs/examples/033838729cfb5d1a28d04f69ee78d924.asciidoc b/docs/examples/033838729cfb5d1a28d04f69ee78d924.asciidoc index f7ac4831e..da31875ce 100644 --- a/docs/examples/033838729cfb5d1a28d04f69ee78d924.asciidoc +++ b/docs/examples/033838729cfb5d1a28d04f69ee78d924.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/geo-shape.asciidoc:300 +// mapping/types/geo-shape.asciidoc:299 [source, python] ---- diff --git a/docs/examples/0350ff5ebb8207c004eb771088339cb4.asciidoc b/docs/examples/0350ff5ebb8207c004eb771088339cb4.asciidoc index 5a6d5b272..c815c5834 100644 --- a/docs/examples/0350ff5ebb8207c004eb771088339cb4.asciidoc +++ b/docs/examples/0350ff5ebb8207c004eb771088339cb4.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/rrf.asciidoc:123 +// search/rrf.asciidoc:121 [source, python] ---- diff --git a/docs/examples/09769561f082b50558fb7d8707719963.asciidoc b/docs/examples/09769561f082b50558fb7d8707719963.asciidoc index 87f56806d..9eb29e774 100644 --- a/docs/examples/09769561f082b50558fb7d8707719963.asciidoc +++ b/docs/examples/09769561f082b50558fb7d8707719963.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// cluster/nodes-stats.asciidoc:2434 +// cluster/nodes-stats.asciidoc:2578 [source, python] ---- diff --git a/docs/examples/09cb1b18bf4033b4afafb25bd3dab12c.asciidoc b/docs/examples/09cb1b18bf4033b4afafb25bd3dab12c.asciidoc index 6cc396207..6e910f0cc 100644 --- a/docs/examples/09cb1b18bf4033b4afafb25bd3dab12c.asciidoc +++ b/docs/examples/09cb1b18bf4033b4afafb25bd3dab12c.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-dsl/rule-query.asciidoc:64 +// query-dsl/rule-query.asciidoc:65 [source, python] ---- diff --git a/docs/examples/0ad8edd10542ec2c4d5d8700d7e2ba97.asciidoc b/docs/examples/0ad8edd10542ec2c4d5d8700d7e2ba97.asciidoc index 67f603109..25df3cdc2 100644 --- a/docs/examples/0ad8edd10542ec2c4d5d8700d7e2ba97.asciidoc +++ b/docs/examples/0ad8edd10542ec2c4d5d8700d7e2ba97.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// inference/service-amazon-bedrock.asciidoc:144 +// inference/service-amazon-bedrock.asciidoc:136 [source, python] ---- diff --git a/docs/examples/0b47b0bef81b9b5eecfb3775695bd6ad.asciidoc b/docs/examples/0b47b0bef81b9b5eecfb3775695bd6ad.asciidoc index e5a96397e..3c86a66ca 100644 --- a/docs/examples/0b47b0bef81b9b5eecfb3775695bd6ad.asciidoc +++ b/docs/examples/0b47b0bef81b9b5eecfb3775695bd6ad.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// monitoring/production.asciidoc:94 +// monitoring/production.asciidoc:96 [source, python] ---- diff --git a/docs/examples/46025fc47dfbfa410790df0dd6bdad8d.asciidoc b/docs/examples/0b4e50f1b5a0537cbb1a41276bb51c54.asciidoc similarity index 88% rename from docs/examples/46025fc47dfbfa410790df0dd6bdad8d.asciidoc rename to docs/examples/0b4e50f1b5a0537cbb1a41276bb51c54.asciidoc index 09a07d416..f01b365fd 100644 --- a/docs/examples/46025fc47dfbfa410790df0dd6bdad8d.asciidoc +++ b/docs/examples/0b4e50f1b5a0537cbb1a41276bb51c54.asciidoc @@ -9,7 +9,7 @@ resp = client.search( "day_of_week": { "type": "keyword", "script": { - "source": "emit(doc['@timestamp'].value.dayOfWeekEnum\n .getDisplayName(TextStyle.FULL, Locale.ROOT))" + "source": "emit(doc['@timestamp'].value.dayOfWeekEnum\n .getDisplayName(TextStyle.FULL, Locale.ENGLISH))" } } }, diff --git a/docs/examples/0e0d8f652d7d29371b5ea7c7544385eb.asciidoc b/docs/examples/0e0d8f652d7d29371b5ea7c7544385eb.asciidoc index ffaec157b..785b7fef3 100644 --- a/docs/examples/0e0d8f652d7d29371b5ea7c7544385eb.asciidoc +++ b/docs/examples/0e0d8f652d7d29371b5ea7c7544385eb.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// tab-widgets/inference-api/infer-api-search.asciidoc:473 +// tab-widgets/inference-api/infer-api-search.asciidoc:538 [source, python] ---- diff --git a/docs/examples/0e3abd15dde97a2334621190c4ad4f96.asciidoc b/docs/examples/0e3abd15dde97a2334621190c4ad4f96.asciidoc index 11980d875..1067fa1a5 100644 --- a/docs/examples/0e3abd15dde97a2334621190c4ad4f96.asciidoc +++ b/docs/examples/0e3abd15dde97a2334621190c4ad4f96.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// tab-widgets/inference-api/infer-api-ingest-pipeline.asciidoc:171 +// tab-widgets/inference-api/infer-api-ingest-pipeline.asciidoc:197 [source, python] ---- diff --git a/docs/examples/0e5d25c7bb738c42d471020d678e2966.asciidoc b/docs/examples/0e5d25c7bb738c42d471020d678e2966.asciidoc index e59605478..3baa81cf2 100644 --- a/docs/examples/0e5d25c7bb738c42d471020d678e2966.asciidoc +++ b/docs/examples/0e5d25c7bb738c42d471020d678e2966.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// ml/trained-models/apis/start-trained-model-deployment.asciidoc:173 +// ml/trained-models/apis/start-trained-model-deployment.asciidoc:200 [source, python] ---- diff --git a/docs/examples/0ea2167ce7c87d311b20c4f8c698a8d0.asciidoc b/docs/examples/0ea2167ce7c87d311b20c4f8c698a8d0.asciidoc index c1e1b6a99..bbccc1dc4 100644 --- a/docs/examples/0ea2167ce7c87d311b20c4f8c698a8d0.asciidoc +++ b/docs/examples/0ea2167ce7c87d311b20c4f8c698a8d0.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/point-in-time-api.asciidoc:152 +// search/point-in-time-api.asciidoc:190 [source, python] ---- diff --git a/docs/examples/0fb7705ddbf1fc2b65d2de2e00fe5769.asciidoc b/docs/examples/0fb7705ddbf1fc2b65d2de2e00fe5769.asciidoc index e351212f5..5021fce0e 100644 --- a/docs/examples/0fb7705ddbf1fc2b65d2de2e00fe5769.asciidoc +++ b/docs/examples/0fb7705ddbf1fc2b65d2de2e00fe5769.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// aggregations/metrics/scripted-metric-aggregation.asciidoc:59 +// aggregations/metrics/scripted-metric-aggregation.asciidoc:61 [source, python] ---- diff --git a/docs/examples/10f0c8fed98455c460c374b50ffbb204.asciidoc b/docs/examples/10f0c8fed98455c460c374b50ffbb204.asciidoc index 0d27bf65c..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:299 +// data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc:301 [source, python] ---- diff --git a/docs/examples/113ac8466084ee6ac4ed272e342dc468.asciidoc b/docs/examples/113ac8466084ee6ac4ed272e342dc468.asciidoc index 2a96d4dfe..dde6989d5 100644 --- a/docs/examples/113ac8466084ee6ac4ed272e342dc468.asciidoc +++ b/docs/examples/113ac8466084ee6ac4ed272e342dc468.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// tab-widgets/inference-api/infer-api-reindex.asciidoc:161 +// tab-widgets/inference-api/infer-api-reindex.asciidoc:183 [source, python] ---- diff --git a/docs/examples/13ebcb01ebf1b5d2b5c52739db47e30c.asciidoc b/docs/examples/13ebcb01ebf1b5d2b5c52739db47e30c.asciidoc index 88ec7cb6a..29086570d 100644 --- a/docs/examples/13ebcb01ebf1b5d2b5c52739db47e30c.asciidoc +++ b/docs/examples/13ebcb01ebf1b5d2b5c52739db47e30c.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// indices/recovery.asciidoc:193 +// indices/recovery.asciidoc:179 [source, python] ---- diff --git a/docs/examples/13fe12cdb73bc89f07a83f1e6b127511.asciidoc b/docs/examples/13fe12cdb73bc89f07a83f1e6b127511.asciidoc new file mode 100644 index 000000000..05218b351 --- /dev/null +++ b/docs/examples/13fe12cdb73bc89f07a83f1e6b127511.asciidoc @@ -0,0 +1,23 @@ +// This file is autogenerated, DO NOT EDIT +// tab-widgets/inference-api/infer-api-mapping.asciidoc:208 + +[source, python] +---- +resp = client.indices.create( + index="google-vertex-ai-embeddings", + mappings={ + "properties": { + "content_embedding": { + "type": "dense_vector", + "dims": 768, + "element_type": "float", + "similarity": "dot_product" + }, + "content": { + "type": "text" + } + } + }, +) +print(resp) +---- diff --git a/docs/examples/14a33c364873c2f930ca83d0a3005389.asciidoc b/docs/examples/14a33c364873c2f930ca83d0a3005389.asciidoc index 4adbc677c..a609fa01a 100644 --- a/docs/examples/14a33c364873c2f930ca83d0a3005389.asciidoc +++ b/docs/examples/14a33c364873c2f930ca83d0a3005389.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// troubleshooting/common-issues/disk-usage-exceeded.asciidoc:34 +// troubleshooting/common-issues/disk-usage-exceeded.asciidoc:42 [source, python] ---- diff --git a/docs/examples/14afe65afee3d43f27aaaa5b37f26a31.asciidoc b/docs/examples/14afe65afee3d43f27aaaa5b37f26a31.asciidoc index aa8d3a08b..b9b03db2a 100644 --- a/docs/examples/14afe65afee3d43f27aaaa5b37f26a31.asciidoc +++ b/docs/examples/14afe65afee3d43f27aaaa5b37f26a31.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/geo-shape.asciidoc:165 +// mapping/types/geo-shape.asciidoc:164 [source, python] ---- diff --git a/docs/examples/150b5fee5678bf8cdf0932da73eada80.asciidoc b/docs/examples/150b5fee5678bf8cdf0932da73eada80.asciidoc index aae9630af..fb07636cc 100644 --- a/docs/examples/150b5fee5678bf8cdf0932da73eada80.asciidoc +++ b/docs/examples/150b5fee5678bf8cdf0932da73eada80.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// cluster/nodes-stats.asciidoc:2402 +// cluster/nodes-stats.asciidoc:2546 [source, python] ---- diff --git a/docs/examples/1736545c8b5674f6d311f3277eb387f1.asciidoc b/docs/examples/1736545c8b5674f6d311f3277eb387f1.asciidoc index 8f797780e..38d197cb5 100644 --- a/docs/examples/1736545c8b5674f6d311f3277eb387f1.asciidoc +++ b/docs/examples/1736545c8b5674f6d311f3277eb387f1.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// data-streams/lifecycle/tutorial-manage-existing-data-stream.asciidoc:30 +// data-streams/lifecycle/tutorial-manage-data-stream-retention.asciidoc:131 [source, python] ---- diff --git a/docs/examples/187733e50c60350f3f75921bea3b72c2.asciidoc b/docs/examples/187733e50c60350f3f75921bea3b72c2.asciidoc index 301522fec..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:613 +// search/search-your-data/paginate-search-results.asciidoc:615 [source, python] ---- diff --git a/docs/examples/19c00c6b29bc7dbc5e92b3668da2da93.asciidoc b/docs/examples/19c00c6b29bc7dbc5e92b3668da2da93.asciidoc index 43da2db77..b41aa69e7 100644 --- a/docs/examples/19c00c6b29bc7dbc5e92b3668da2da93.asciidoc +++ b/docs/examples/19c00c6b29bc7dbc5e92b3668da2da93.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// ingest/apis/simulate-ingest.asciidoc:201 +// ingest/apis/simulate-ingest.asciidoc:205 [source, python] ---- diff --git a/docs/examples/1b60ad542abb511cbd926ac8c55b609c.asciidoc b/docs/examples/1b60ad542abb511cbd926ac8c55b609c.asciidoc new file mode 100644 index 000000000..4e3a57eb3 --- /dev/null +++ b/docs/examples/1b60ad542abb511cbd926ac8c55b609c.asciidoc @@ -0,0 +1,21 @@ +// This file is autogenerated, DO NOT EDIT +// inference/service-elser.asciidoc:141 + +[source, python] +---- +resp = client.inference.put( + task_type="sparse_embedding", + inference_id="my-elser-model", + inference_config={ + "service": "elser", + "service_settings": { + "adaptive_allocations": { + "enabled": True, + "min_number_of_allocations": 3, + "max_number_of_allocations": 10 + } + } + }, +) +print(resp) +---- diff --git a/docs/examples/1cadbcf2cfeb312f73b7f098291356ac.asciidoc b/docs/examples/1cadbcf2cfeb312f73b7f098291356ac.asciidoc index 1daa63c88..01210bb08 100644 --- a/docs/examples/1cadbcf2cfeb312f73b7f098291356ac.asciidoc +++ b/docs/examples/1cadbcf2cfeb312f73b7f098291356ac.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/geo-shape.asciidoc:346 +// mapping/types/geo-shape.asciidoc:345 [source, python] ---- diff --git a/docs/examples/1e0b85750d4e63ebbc927d4627c44bf8.asciidoc b/docs/examples/1e0b85750d4e63ebbc927d4627c44bf8.asciidoc index a5c7cca2e..7083e786e 100644 --- a/docs/examples/1e0b85750d4e63ebbc927d4627c44bf8.asciidoc +++ b/docs/examples/1e0b85750d4e63ebbc927d4627c44bf8.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// how-to/size-your-shards.asciidoc:599 +// how-to/size-your-shards.asciidoc:601 [source, python] ---- diff --git a/docs/examples/200f6d4cc7b9c300b8962a119e03873f.asciidoc b/docs/examples/200f6d4cc7b9c300b8962a119e03873f.asciidoc index 469859101..9548b036a 100644 --- a/docs/examples/200f6d4cc7b9c300b8962a119e03873f.asciidoc +++ b/docs/examples/200f6d4cc7b9c300b8962a119e03873f.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// indices/get-data-stream.asciidoc:276 +// indices/get-data-stream.asciidoc:280 [source, python] ---- diff --git a/docs/examples/20179a8889e949d6a8ee5fbf2ba35c96.asciidoc b/docs/examples/20179a8889e949d6a8ee5fbf2ba35c96.asciidoc new file mode 100644 index 000000000..1504b4812 --- /dev/null +++ b/docs/examples/20179a8889e949d6a8ee5fbf2ba35c96.asciidoc @@ -0,0 +1,25 @@ +// This file is autogenerated, DO NOT EDIT +// tab-widgets/inference-api/infer-api-search.asciidoc:408 + +[source, python] +---- +resp = client.search( + index="google-vertex-ai-embeddings", + knn={ + "field": "content_embedding", + "query_vector_builder": { + "text_embedding": { + "model_id": "google_vertex_ai_embeddings", + "model_text": "Calculate fuel cost" + } + }, + "k": 10, + "num_candidates": 100 + }, + source=[ + "id", + "content" + ], +) +print(resp) +---- diff --git a/docs/examples/2081739da0c69de8af6f5bf9e94433e6.asciidoc b/docs/examples/2081739da0c69de8af6f5bf9e94433e6.asciidoc index ce0ada6f8..316ecfda1 100644 --- a/docs/examples/2081739da0c69de8af6f5bf9e94433e6.asciidoc +++ b/docs/examples/2081739da0c69de8af6f5bf9e94433e6.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/geo-shape.asciidoc:377 +// mapping/types/geo-shape.asciidoc:376 [source, python] ---- diff --git a/docs/examples/22cb99d4e6ba3101a2d9f59764a90877.asciidoc b/docs/examples/22cb99d4e6ba3101a2d9f59764a90877.asciidoc index 82acbb61e..cc9ca8f98 100644 --- a/docs/examples/22cb99d4e6ba3101a2d9f59764a90877.asciidoc +++ b/docs/examples/22cb99d4e6ba3101a2d9f59764a90877.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/geo-shape.asciidoc:178 +// mapping/types/geo-shape.asciidoc:177 [source, python] ---- diff --git a/docs/examples/2342a56279106ea643026df657bf7f88.asciidoc b/docs/examples/2342a56279106ea643026df657bf7f88.asciidoc index ac00ed482..5422d12d1 100644 --- a/docs/examples/2342a56279106ea643026df657bf7f88.asciidoc +++ b/docs/examples/2342a56279106ea643026df657bf7f88.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// index-modules/similarity.asciidoc:22 +// index-modules/similarity.asciidoc:24 [source, python] ---- diff --git a/docs/examples/da3cecc36a7313385d32c7f52ccfb7e3.asciidoc b/docs/examples/24a037008e0fc2550ecb6a5d36c04a93.asciidoc similarity index 91% rename from docs/examples/da3cecc36a7313385d32c7f52ccfb7e3.asciidoc rename to docs/examples/24a037008e0fc2550ecb6a5d36c04a93.asciidoc index 18e289782..26962a44e 100644 --- a/docs/examples/da3cecc36a7313385d32c7f52ccfb7e3.asciidoc +++ b/docs/examples/24a037008e0fc2550ecb6a5d36c04a93.asciidoc @@ -9,7 +9,7 @@ resp = client.search( runtime_mappings={ "date.day_of_week": { "type": "keyword", - "script": "emit(doc['date'].value.dayOfWeekEnum.getDisplayName(TextStyle.FULL, Locale.ROOT))" + "script": "emit(doc['date'].value.dayOfWeekEnum.getDisplayName(TextStyle.FULL, Locale.ENGLISH))" } }, aggs={ diff --git a/docs/examples/24f4dfdf9922d5aa79151675b7767742.asciidoc b/docs/examples/24f4dfdf9922d5aa79151675b7767742.asciidoc index b10bdf250..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:383 +// search/search-your-data/paginate-search-results.asciidoc:385 [source, python] ---- diff --git a/docs/examples/2577acb462b95bd4394523cf2f8a661f.asciidoc b/docs/examples/2577acb462b95bd4394523cf2f8a661f.asciidoc new file mode 100644 index 000000000..d8e5f8698 --- /dev/null +++ b/docs/examples/2577acb462b95bd4394523cf2f8a661f.asciidoc @@ -0,0 +1,33 @@ +// This file is autogenerated, DO NOT EDIT +// esql/processing-commands/lookup.asciidoc:30 + +[source, python] +---- +resp = client.esql.query( + format="txt", + query="\n FROM library\n | SORT page_count DESC\n | KEEP name, author\n | LOOKUP era ON author\n | LIMIT 5\n ", + tables={ + "era": { + "author": { + "keyword": [ + "Frank Herbert", + "Peter F. Hamilton", + "Vernor Vinge", + "Alastair Reynolds", + "James S.A. Corey" + ] + }, + "era": { + "keyword": [ + "The New Wave", + "Diamond", + "Diamond", + "Diamond", + "Hadron" + ] + } + } + }, +) +print(resp) +---- diff --git a/docs/examples/2826510e4aeb1c0d8dc43d317ed7624a.asciidoc b/docs/examples/2826510e4aeb1c0d8dc43d317ed7624a.asciidoc index d50cf7897..088c4262a 100644 --- a/docs/examples/2826510e4aeb1c0d8dc43d317ed7624a.asciidoc +++ b/docs/examples/2826510e4aeb1c0d8dc43d317ed7624a.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/boolean.asciidoc:242 +// mapping/types/boolean.asciidoc:249 [source, python] ---- diff --git a/docs/examples/2a9d3119a9e26e29220be436b9382955.asciidoc b/docs/examples/2a9d3119a9e26e29220be436b9382955.asciidoc index 3efd3123e..fee777245 100644 --- a/docs/examples/2a9d3119a9e26e29220be436b9382955.asciidoc +++ b/docs/examples/2a9d3119a9e26e29220be436b9382955.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// tab-widgets/inference-api/infer-api-mapping.asciidoc:208 +// tab-widgets/inference-api/infer-api-mapping.asciidoc:241 [source, python] ---- diff --git a/docs/examples/2e09666d3ad5ad9afc22763ee6e97a2b.asciidoc b/docs/examples/2e09666d3ad5ad9afc22763ee6e97a2b.asciidoc new file mode 100644 index 000000000..26fb74ccc --- /dev/null +++ b/docs/examples/2e09666d3ad5ad9afc22763ee6e97a2b.asciidoc @@ -0,0 +1,19 @@ +// This file is autogenerated, DO NOT EDIT +// slm/apis/slm-put.asciidoc:155 + +[source, python] +---- +resp = client.slm.put_lifecycle( + policy_id="hourly-snapshots", + schedule="1h", + name="", + repository="my_repository", + config={ + "indices": [ + "data-*", + "important" + ] + }, +) +print(resp) +---- diff --git a/docs/examples/2f98924c3d593ea2b60edb9cef5bee22.asciidoc b/docs/examples/2f98924c3d593ea2b60edb9cef5bee22.asciidoc index fde28aa80..6b434ce62 100644 --- a/docs/examples/2f98924c3d593ea2b60edb9cef5bee22.asciidoc +++ b/docs/examples/2f98924c3d593ea2b60edb9cef5bee22.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// how-to/size-your-shards.asciidoc:482 +// how-to/size-your-shards.asciidoc:483 [source, python] ---- diff --git a/docs/examples/318e209cc4d6f306e65cb2f5598a50b1.asciidoc b/docs/examples/318e209cc4d6f306e65cb2f5598a50b1.asciidoc index 4a30abed2..6049426e5 100644 --- a/docs/examples/318e209cc4d6f306e65cb2f5598a50b1.asciidoc +++ b/docs/examples/318e209cc4d6f306e65cb2f5598a50b1.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/geo-shape.asciidoc:195 +// mapping/types/geo-shape.asciidoc:194 [source, python] ---- diff --git a/docs/examples/349823d86980d40ac45248c19a59e339.asciidoc b/docs/examples/349823d86980d40ac45248c19a59e339.asciidoc index 1c77fbf96..d770f3f54 100644 --- a/docs/examples/349823d86980d40ac45248c19a59e339.asciidoc +++ b/docs/examples/349823d86980d40ac45248c19a59e339.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// tab-widgets/inference-api/infer-api-ingest-pipeline.asciidoc:197 +// tab-widgets/inference-api/infer-api-ingest-pipeline.asciidoc:223 [source, python] ---- diff --git a/docs/examples/3758b8f2ab9f6f28a764ee6c42c85766.asciidoc b/docs/examples/3758b8f2ab9f6f28a764ee6c42c85766.asciidoc index d0744c6b3..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:548 +// search/search-your-data/paginate-search-results.asciidoc:550 [source, python] ---- diff --git a/docs/examples/37c73410bf13429279cbc61a413957d8.asciidoc b/docs/examples/37c73410bf13429279cbc61a413957d8.asciidoc index 0e6b22cd1..56fc5156b 100644 --- a/docs/examples/37c73410bf13429279cbc61a413957d8.asciidoc +++ b/docs/examples/37c73410bf13429279cbc61a413957d8.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// how-to/size-your-shards.asciidoc:555 +// how-to/size-your-shards.asciidoc:557 [source, python] ---- diff --git a/docs/examples/3b1ff884f3bab390ae357e622c0544a9.asciidoc b/docs/examples/3b1ff884f3bab390ae357e622c0544a9.asciidoc index 7dfe089db..401012b2d 100644 --- a/docs/examples/3b1ff884f3bab390ae357e622c0544a9.asciidoc +++ b/docs/examples/3b1ff884f3bab390ae357e622c0544a9.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/rrf.asciidoc:182 +// search/rrf.asciidoc:180 [source, python] ---- diff --git a/docs/examples/3c0d0c38e1c819a35a68cdba5ae8ccc4.asciidoc b/docs/examples/3c0d0c38e1c819a35a68cdba5ae8ccc4.asciidoc new file mode 100644 index 000000000..d020f99d7 --- /dev/null +++ b/docs/examples/3c0d0c38e1c819a35a68cdba5ae8ccc4.asciidoc @@ -0,0 +1,20 @@ +// This file is autogenerated, DO NOT EDIT +// tab-widgets/inference-api/infer-api-task.asciidoc:254 + +[source, python] +---- +resp = client.inference.put( + task_type="text_embedding", + inference_id="alibabacloud_ai_search_embeddings", + inference_config={ + "service": "alibabacloud-ai-search", + "service_settings": { + "api_key": "", + "service_id": "", + "host": "", + "workspace": "" + } + }, +) +print(resp) +---- diff --git a/docs/examples/3faec4ca15d8c2fbbd16781b1c8693d6.asciidoc b/docs/examples/3faec4ca15d8c2fbbd16781b1c8693d6.asciidoc index 39d544366..3b59ce77d 100644 --- a/docs/examples/3faec4ca15d8c2fbbd16781b1c8693d6.asciidoc +++ b/docs/examples/3faec4ca15d8c2fbbd16781b1c8693d6.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// tab-widgets/inference-api/infer-api-search.asciidoc:408 +// tab-widgets/inference-api/infer-api-search.asciidoc:473 [source, python] ---- diff --git a/docs/examples/40bd86e400d27e68b8f0ae580c29d32d.asciidoc b/docs/examples/40bd86e400d27e68b8f0ae580c29d32d.asciidoc index 041873ae6..2cb413860 100644 --- a/docs/examples/40bd86e400d27e68b8f0ae580c29d32d.asciidoc +++ b/docs/examples/40bd86e400d27e68b8f0ae580c29d32d.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// how-to/size-your-shards.asciidoc:277 +// how-to/size-your-shards.asciidoc:278 [source, python] ---- diff --git a/docs/examples/40f97f70e8e743c6a6296c81b920aeb0.asciidoc b/docs/examples/40f97f70e8e743c6a6296c81b920aeb0.asciidoc index 90049bc1f..8f4e0432d 100644 --- a/docs/examples/40f97f70e8e743c6a6296c81b920aeb0.asciidoc +++ b/docs/examples/40f97f70e8e743c6a6296c81b920aeb0.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// how-to/size-your-shards.asciidoc:312 +// how-to/size-your-shards.asciidoc:313 [source, python] ---- diff --git a/docs/examples/421e68e2b9789f0e8c08760d9e685d1c.asciidoc b/docs/examples/421e68e2b9789f0e8c08760d9e685d1c.asciidoc index bede87f1a..7184d8b40 100644 --- a/docs/examples/421e68e2b9789f0e8c08760d9e685d1c.asciidoc +++ b/docs/examples/421e68e2b9789f0e8c08760d9e685d1c.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// ml/anomaly-detection/apis/update-job.asciidoc:243 +// ml/anomaly-detection/apis/update-job.asciidoc:258 [source, python] ---- diff --git a/docs/examples/4342ccf6cc24fd80bd3cd1f9a4c2ef8e.asciidoc b/docs/examples/4342ccf6cc24fd80bd3cd1f9a4c2ef8e.asciidoc index 65a28ff70..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:513 +// search/search-your-data/paginate-search-results.asciidoc:515 [source, python] ---- diff --git a/docs/examples/435e0d6a7d86e074d572d9671b7b9676.asciidoc b/docs/examples/435e0d6a7d86e074d572d9671b7b9676.asciidoc index d6cbafe37..a3cf24454 100644 --- a/docs/examples/435e0d6a7d86e074d572d9671b7b9676.asciidoc +++ b/docs/examples/435e0d6a7d86e074d572d9671b7b9676.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/geo-shape.asciidoc:227 +// mapping/types/geo-shape.asciidoc:226 [source, python] ---- diff --git a/docs/examples/47909e194d10743093f4a22c27a85925.asciidoc b/docs/examples/47909e194d10743093f4a22c27a85925.asciidoc index 9f07d4aa6..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:196 +// search/search-your-data/paginate-search-results.asciidoc:198 [source, python] ---- diff --git a/docs/examples/48de51de87a8ad9fd8b8db1ca25b85c1.asciidoc b/docs/examples/48de51de87a8ad9fd8b8db1ca25b85c1.asciidoc index 55a428d31..3d44f2e6f 100644 --- a/docs/examples/48de51de87a8ad9fd8b8db1ca25b85c1.asciidoc +++ b/docs/examples/48de51de87a8ad9fd8b8db1ca25b85c1.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// index-modules/similarity.asciidoc:540 +// index-modules/similarity.asciidoc:542 [source, python] ---- diff --git a/docs/examples/4982c547be1ad9455ae836990aea92c5.asciidoc b/docs/examples/4982c547be1ad9455ae836990aea92c5.asciidoc new file mode 100644 index 000000000..b7a6d50b1 --- /dev/null +++ b/docs/examples/4982c547be1ad9455ae836990aea92c5.asciidoc @@ -0,0 +1,11 @@ +// This file is autogenerated, DO NOT EDIT +// ml/trained-models/apis/start-trained-model-deployment.asciidoc:222 + +[source, python] +---- +resp = client.ml.start_trained_model_deployment( + model_id="my_model", + deployment_id="my_model_for_search", +) +print(resp) +---- diff --git a/docs/examples/cc28a3dafcd5056f2a3ec07f6fda5091.asciidoc b/docs/examples/4a72c68b96f44e80463084dfc0449d51.asciidoc similarity index 90% rename from docs/examples/cc28a3dafcd5056f2a3ec07f6fda5091.asciidoc rename to docs/examples/4a72c68b96f44e80463084dfc0449d51.asciidoc index 46ea8456b..514c68340 100644 --- a/docs/examples/cc28a3dafcd5056f2a3ec07f6fda5091.asciidoc +++ b/docs/examples/4a72c68b96f44e80463084dfc0449d51.asciidoc @@ -9,7 +9,7 @@ resp = client.search( "day_of_week": { "type": "keyword", "script": { - "source": "emit(doc['@timestamp'].value.dayOfWeekEnum.getDisplayName(TextStyle.FULL, Locale.ROOT))" + "source": "emit(doc['@timestamp'].value.dayOfWeekEnum.getDisplayName(TextStyle.FULL, Locale.ENGLISH))" } } }, diff --git a/docs/examples/4bef98a2dac575a50ee0783c2269f1db.asciidoc b/docs/examples/4bef98a2dac575a50ee0783c2269f1db.asciidoc new file mode 100644 index 000000000..2058b87cf --- /dev/null +++ b/docs/examples/4bef98a2dac575a50ee0783c2269f1db.asciidoc @@ -0,0 +1,21 @@ +// This file is autogenerated, DO NOT EDIT +// mapping/types/dense-vector.asciidoc:469 + +[source, python] +---- +resp = client.indices.create( + index="my-index-000001", + mappings={ + "properties": { + "text_embedding": { + "type": "dense_vector", + "dims": 384, + "index_options": { + "type": "flat" + } + } + } + }, +) +print(resp) +---- diff --git a/docs/examples/4c9350ed09b28f00e297ebe73c3b95a2.asciidoc b/docs/examples/4c9350ed09b28f00e297ebe73c3b95a2.asciidoc index 26d87600f..f8f432fcb 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:125 +// inference/service-elasticsearch.asciidoc:144 [source, python] ---- diff --git a/docs/examples/4e50d9d25bfb07ac73e3a2be5d2fbbf7.asciidoc b/docs/examples/4e50d9d25bfb07ac73e3a2be5d2fbbf7.asciidoc index 46f659edd..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:227 +// search/search-your-data/paginate-search-results.asciidoc:229 [source, python] ---- diff --git a/docs/examples/51b44224feee6e2e5974824334474c77.asciidoc b/docs/examples/51b44224feee6e2e5974824334474c77.asciidoc index a8a8584b8..134b309bb 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:333 +// snapshot-restore/repository-s3.asciidoc:342 [source, python] ---- diff --git a/docs/examples/528e5f1c345c3769248cc6889e8cf552.asciidoc b/docs/examples/528e5f1c345c3769248cc6889e8cf552.asciidoc index 6c7ff8f6f..4bd8ac61c 100644 --- a/docs/examples/528e5f1c345c3769248cc6889e8cf552.asciidoc +++ b/docs/examples/528e5f1c345c3769248cc6889e8cf552.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// index-modules/similarity.asciidoc:45 +// index-modules/similarity.asciidoc:47 [source, python] ---- diff --git a/docs/examples/529b975b7cedaac58dce9821956adc37.asciidoc b/docs/examples/529b975b7cedaac58dce9821956adc37.asciidoc index a44149598..08281e286 100644 --- a/docs/examples/529b975b7cedaac58dce9821956adc37.asciidoc +++ b/docs/examples/529b975b7cedaac58dce9821956adc37.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/geo-shape.asciidoc:391 +// mapping/types/geo-shape.asciidoc:390 [source, python] ---- diff --git a/docs/examples/52f4c5eb08d39f98e2e2f5527ece9731.asciidoc b/docs/examples/52f4c5eb08d39f98e2e2f5527ece9731.asciidoc new file mode 100644 index 000000000..4e861160e --- /dev/null +++ b/docs/examples/52f4c5eb08d39f98e2e2f5527ece9731.asciidoc @@ -0,0 +1,20 @@ +// This file is autogenerated, DO NOT EDIT +// inference/service-alibabacloud-ai-search.asciidoc:154 + +[source, python] +---- +resp = client.inference.put( + task_type="sparse_embedding", + inference_id="alibabacloud_ai_search_sparse", + inference_config={ + "service": "alibabacloud-ai-search", + "service_settings": { + "api_key": "", + "service_id": "ops-text-sparse-embedding-001", + "host": "default-j01.platform-cn-shanghai.opensearch.aliyuncs.com", + "workspace": "default" + } + }, +) +print(resp) +---- diff --git a/docs/examples/5457c94f0039c6b95c7f9f305d0c6b58.asciidoc b/docs/examples/5457c94f0039c6b95c7f9f305d0c6b58.asciidoc index 751f84242..95e608a13 100644 --- a/docs/examples/5457c94f0039c6b95c7f9f305d0c6b58.asciidoc +++ b/docs/examples/5457c94f0039c6b95c7f9f305d0c6b58.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// cluster/nodes-stats.asciidoc:2384 +// cluster/nodes-stats.asciidoc:2528 [source, python] ---- diff --git a/docs/examples/54c12d5099d7b715c15f5bbf65b386a1.asciidoc b/docs/examples/54c12d5099d7b715c15f5bbf65b386a1.asciidoc new file mode 100644 index 000000000..693246bdd --- /dev/null +++ b/docs/examples/54c12d5099d7b715c15f5bbf65b386a1.asciidoc @@ -0,0 +1,22 @@ +// This file is autogenerated, DO NOT EDIT +// tab-widgets/inference-api/infer-api-mapping.asciidoc:310 + +[source, python] +---- +resp = client.indices.create( + index="alibabacloud-ai-search-embeddings", + mappings={ + "properties": { + "content_embedding": { + "type": "dense_vector", + "dims": 1024, + "element_type": "float" + }, + "content": { + "type": "text" + } + } + }, +) +print(resp) +---- diff --git a/docs/examples/553d79817bb1333970e99507c37a159a.asciidoc b/docs/examples/553d79817bb1333970e99507c37a159a.asciidoc index 86245a2f5..22d4b7639 100644 --- a/docs/examples/553d79817bb1333970e99507c37a159a.asciidoc +++ b/docs/examples/553d79817bb1333970e99507c37a159a.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// index-modules/similarity.asciidoc:520 +// index-modules/similarity.asciidoc:522 [source, python] ---- diff --git a/docs/examples/5619103306878d58a058bce87c5bd82b.asciidoc b/docs/examples/5619103306878d58a058bce87c5bd82b.asciidoc index c2fce5326..d73c08bc4 100644 --- a/docs/examples/5619103306878d58a058bce87c5bd82b.asciidoc +++ b/docs/examples/5619103306878d58a058bce87c5bd82b.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// indices/recovery.asciidoc:350 +// indices/recovery.asciidoc:336 [source, python] ---- diff --git a/docs/examples/5837d5f50665ac0a26181d3aaeb3f204.asciidoc b/docs/examples/5837d5f50665ac0a26181d3aaeb3f204.asciidoc index b105ef8bd..71163305a 100644 --- a/docs/examples/5837d5f50665ac0a26181d3aaeb3f204.asciidoc +++ b/docs/examples/5837d5f50665ac0a26181d3aaeb3f204.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// ml/trained-models/apis/start-trained-model-deployment.asciidoc:181 +// ml/trained-models/apis/start-trained-model-deployment.asciidoc:208 [source, python] ---- diff --git a/docs/examples/5dfb23f6e36ef484f1d3271bae76a8d1.asciidoc b/docs/examples/5dfb23f6e36ef484f1d3271bae76a8d1.asciidoc index fb4958bb8..a7d0b7013 100644 --- a/docs/examples/5dfb23f6e36ef484f1d3271bae76a8d1.asciidoc +++ b/docs/examples/5dfb23f6e36ef484f1d3271bae76a8d1.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// indices/recovery.asciidoc:248 +// indices/recovery.asciidoc:234 [source, python] ---- diff --git a/docs/examples/5f8fb5513d4f725434db2f517ad4298f.asciidoc b/docs/examples/5f8fb5513d4f725434db2f517ad4298f.asciidoc index 08e6c6870..280fb961e 100644 --- a/docs/examples/5f8fb5513d4f725434db2f517ad4298f.asciidoc +++ b/docs/examples/5f8fb5513d4f725434db2f517ad4298f.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// index-modules/similarity.asciidoc:357 +// index-modules/similarity.asciidoc:359 [source, python] ---- diff --git a/docs/examples/d595b40bf1ea71923f9824d0f9c99c49.asciidoc b/docs/examples/5fd002a018c589eb73fadad25889dbe9.asciidoc similarity index 98% rename from docs/examples/d595b40bf1ea71923f9824d0f9c99c49.asciidoc rename to docs/examples/5fd002a018c589eb73fadad25889dbe9.asciidoc index f904ab1df..e397ac5b7 100644 --- a/docs/examples/d595b40bf1ea71923f9824d0f9c99c49.asciidoc +++ b/docs/examples/5fd002a018c589eb73fadad25889dbe9.asciidoc @@ -35,7 +35,7 @@ resp = client.query_rules.put_ruleset( }, { "rule_id": "rule2", - "type": "pinned", + "type": "exclude", "criteria": [ { "type": "contains", diff --git a/docs/examples/60d689aae3f8de1e6830329dfd69a6a6.asciidoc b/docs/examples/60d689aae3f8de1e6830329dfd69a6a6.asciidoc index 444a6765b..17aa35fd1 100644 --- a/docs/examples/60d689aae3f8de1e6830329dfd69a6a6.asciidoc +++ b/docs/examples/60d689aae3f8de1e6830329dfd69a6a6.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// tab-widgets/inference-api/infer-api-reindex.asciidoc:184 +// tab-widgets/inference-api/infer-api-reindex.asciidoc:206 [source, python] ---- diff --git a/docs/examples/6636701d31b0c9eb8316f1f8e99cc918.asciidoc b/docs/examples/6636701d31b0c9eb8316f1f8e99cc918.asciidoc index 1afa9ad3b..afbe3f43f 100644 --- a/docs/examples/6636701d31b0c9eb8316f1f8e99cc918.asciidoc +++ b/docs/examples/6636701d31b0c9eb8316f1f8e99cc918.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// aggregations/metrics/scripted-metric-aggregation.asciidoc:15 +// aggregations/metrics/scripted-metric-aggregation.asciidoc:17 [source, python] ---- diff --git a/docs/examples/e619e896ce3dad9dcfc6f8700438be98.asciidoc b/docs/examples/6ce6cac9df216c52371c2e77e6e07ba1.asciidoc similarity index 98% rename from docs/examples/e619e896ce3dad9dcfc6f8700438be98.asciidoc rename to docs/examples/6ce6cac9df216c52371c2e77e6e07ba1.asciidoc index eea61bc74..7f5bcdd06 100644 --- a/docs/examples/e619e896ce3dad9dcfc6f8700438be98.asciidoc +++ b/docs/examples/6ce6cac9df216c52371c2e77e6e07ba1.asciidoc @@ -35,7 +35,7 @@ resp = client.query_rules.put_ruleset( }, { "rule_id": "my-rule2", - "type": "pinned", + "type": "exclude", "criteria": [ { "type": "fuzzy", diff --git a/docs/examples/6f07152055e99416deb10e95b428b847.asciidoc b/docs/examples/6f07152055e99416deb10e95b428b847.asciidoc index e3554a9c9..1fba8ec74 100644 --- a/docs/examples/6f07152055e99416deb10e95b428b847.asciidoc +++ b/docs/examples/6f07152055e99416deb10e95b428b847.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// analysis/tokenfilters/edgengram-tokenfilter.asciidoc:203 +// analysis/tokenfilters/edgengram-tokenfilter.asciidoc:199 [source, python] ---- diff --git a/docs/examples/6fbbf40cab0187f544ff7bca31d18d57.asciidoc b/docs/examples/6fbbf40cab0187f544ff7bca31d18d57.asciidoc index c4728add8..bad040a0c 100644 --- a/docs/examples/6fbbf40cab0187f544ff7bca31d18d57.asciidoc +++ b/docs/examples/6fbbf40cab0187f544ff7bca31d18d57.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/geo-shape.asciidoc:254 +// mapping/types/geo-shape.asciidoc:253 [source, python] ---- diff --git a/docs/examples/6fd82baa17a48e09e3d2eed514af7f46.asciidoc b/docs/examples/6fd82baa17a48e09e3d2eed514af7f46.asciidoc index a61d51e8e..5545a70e7 100644 --- a/docs/examples/6fd82baa17a48e09e3d2eed514af7f46.asciidoc +++ b/docs/examples/6fd82baa17a48e09e3d2eed514af7f46.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/geo-shape.asciidoc:360 +// mapping/types/geo-shape.asciidoc:359 [source, python] ---- diff --git a/docs/examples/70cc66bf4054ebf0ad4955cb99d9ab80.asciidoc b/docs/examples/70cc66bf4054ebf0ad4955cb99d9ab80.asciidoc index eb9853587..6382cbc78 100644 --- a/docs/examples/70cc66bf4054ebf0ad4955cb99d9ab80.asciidoc +++ b/docs/examples/70cc66bf4054ebf0ad4955cb99d9ab80.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// ml/trained-models/apis/update-trained-model-deployment.asciidoc:53 +// ml/trained-models/apis/update-trained-model-deployment.asciidoc:74 [source, python] ---- diff --git a/docs/examples/71c629c44bf3c542a0daacbfc253c4b0.asciidoc b/docs/examples/71c629c44bf3c542a0daacbfc253c4b0.asciidoc index 8bfa286ed..e648cde31 100644 --- a/docs/examples/71c629c44bf3c542a0daacbfc253c4b0.asciidoc +++ b/docs/examples/71c629c44bf3c542a0daacbfc253c4b0.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// cluster/stats.asciidoc:1614 +// cluster/stats.asciidoc:1643 [source, python] ---- diff --git a/docs/examples/72beebe779a258c225dee7b023e60c52.asciidoc b/docs/examples/72beebe779a258c225dee7b023e60c52.asciidoc index ce6925d22..4b0eeca27 100644 --- a/docs/examples/72beebe779a258c225dee7b023e60c52.asciidoc +++ b/docs/examples/72beebe779a258c225dee7b023e60c52.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/point-in-time-api.asciidoc:108 +// search/point-in-time-api.asciidoc:146 [source, python] ---- diff --git a/docs/examples/72d33fbd72b0766b2f14ea27d9ccf0fa.asciidoc b/docs/examples/72d33fbd72b0766b2f14ea27d9ccf0fa.asciidoc deleted file mode 100644 index 6acb0bfc5..000000000 --- a/docs/examples/72d33fbd72b0766b2f14ea27d9ccf0fa.asciidoc +++ /dev/null @@ -1,10 +0,0 @@ -// This file is autogenerated, DO NOT EDIT -// troubleshooting/common-issues/disk-usage-exceeded.asciidoc:77 - -[source, python] ----- -resp = client.indices.delete( - index="my-index", -) -print(resp) ----- diff --git a/docs/examples/7594a9a85c8511701e281974cbc253e1.asciidoc b/docs/examples/7594a9a85c8511701e281974cbc253e1.asciidoc index 5341b6947..1425a25e1 100644 --- a/docs/examples/7594a9a85c8511701e281974cbc253e1.asciidoc +++ b/docs/examples/7594a9a85c8511701e281974cbc253e1.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// tab-widgets/inference-api/infer-api-task.asciidoc:204 +// tab-widgets/inference-api/infer-api-task.asciidoc:228 [source, python] ---- diff --git a/docs/examples/75e360d03fb416f0a65ca37c662c2e9c.asciidoc b/docs/examples/75e360d03fb416f0a65ca37c662c2e9c.asciidoc index ba108824b..4cccf15fc 100644 --- a/docs/examples/75e360d03fb416f0a65ca37c662c2e9c.asciidoc +++ b/docs/examples/75e360d03fb416f0a65ca37c662c2e9c.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// aggregations/metrics/scripted-metric-aggregation.asciidoc:155 +// aggregations/metrics/scripted-metric-aggregation.asciidoc:157 [source, python] ---- diff --git a/docs/examples/7846974b47a3eab1832a475663d23ad9.asciidoc b/docs/examples/7846974b47a3eab1832a475663d23ad9.asciidoc index c0dd53dea..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:290 +// search/search-your-data/paginate-search-results.asciidoc:292 [source, python] ---- diff --git a/docs/examples/79e8bbbd6c440a21b0b4260c8cb1a61c.asciidoc b/docs/examples/79e8bbbd6c440a21b0b4260c8cb1a61c.asciidoc index 57a900b92..f616fb43a 100644 --- a/docs/examples/79e8bbbd6c440a21b0b4260c8cb1a61c.asciidoc +++ b/docs/examples/79e8bbbd6c440a21b0b4260c8cb1a61c.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/geo-shape.asciidoc:208 +// mapping/types/geo-shape.asciidoc:207 [source, python] ---- diff --git a/docs/examples/7c63a1d2fbec5283e913ff39fafd0604.asciidoc b/docs/examples/7c63a1d2fbec5283e913ff39fafd0604.asciidoc new file mode 100644 index 000000000..8bcc50f7f --- /dev/null +++ b/docs/examples/7c63a1d2fbec5283e913ff39fafd0604.asciidoc @@ -0,0 +1,21 @@ +// This file is autogenerated, DO NOT EDIT +// tab-widgets/inference-api/infer-api-ingest-pipeline.asciidoc:171 + +[source, python] +---- +resp = client.ingest.put_pipeline( + id="google_vertex_ai_embeddings", + processors=[ + { + "inference": { + "model_id": "google_vertex_ai_embeddings", + "input_output": { + "input_field": "content", + "output_field": "content_embedding" + } + } + } + ], +) +print(resp) +---- diff --git a/docs/examples/7e74d1a54e816e8f40cfdaa01b070788.asciidoc b/docs/examples/7e74d1a54e816e8f40cfdaa01b070788.asciidoc index 1e29d8d13..fccbcf662 100644 --- a/docs/examples/7e74d1a54e816e8f40cfdaa01b070788.asciidoc +++ b/docs/examples/7e74d1a54e816e8f40cfdaa01b070788.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/rrf.asciidoc:246 +// search/rrf.asciidoc:244 [source, python] ---- diff --git a/docs/examples/7f2d511cb64743c006225e5933a14bb4.asciidoc b/docs/examples/7f2d511cb64743c006225e5933a14bb4.asciidoc index 4412a2a08..fd3323a81 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:67 +// esql/esql-across-clusters.asciidoc:72 [source, python] ---- diff --git a/docs/examples/81aad155ff23b1b396833b1182c9d46b.asciidoc b/docs/examples/81aad155ff23b1b396833b1182c9d46b.asciidoc new file mode 100644 index 000000000..99962351b --- /dev/null +++ b/docs/examples/81aad155ff23b1b396833b1182c9d46b.asciidoc @@ -0,0 +1,16 @@ +// This file is autogenerated, DO NOT EDIT +// troubleshooting/common-issues/disk-usage-exceeded.asciidoc:31 + +[source, python] +---- +resp = client.cat.shards( + v=True, +) +print(resp) + +resp1 = client.cat.recovery( + v=True, + active_only=True, +) +print(resp1) +---- diff --git a/docs/examples/82844ef45e11c0eece100d3109db3182.asciidoc b/docs/examples/82844ef45e11c0eece100d3109db3182.asciidoc index 9c30a4e8e..67b526d67 100644 --- a/docs/examples/82844ef45e11c0eece100d3109db3182.asciidoc +++ b/docs/examples/82844ef45e11c0eece100d3109db3182.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// inference/service-amazon-bedrock.asciidoc:162 +// inference/service-amazon-bedrock.asciidoc:154 [source, python] ---- diff --git a/docs/examples/82eff1d681a5d0d1538ef011bb32ab9a.asciidoc b/docs/examples/82eff1d681a5d0d1538ef011bb32ab9a.asciidoc new file mode 100644 index 000000000..87c70a6f3 --- /dev/null +++ b/docs/examples/82eff1d681a5d0d1538ef011bb32ab9a.asciidoc @@ -0,0 +1,18 @@ +// This file is autogenerated, DO NOT EDIT +// tab-widgets/inference-api/infer-api-reindex.asciidoc:229 + +[source, python] +---- +resp = client.reindex( + wait_for_completion=False, + source={ + "index": "test-data", + "size": 50 + }, + dest={ + "index": "alibabacloud-ai-search-embeddings", + "pipeline": "alibabacloud_ai_search_embeddings" + }, +) +print(resp) +---- diff --git a/docs/examples/840f8c863c30b04abcf2dd66b846f157.asciidoc b/docs/examples/840f8c863c30b04abcf2dd66b846f157.asciidoc new file mode 100644 index 000000000..2ab4931b0 --- /dev/null +++ b/docs/examples/840f8c863c30b04abcf2dd66b846f157.asciidoc @@ -0,0 +1,22 @@ +// This file is autogenerated, DO NOT EDIT +// inference/service-elasticsearch.asciidoc:172 + +[source, python] +---- +resp = client.inference.put( + task_type="text_embedding", + inference_id="my-e5-model", + inference_config={ + "service": "elasticsearch", + "service_settings": { + "adaptive_allocations": { + "enabled": True, + "min_number_of_allocations": 3, + "max_number_of_allocations": 10 + }, + "model_id": ".multilingual-e5-small" + } + }, +) +print(resp) +---- diff --git a/docs/examples/84e2cf7417c9e0c9e6f3c23031001440.asciidoc b/docs/examples/84e2cf7417c9e0c9e6f3c23031001440.asciidoc index 2c19092a2..ac3164f36 100644 --- a/docs/examples/84e2cf7417c9e0c9e6f3c23031001440.asciidoc +++ b/docs/examples/84e2cf7417c9e0c9e6f3c23031001440.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// ingest/apis/enrich/enrich-stats.asciidoc:131 +// ingest/apis/enrich/enrich-stats.asciidoc:135 [source, python] ---- diff --git a/docs/examples/8566f5ecf4ae14802ba63c8cc7c629f8.asciidoc b/docs/examples/8566f5ecf4ae14802ba63c8cc7c629f8.asciidoc index eb4f786fd..dfffb62b0 100644 --- a/docs/examples/8566f5ecf4ae14802ba63c8cc7c629f8.asciidoc +++ b/docs/examples/8566f5ecf4ae14802ba63c8cc7c629f8.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// tab-widgets/inference-api/infer-api-task.asciidoc:184 +// tab-widgets/inference-api/infer-api-task.asciidoc:208 [source, python] ---- diff --git a/docs/examples/8582e918a6275472d2eba2e95f1dbe77.asciidoc b/docs/examples/8582e918a6275472d2eba2e95f1dbe77.asciidoc index 41a809c4d..1f744bb67 100644 --- a/docs/examples/8582e918a6275472d2eba2e95f1dbe77.asciidoc +++ b/docs/examples/8582e918a6275472d2eba2e95f1dbe77.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// troubleshooting/common-issues/disk-usage-exceeded.asciidoc:49 +// troubleshooting/common-issues/disk-usage-exceeded.asciidoc:61 [source, python] ---- diff --git a/docs/examples/861f5f61409dc87f3671293b87839ff7.asciidoc b/docs/examples/861f5f61409dc87f3671293b87839ff7.asciidoc index b111b600b..96eeaa111 100644 --- a/docs/examples/861f5f61409dc87f3671293b87839ff7.asciidoc +++ b/docs/examples/861f5f61409dc87f3671293b87839ff7.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// cluster/stats.asciidoc:1289 +// cluster/stats.asciidoc:1314 [source, python] ---- diff --git a/docs/examples/8a1b6eae4893c5dd27b3d81fd8d70f5b.asciidoc b/docs/examples/8a1b6eae4893c5dd27b3d81fd8d70f5b.asciidoc index 342efcdb8..f670391bd 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-inference.asciidoc:84 +// search/search-your-data/semantic-search-inference.asciidoc:89 [source, python] ---- diff --git a/docs/examples/8d9b04f2a97f4229dec9e620126de049.asciidoc b/docs/examples/8d9b04f2a97f4229dec9e620126de049.asciidoc index f19109ac3..846594fa0 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:598 +// snapshot-restore/repository-s3.asciidoc:580 [source, python] ---- diff --git a/docs/examples/8f2875d976332cf5da8fb7764097a307.asciidoc b/docs/examples/8f2875d976332cf5da8fb7764097a307.asciidoc new file mode 100644 index 000000000..09a599c53 --- /dev/null +++ b/docs/examples/8f2875d976332cf5da8fb7764097a307.asciidoc @@ -0,0 +1,23 @@ +// This file is autogenerated, DO NOT EDIT +// data-streams/lifecycle/tutorial-manage-data-stream-retention.asciidoc:112 + +[source, python] +---- +resp = client.indices.put_index_template( + name="template", + index_patterns=[ + "my-data-stream*" + ], + data_stream={}, + priority=500, + template={ + "lifecycle": { + "data_retention": "7d" + } + }, + meta={ + "description": "Template with data stream lifecycle" + }, +) +print(resp) +---- diff --git a/docs/examples/909a032a9c1f7095b798444705b09ad6.asciidoc b/docs/examples/909a032a9c1f7095b798444705b09ad6.asciidoc index 50a3b9ef0..1360db5de 100644 --- a/docs/examples/909a032a9c1f7095b798444705b09ad6.asciidoc +++ b/docs/examples/909a032a9c1f7095b798444705b09ad6.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/geo-shape.asciidoc:444 +// mapping/types/geo-shape.asciidoc:443 [source, python] ---- diff --git a/docs/examples/9326e323f7ffde678fa04d2d1de3d3bc.asciidoc b/docs/examples/9326e323f7ffde678fa04d2d1de3d3bc.asciidoc new file mode 100644 index 000000000..a4339951c --- /dev/null +++ b/docs/examples/9326e323f7ffde678fa04d2d1de3d3bc.asciidoc @@ -0,0 +1,25 @@ +// This file is autogenerated, DO NOT EDIT +// tab-widgets/inference-api/infer-api-search.asciidoc:603 + +[source, python] +---- +resp = client.search( + index="alibabacloud-ai-search-embeddings", + knn={ + "field": "content_embedding", + "query_vector_builder": { + "text_embedding": { + "model_id": "alibabacloud_ai_search_embeddings", + "model_text": "Calculate fuel cost" + } + }, + "k": 10, + "num_candidates": 100 + }, + source=[ + "id", + "content" + ], +) +print(resp) +---- diff --git a/docs/examples/93d7ba4130722cae04f9690e52a8f54f.asciidoc b/docs/examples/93d7ba4130722cae04f9690e52a8f54f.asciidoc index 036f1cff1..11ce831ed 100644 --- a/docs/examples/93d7ba4130722cae04f9690e52a8f54f.asciidoc +++ b/docs/examples/93d7ba4130722cae04f9690e52a8f54f.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/geo-shape.asciidoc:460 +// mapping/types/geo-shape.asciidoc:459 [source, python] ---- diff --git a/docs/examples/96ea0e80323d6d2d99964625c004a44d.asciidoc b/docs/examples/96ea0e80323d6d2d99964625c004a44d.asciidoc index 5d103b1e2..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:390 +// data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc:394 [source, python] ---- diff --git a/docs/examples/9868ce609f4450702934fcbf4c340bf1.asciidoc b/docs/examples/9868ce609f4450702934fcbf4c340bf1.asciidoc new file mode 100644 index 000000000..af6cc83ab --- /dev/null +++ b/docs/examples/9868ce609f4450702934fcbf4c340bf1.asciidoc @@ -0,0 +1,21 @@ +// This file is autogenerated, DO NOT EDIT +// tab-widgets/inference-api/infer-api-ingest-pipeline.asciidoc:249 + +[source, python] +---- +resp = client.ingest.put_pipeline( + id="alibabacloud_ai_search_embeddings", + processors=[ + { + "inference": { + "model_id": "alibabacloud_ai_search_embeddings", + "input_output": { + "input_field": "content", + "output_field": "content_embedding" + } + } + } + ], +) +print(resp) +---- diff --git a/docs/examples/986f892bfa4dfdf1da8455fdf84a4b0c.asciidoc b/docs/examples/986f892bfa4dfdf1da8455fdf84a4b0c.asciidoc new file mode 100644 index 000000000..627cbc6bb --- /dev/null +++ b/docs/examples/986f892bfa4dfdf1da8455fdf84a4b0c.asciidoc @@ -0,0 +1,20 @@ +// This file is autogenerated, DO NOT EDIT +// inference/service-alibabacloud-ai-search.asciidoc:136 + +[source, python] +---- +resp = client.inference.put( + task_type="text_embedding", + inference_id="alibabacloud_ai_search_embeddings", + inference_config={ + "service": "alibabacloud-ai-search", + "service_settings": { + "api_key": "", + "service_id": "ops-text-embedding-001", + "host": "default-j01.platform-cn-shanghai.opensearch.aliyuncs.com", + "workspace": "default" + } + }, +) +print(resp) +---- diff --git a/docs/examples/990c0d794ed6f05d1620b5d49f7aff6e.asciidoc b/docs/examples/990c0d794ed6f05d1620b5d49f7aff6e.asciidoc index ffed5b57c..f0ffaa9a2 100644 --- a/docs/examples/990c0d794ed6f05d1620b5d49f7aff6e.asciidoc +++ b/docs/examples/990c0d794ed6f05d1620b5d49f7aff6e.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// data-streams/lifecycle/tutorial-manage-new-data-stream.asciidoc:82 +// data-streams/lifecycle/tutorial-manage-data-stream-retention.asciidoc:183 [source, python] ---- diff --git a/docs/examples/9cb150d67dfa0947f29aa809bcc93c6e.asciidoc b/docs/examples/9cb150d67dfa0947f29aa809bcc93c6e.asciidoc new file mode 100644 index 000000000..6efd75246 --- /dev/null +++ b/docs/examples/9cb150d67dfa0947f29aa809bcc93c6e.asciidoc @@ -0,0 +1,11 @@ +// This file is autogenerated, DO NOT EDIT +// datatiers.asciidoc:241 + +[source, python] +---- +resp = client.indices.get_settings( + index="my-index-000001", + filter_path="*.settings.index.routing.allocation.include._tier_preference", +) +print(resp) +---- diff --git a/docs/examples/9d396afad93782699d7a929578c85284.asciidoc b/docs/examples/9d396afad93782699d7a929578c85284.asciidoc new file mode 100644 index 000000000..5c4822152 --- /dev/null +++ b/docs/examples/9d396afad93782699d7a929578c85284.asciidoc @@ -0,0 +1,20 @@ +// This file is autogenerated, DO NOT EDIT +// tab-widgets/inference-api/infer-api-task.asciidoc:184 + +[source, python] +---- +resp = client.inference.put( + task_type="text_embedding", + inference_id="google_vertex_ai_embeddings", + inference_config={ + "service": "googlevertexai", + "service_settings": { + "service_account_json": "", + "model_id": "text-embedding-004", + "location": "", + "project_id": "" + } + }, +) +print(resp) +---- diff --git a/docs/examples/9de4704d2f047dae1259249112488697.asciidoc b/docs/examples/9de4704d2f047dae1259249112488697.asciidoc index f237aeafe..8e7ee2527 100644 --- a/docs/examples/9de4704d2f047dae1259249112488697.asciidoc +++ b/docs/examples/9de4704d2f047dae1259249112488697.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// snapshot-restore/repository-azure.asciidoc:56 +// snapshot-restore/repository-azure.asciidoc:72 [source, python] ---- diff --git a/docs/examples/9fda516a5dc60ba477b970eaad4429db.asciidoc b/docs/examples/9fda516a5dc60ba477b970eaad4429db.asciidoc index 8183ae09c..c7e75d94a 100644 --- a/docs/examples/9fda516a5dc60ba477b970eaad4429db.asciidoc +++ b/docs/examples/9fda516a5dc60ba477b970eaad4429db.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// data-streams/lifecycle/apis/get-lifecycle.asciidoc:117 +// data-streams/lifecycle/apis/get-lifecycle.asciidoc:142 [source, python] ---- diff --git a/docs/examples/9ff9b2a73419a6c82f17a358b4991499.asciidoc b/docs/examples/9ff9b2a73419a6c82f17a358b4991499.asciidoc index c8ce35cb5..6a64b2870 100644 --- a/docs/examples/9ff9b2a73419a6c82f17a358b4991499.asciidoc +++ b/docs/examples/9ff9b2a73419a6c82f17a358b4991499.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/point-in-time-api.asciidoc:121 +// search/point-in-time-api.asciidoc:159 [source, python] ---- diff --git a/docs/examples/a1070cf2f5969d42d71cda057223f152.asciidoc b/docs/examples/a1070cf2f5969d42d71cda057223f152.asciidoc index f00a58f52..5c00da449 100644 --- a/docs/examples/a1070cf2f5969d42d71cda057223f152.asciidoc +++ b/docs/examples/a1070cf2f5969d42d71cda057223f152.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// troubleshooting/common-issues/disk-usage-exceeded.asciidoc:26 +// how-to/size-your-shards.asciidoc:247 [source, python] ---- diff --git a/docs/examples/a69c7c3412af73758f629e76263063b5.asciidoc b/docs/examples/a69c7c3412af73758f629e76263063b5.asciidoc new file mode 100644 index 000000000..8ffb9afbe --- /dev/null +++ b/docs/examples/a69c7c3412af73758f629e76263063b5.asciidoc @@ -0,0 +1,18 @@ +// This file is autogenerated, DO NOT EDIT +// tab-widgets/inference-api/infer-api-reindex.asciidoc:161 + +[source, python] +---- +resp = client.reindex( + wait_for_completion=False, + source={ + "index": "test-data", + "size": 50 + }, + dest={ + "index": "google-vertex-ai-embeddings", + "pipeline": "google_vertex_ai_embeddings" + }, +) +print(resp) +---- diff --git a/docs/examples/a6ccac9f80c5e5efdaab992f3a32d919.asciidoc b/docs/examples/a6ccac9f80c5e5efdaab992f3a32d919.asciidoc index a71eeedb2..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:403 +// data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc:407 [source, python] ---- diff --git a/docs/examples/a75765e3fb130421dde6c3c2f12e8acb.asciidoc b/docs/examples/a75765e3fb130421dde6c3c2f12e8acb.asciidoc new file mode 100644 index 000000000..4642ae26e --- /dev/null +++ b/docs/examples/a75765e3fb130421dde6c3c2f12e8acb.asciidoc @@ -0,0 +1,15 @@ +// This file is autogenerated, DO NOT EDIT +// connector/apis/claim-connector-sync-job-api.asciidoc:62 + +[source, python] +---- +resp = client.perform_request( + "PUT", + "/_connector/_sync_job/my-connector-sync-job-id/_claim", + headers={"Content-Type": "application/json"}, + body={ + "worker_hostname": "some-machine" + }, +) +print(resp) +---- diff --git a/docs/examples/a89052bcdfe40e604a98d12be6ae59d2.asciidoc b/docs/examples/a89052bcdfe40e604a98d12be6ae59d2.asciidoc index 109dce5f7..f148e6661 100644 --- a/docs/examples/a89052bcdfe40e604a98d12be6ae59d2.asciidoc +++ b/docs/examples/a89052bcdfe40e604a98d12be6ae59d2.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/geo-shape.asciidoc:475 +// mapping/types/geo-shape.asciidoc:474 [source, python] ---- diff --git a/docs/examples/a999b5661bebb802bbbfe04faacf1971.asciidoc b/docs/examples/a999b5661bebb802bbbfe04faacf1971.asciidoc index ee0267901..b8c02fe91 100644 --- a/docs/examples/a999b5661bebb802bbbfe04faacf1971.asciidoc +++ b/docs/examples/a999b5661bebb802bbbfe04faacf1971.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// how-to/size-your-shards.asciidoc:509 +// how-to/size-your-shards.asciidoc:510 [source, python] ---- diff --git a/docs/examples/aa6282d4bc92c753c4bd7a5b166abece.asciidoc b/docs/examples/aa6282d4bc92c753c4bd7a5b166abece.asciidoc index e075cf800..10ebcd52e 100644 --- a/docs/examples/aa6282d4bc92c753c4bd7a5b166abece.asciidoc +++ b/docs/examples/aa6282d4bc92c753c4bd7a5b166abece.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// ml/trained-models/apis/start-trained-model-deployment.asciidoc:133 +// ml/trained-models/apis/start-trained-model-deployment.asciidoc:160 [source, python] ---- diff --git a/docs/examples/aa676d54a59dee87ecd28bcc1edce59b.asciidoc b/docs/examples/aa676d54a59dee87ecd28bcc1edce59b.asciidoc new file mode 100644 index 000000000..f921fe239 --- /dev/null +++ b/docs/examples/aa676d54a59dee87ecd28bcc1edce59b.asciidoc @@ -0,0 +1,20 @@ +// This file is autogenerated, DO NOT EDIT +// inference/service-alibabacloud-ai-search.asciidoc:172 + +[source, python] +---- +resp = client.inference.put( + task_type="rerank", + inference_id="alibabacloud_ai_search_rerank", + inference_config={ + "service": "alibabacloud-ai-search", + "service_settings": { + "api_key": "", + "service_id": "ops-bge-reranker-larger", + "host": "default-j01.platform-cn-shanghai.opensearch.aliyuncs.com", + "workspace": "default" + } + }, +) +print(resp) +---- diff --git a/docs/examples/aa7cf5df36b867aee5e3314ac4b4fa68.asciidoc b/docs/examples/aa7cf5df36b867aee5e3314ac4b4fa68.asciidoc index 120563a97..9b46dc0dd 100644 --- a/docs/examples/aa7cf5df36b867aee5e3314ac4b4fa68.asciidoc +++ b/docs/examples/aa7cf5df36b867aee5e3314ac4b4fa68.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// slm/apis/slm-put.asciidoc:113 +// slm/apis/slm-put.asciidoc:119 [source, python] ---- diff --git a/docs/examples/add240aa149d8b11139947502b279ee0.asciidoc b/docs/examples/add240aa149d8b11139947502b279ee0.asciidoc index 1eb49e7e3..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:401 +// search/search-your-data/paginate-search-results.asciidoc:403 [source, python] ---- diff --git a/docs/examples/aebf9cc593fcf0d4ca08f8b61b67bf17.asciidoc b/docs/examples/aebf9cc593fcf0d4ca08f8b61b67bf17.asciidoc new file mode 100644 index 000000000..978b7a137 --- /dev/null +++ b/docs/examples/aebf9cc593fcf0d4ca08f8b61b67bf17.asciidoc @@ -0,0 +1,18 @@ +// This file is autogenerated, DO NOT EDIT +// snapshot-restore/repository-azure.asciidoc:206 + +[source, python] +---- +resp = client.snapshot.create_repository( + name="my_backup", + repository={ + "type": "azure", + "settings": { + "client": "secondary", + "container": "my_container", + "base_path": "snapshots_prefix" + } + }, +) +print(resp) +---- diff --git a/docs/examples/afe87a2850326e0328fbebbefec2e839.asciidoc b/docs/examples/afe87a2850326e0328fbebbefec2e839.asciidoc index 28bfe048b..8a84f7103 100644 --- a/docs/examples/afe87a2850326e0328fbebbefec2e839.asciidoc +++ b/docs/examples/afe87a2850326e0328fbebbefec2e839.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/search-shards.asciidoc:170 +// search/search-shards.asciidoc:171 [source, python] ---- diff --git a/docs/examples/b02e4907c9936c1adc16ccce9d49900d.asciidoc b/docs/examples/b02e4907c9936c1adc16ccce9d49900d.asciidoc index ef96465f9..bb7fc6ce1 100644 --- a/docs/examples/b02e4907c9936c1adc16ccce9d49900d.asciidoc +++ b/docs/examples/b02e4907c9936c1adc16ccce9d49900d.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// cluster/health.asciidoc:156 +// cluster/health.asciidoc:159 [source, python] ---- diff --git a/docs/examples/88ec7fa6768a7e13cd2158667a69e97f.asciidoc b/docs/examples/b09f155602f9b2a6c40fe7c4a5436b7a.asciidoc similarity index 89% rename from docs/examples/88ec7fa6768a7e13cd2158667a69e97f.asciidoc rename to docs/examples/b09f155602f9b2a6c40fe7c4a5436b7a.asciidoc index ee6038143..1e378ab10 100644 --- a/docs/examples/88ec7fa6768a7e13cd2158667a69e97f.asciidoc +++ b/docs/examples/b09f155602f9b2a6c40fe7c4a5436b7a.asciidoc @@ -7,7 +7,7 @@ resp = client.search( runtime_mappings={ "day_of_week": { "type": "keyword", - "script": "\n emit(doc['timestamp'].value.dayOfWeekEnum\n .getDisplayName(TextStyle.FULL, Locale.ROOT))\n " + "script": "\n emit(doc['timestamp'].value.dayOfWeekEnum\n .getDisplayName(TextStyle.FULL, Locale.ENGLISH))\n " } }, size=0, diff --git a/docs/examples/b0fe9a7c8e519995258786be4bef36c4.asciidoc b/docs/examples/b0fe9a7c8e519995258786be4bef36c4.asciidoc index 1318dded6..90b70da87 100644 --- a/docs/examples/b0fe9a7c8e519995258786be4bef36c4.asciidoc +++ b/docs/examples/b0fe9a7c8e519995258786be4bef36c4.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/search-your-data/semantic-search-inference.asciidoc:92 +// search/search-your-data/semantic-search-inference.asciidoc:97 [source, python] ---- diff --git a/docs/examples/b16700002af3aa70639f3e88c733bf35.asciidoc b/docs/examples/b16700002af3aa70639f3e88c733bf35.asciidoc new file mode 100644 index 000000000..7667385c2 --- /dev/null +++ b/docs/examples/b16700002af3aa70639f3e88c733bf35.asciidoc @@ -0,0 +1,12 @@ +// This file is autogenerated, DO NOT EDIT +// search/point-in-time-api.asciidoc:95 + +[source, python] +---- +resp = client.open_point_in_time( + index="my-index-000001", + keep_alive="1m", + allow_partial_search_results=True, +) +print(resp) +---- diff --git a/docs/examples/b3fffd96fdb118cd059b5f1d67d928de.asciidoc b/docs/examples/b3fffd96fdb118cd059b5f1d67d928de.asciidoc index f675bdc39..9af530948 100644 --- a/docs/examples/b3fffd96fdb118cd059b5f1d67d928de.asciidoc +++ b/docs/examples/b3fffd96fdb118cd059b5f1d67d928de.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/geo-shape.asciidoc:331 +// mapping/types/geo-shape.asciidoc:330 [source, python] ---- diff --git a/docs/examples/b94cee0f74f57742b3948f9b784dfdd4.asciidoc b/docs/examples/b94cee0f74f57742b3948f9b784dfdd4.asciidoc index d682836ca..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:535 +// search/search-your-data/paginate-search-results.asciidoc:537 [source, python] ---- diff --git a/docs/examples/bcdfaa4487747249699a86a0dcd22f5e.asciidoc b/docs/examples/bcdfaa4487747249699a86a0dcd22f5e.asciidoc index 31240e019..0672fc36d 100644 --- a/docs/examples/bcdfaa4487747249699a86a0dcd22f5e.asciidoc +++ b/docs/examples/bcdfaa4487747249699a86a0dcd22f5e.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// ingest/apis/simulate-ingest.asciidoc:274 +// ingest/apis/simulate-ingest.asciidoc:278 [source, python] ---- diff --git a/docs/examples/bd68666ca2e0be12f7624016317a62bc.asciidoc b/docs/examples/bd68666ca2e0be12f7624016317a62bc.asciidoc index dba5a5ef4..bdab504e3 100644 --- a/docs/examples/bd68666ca2e0be12f7624016317a62bc.asciidoc +++ b/docs/examples/bd68666ca2e0be12f7624016317a62bc.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// cluster/nodes-stats.asciidoc:2419 +// cluster/nodes-stats.asciidoc:2563 [source, python] ---- diff --git a/docs/examples/bf1de9fa1b825fa875d27fa08821a6d1.asciidoc b/docs/examples/bf1de9fa1b825fa875d27fa08821a6d1.asciidoc index 20dc314c2..767c6efdf 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:109 +// esql/esql-across-clusters.asciidoc:114 [source, python] ---- diff --git a/docs/examples/c03ce952de42eae4b522cedc9fd3d14a.asciidoc b/docs/examples/c03ce952de42eae4b522cedc9fd3d14a.asciidoc index 50418c081..1ea7cdeb1 100644 --- a/docs/examples/c03ce952de42eae4b522cedc9fd3d14a.asciidoc +++ b/docs/examples/c03ce952de42eae4b522cedc9fd3d14a.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/geo-shape.asciidoc:270 +// mapping/types/geo-shape.asciidoc:269 [source, python] ---- diff --git a/docs/examples/c21aaedb5752a83489476fa3b5e2e9ff.asciidoc b/docs/examples/c21aaedb5752a83489476fa3b5e2e9ff.asciidoc index fc31b2398..a30469252 100644 --- a/docs/examples/c21aaedb5752a83489476fa3b5e2e9ff.asciidoc +++ b/docs/examples/c21aaedb5752a83489476fa3b5e2e9ff.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// query-rules/apis/put-query-rule.asciidoc:110 +// query-rules/apis/put-query-rule.asciidoc:114 [source, python] ---- diff --git a/docs/examples/c2c21e2824fbf6b7198ede30419da82b.asciidoc b/docs/examples/c2c21e2824fbf6b7198ede30419da82b.asciidoc index 9cc582462..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:527 +// search/search-your-data/paginate-search-results.asciidoc:529 [source, python] ---- diff --git a/docs/examples/c6f07c53eda4db77305bb14751b3263f.asciidoc b/docs/examples/c6f07c53eda4db77305bb14751b3263f.asciidoc deleted file mode 100644 index e36838da8..000000000 --- a/docs/examples/c6f07c53eda4db77305bb14751b3263f.asciidoc +++ /dev/null @@ -1,50 +0,0 @@ -// This file is autogenerated, DO NOT EDIT -// snapshot-restore/repository-azure.asciidoc:199 - -[source, python] ----- -resp = client.snapshot.create_repository( - name="my_backup1", - repository={ - "type": "azure" - }, -) -print(resp) - -resp1 = client.snapshot.create_repository( - name="my_backup2", - repository={ - "type": "azure", - "settings": { - "container": "backup-container", - "base_path": "backups", - "chunk_size": "32MB", - "compress": True - } - }, -) -print(resp1) - -resp2 = client.snapshot.create_repository( - name="my_backup3", - repository={ - "type": "azure", - "settings": { - "client": "secondary" - } - }, -) -print(resp2) - -resp3 = client.snapshot.create_repository( - name="my_backup4", - repository={ - "type": "azure", - "settings": { - "client": "secondary", - "location_mode": "primary_only" - } - }, -) -print(resp3) ----- diff --git a/docs/examples/ce2c2e8f5a2e4daf051b6e10122e5aae.asciidoc b/docs/examples/ce2c2e8f5a2e4daf051b6e10122e5aae.asciidoc new file mode 100644 index 000000000..aeeb761ae --- /dev/null +++ b/docs/examples/ce2c2e8f5a2e4daf051b6e10122e5aae.asciidoc @@ -0,0 +1,19 @@ +// This file is autogenerated, DO NOT EDIT +// mapping/types/dense-vector.asciidoc:490 + +[source, python] +---- +resp = client.indices.put_mapping( + index="my-index-000001", + properties={ + "text_embedding": { + "type": "dense_vector", + "dims": 384, + "index_options": { + "type": "int4_hnsw" + } + } + }, +) +print(resp) +---- diff --git a/docs/examples/cedb56a71cc743d80263ce352bb21720.asciidoc b/docs/examples/cedb56a71cc743d80263ce352bb21720.asciidoc index 5f65dc494..9f552c719 100644 --- a/docs/examples/cedb56a71cc743d80263ce352bb21720.asciidoc +++ b/docs/examples/cedb56a71cc743d80263ce352bb21720.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// inference/service-elser.asciidoc:73 +// inference/service-elser.asciidoc:91 [source, python] ---- diff --git a/docs/examples/cf23f18761df33f08bc6f6d1875496fd.asciidoc b/docs/examples/cf23f18761df33f08bc6f6d1875496fd.asciidoc index 559350421..79ac096c2 100644 --- a/docs/examples/cf23f18761df33f08bc6f6d1875496fd.asciidoc +++ b/docs/examples/cf23f18761df33f08bc6f6d1875496fd.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// how-to/size-your-shards.asciidoc:397 +// how-to/size-your-shards.asciidoc:398 [source, python] ---- diff --git a/docs/examples/d27591881da6f5767523b1beb233adc7.asciidoc b/docs/examples/d27591881da6f5767523b1beb233adc7.asciidoc new file mode 100644 index 000000000..696169afa --- /dev/null +++ b/docs/examples/d27591881da6f5767523b1beb233adc7.asciidoc @@ -0,0 +1,13 @@ +// This file is autogenerated, DO NOT EDIT +// snapshot-restore/repository-azure.asciidoc:87 + +[source, python] +---- +resp = client.snapshot.create_repository( + name="my_backup", + repository={ + "type": "azure" + }, +) +print(resp) +---- diff --git a/docs/examples/d5dcddc6398b473b6ad9bce5c6adf986.asciidoc b/docs/examples/d5dcddc6398b473b6ad9bce5c6adf986.asciidoc index d306117a8..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:433 +// search/search-your-data/paginate-search-results.asciidoc:435 [source, python] ---- diff --git a/docs/examples/df04e2e9af66d5e30b1bfdbd458cab13.asciidoc b/docs/examples/df04e2e9af66d5e30b1bfdbd458cab13.asciidoc index 9855d9a99..e4d62925c 100644 --- a/docs/examples/df04e2e9af66d5e30b1bfdbd458cab13.asciidoc +++ b/docs/examples/df04e2e9af66d5e30b1bfdbd458cab13.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// how-to/size-your-shards.asciidoc:237 +// how-to/size-your-shards.asciidoc:238 [source, python] ---- diff --git a/docs/examples/dfa16b7300d225e013f23625f44c087b.asciidoc b/docs/examples/dfa16b7300d225e013f23625f44c087b.asciidoc index 2d5d12d6d..70036af43 100644 --- a/docs/examples/dfa16b7300d225e013f23625f44c087b.asciidoc +++ b/docs/examples/dfa16b7300d225e013f23625f44c087b.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// index-modules/similarity.asciidoc:192 +// index-modules/similarity.asciidoc:194 [source, python] ---- diff --git a/docs/examples/dfce1be1d035aff0b8fdf4a8839f7795.asciidoc b/docs/examples/dfce1be1d035aff0b8fdf4a8839f7795.asciidoc new file mode 100644 index 000000000..4d49fe44f --- /dev/null +++ b/docs/examples/dfce1be1d035aff0b8fdf4a8839f7795.asciidoc @@ -0,0 +1,15 @@ +// This file is autogenerated, DO NOT EDIT +// ml/trained-models/apis/update-trained-model-deployment.asciidoc:115 + +[source, python] +---- +resp = client.ml.update_trained_model_deployment( + model_id="elastic__distilbert-base-uncased-finetuned-conll03-english", + adaptive_allocations={ + "enabled": True, + "min_number_of_allocations": 3, + "max_number_of_allocations": 10 + }, +) +print(resp) +---- diff --git a/docs/examples/e095fc96504efecc588f97673912e3d3.asciidoc b/docs/examples/e095fc96504efecc588f97673912e3d3.asciidoc index a735cbc54..d4ec08315 100644 --- a/docs/examples/e095fc96504efecc588f97673912e3d3.asciidoc +++ b/docs/examples/e095fc96504efecc588f97673912e3d3.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// ml/anomaly-detection/apis/put-job.asciidoc:400 +// ml/anomaly-detection/apis/put-job.asciidoc:414 [source, python] ---- diff --git a/docs/examples/e3f2f6ee3e312b8a90634827ae954d70.asciidoc b/docs/examples/e3f2f6ee3e312b8a90634827ae954d70.asciidoc index 1cfe1f1f4..80b7de341 100644 --- a/docs/examples/e3f2f6ee3e312b8a90634827ae954d70.asciidoc +++ b/docs/examples/e3f2f6ee3e312b8a90634827ae954d70.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/geo-shape.asciidoc:422 +// mapping/types/geo-shape.asciidoc:421 [source, python] ---- diff --git a/docs/examples/e63775a2ff22b945ab9d5f630b80c506.asciidoc b/docs/examples/e63775a2ff22b945ab9d5f630b80c506.asciidoc index 44d2a08a1..648bd4ab1 100644 --- a/docs/examples/e63775a2ff22b945ab9d5f630b80c506.asciidoc +++ b/docs/examples/e63775a2ff22b945ab9d5f630b80c506.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// cluster/health.asciidoc:192 +// cluster/health.asciidoc:196 [source, python] ---- diff --git a/docs/examples/e7cfe670b4177d1011076f845ec2916c.asciidoc b/docs/examples/e7cfe670b4177d1011076f845ec2916c.asciidoc new file mode 100644 index 000000000..295b2407d --- /dev/null +++ b/docs/examples/e7cfe670b4177d1011076f845ec2916c.asciidoc @@ -0,0 +1,13 @@ +// This file is autogenerated, DO NOT EDIT +// data-streams/lifecycle/tutorial-manage-data-stream-retention.asciidoc:144 + +[source, python] +---- +resp = client.cluster.put_settings( + persistent={ + "data_streams.lifecycle.retention.default": "7d", + "data_streams.lifecycle.retention.max": "90d" + }, +) +print(resp) +---- diff --git a/docs/examples/e8c348cabe15dfe58ab4c3cc13a963fe.asciidoc b/docs/examples/e8c348cabe15dfe58ab4c3cc13a963fe.asciidoc index e39eb924d..4c3ecc511 100644 --- a/docs/examples/e8c348cabe15dfe58ab4c3cc13a963fe.asciidoc +++ b/docs/examples/e8c348cabe15dfe58ab4c3cc13a963fe.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/search-shards.asciidoc:71 +// search/search-shards.asciidoc:72 [source, python] ---- diff --git a/docs/examples/ed60daeaec351fc8b3f39a3dfad6fc4e.asciidoc b/docs/examples/ed60daeaec351fc8b3f39a3dfad6fc4e.asciidoc index 00daf5cbe..ac82d3ac5 100644 --- a/docs/examples/ed60daeaec351fc8b3f39a3dfad6fc4e.asciidoc +++ b/docs/examples/ed60daeaec351fc8b3f39a3dfad6fc4e.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// tab-widgets/inference-api/infer-api-mapping.asciidoc:242 +// tab-widgets/inference-api/infer-api-mapping.asciidoc:275 [source, python] ---- diff --git a/docs/examples/ee223e604bb695cad2517d28ae63ac34.asciidoc b/docs/examples/ee223e604bb695cad2517d28ae63ac34.asciidoc index 18240246e..5604e2e2c 100644 --- a/docs/examples/ee223e604bb695cad2517d28ae63ac34.asciidoc +++ b/docs/examples/ee223e604bb695cad2517d28ae63ac34.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// search/rrf.asciidoc:51 +// search/rrf.asciidoc:49 [source, python] ---- diff --git a/docs/examples/4f792d86ff79dcfe4643cd95505f8d5f.asciidoc b/docs/examples/ef46c42d473b2acc151a6a41272e0f14.asciidoc similarity index 90% rename from docs/examples/4f792d86ff79dcfe4643cd95505f8d5f.asciidoc rename to docs/examples/ef46c42d473b2acc151a6a41272e0f14.asciidoc index a9a72432f..b9df704c5 100644 --- a/docs/examples/4f792d86ff79dcfe4643cd95505f8d5f.asciidoc +++ b/docs/examples/ef46c42d473b2acc151a6a41272e0f14.asciidoc @@ -11,7 +11,7 @@ resp = client.indices.create( "day_of_week": { "type": "keyword", "script": { - "source": "emit(doc['@timestamp'].value.dayOfWeekEnum.getDisplayName(TextStyle.FULL, Locale.ROOT))" + "source": "emit(doc['@timestamp'].value.dayOfWeekEnum.getDisplayName(TextStyle.FULL, Locale.ENGLISH))" } } }, diff --git a/docs/examples/ef9c29759459904fef162acd223462c4.asciidoc b/docs/examples/ef9c29759459904fef162acd223462c4.asciidoc index d205709ff..920357cbd 100644 --- a/docs/examples/ef9c29759459904fef162acd223462c4.asciidoc +++ b/docs/examples/ef9c29759459904fef162acd223462c4.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// cluster/nodes-stats.asciidoc:2441 +// cluster/nodes-stats.asciidoc:2585 [source, python] ---- diff --git a/docs/examples/4fe78a4dfb747fd5dc34145ec6b76183.asciidoc b/docs/examples/efbd4936cca1a752493d8fa2ba6ad1a3.asciidoc similarity index 89% rename from docs/examples/4fe78a4dfb747fd5dc34145ec6b76183.asciidoc rename to docs/examples/efbd4936cca1a752493d8fa2ba6ad1a3.asciidoc index ba1e66696..5b1bf83dd 100644 --- a/docs/examples/4fe78a4dfb747fd5dc34145ec6b76183.asciidoc +++ b/docs/examples/efbd4936cca1a752493d8fa2ba6ad1a3.asciidoc @@ -10,7 +10,7 @@ resp = client.indices.create( "day_of_week": { "type": "keyword", "script": { - "source": "emit(doc['@timestamp'].value.dayOfWeekEnum.getDisplayName(TextStyle.FULL, Locale.ROOT))" + "source": "emit(doc['@timestamp'].value.dayOfWeekEnum.getDisplayName(TextStyle.FULL, Locale.ENGLISH))" } } }, diff --git a/docs/examples/f160561efab38e40c2feebf5a2542ab5.asciidoc b/docs/examples/f160561efab38e40c2feebf5a2542ab5.asciidoc index e205a5802..e119375b9 100644 --- a/docs/examples/f160561efab38e40c2feebf5a2542ab5.asciidoc +++ b/docs/examples/f160561efab38e40c2feebf5a2542ab5.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// cluster/nodes-stats.asciidoc:2449 +// cluster/nodes-stats.asciidoc:2593 [source, python] ---- diff --git a/docs/examples/f3fb52680482925c202c2e2f8af6f044.asciidoc b/docs/examples/f3fb52680482925c202c2e2f8af6f044.asciidoc index 225b43453..260106272 100644 --- a/docs/examples/f3fb52680482925c202c2e2f8af6f044.asciidoc +++ b/docs/examples/f3fb52680482925c202c2e2f8af6f044.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// how-to/size-your-shards.asciidoc:457 +// how-to/size-your-shards.asciidoc:458 [source, python] ---- diff --git a/docs/examples/f4dc1286d0a2f8d1fde64fbf12fd9f8d.asciidoc b/docs/examples/f4dc1286d0a2f8d1fde64fbf12fd9f8d.asciidoc index cbec63443..b48e2704b 100644 --- a/docs/examples/f4dc1286d0a2f8d1fde64fbf12fd9f8d.asciidoc +++ b/docs/examples/f4dc1286d0a2f8d1fde64fbf12fd9f8d.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// troubleshooting/common-issues/disk-usage-exceeded.asciidoc:85 +// troubleshooting/common-issues/disk-usage-exceeded.asciidoc:86 [source, python] ---- diff --git a/docs/examples/f5eed3f2e3558a238487bc85305b7a71.asciidoc b/docs/examples/f5eed3f2e3558a238487bc85305b7a71.asciidoc index 206271e47..d804b66ae 100644 --- a/docs/examples/f5eed3f2e3558a238487bc85305b7a71.asciidoc +++ b/docs/examples/f5eed3f2e3558a238487bc85305b7a71.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/geo-shape.asciidoc:242 +// mapping/types/geo-shape.asciidoc:241 [source, python] ---- diff --git a/docs/examples/f6566395f85d3afe917228643d7318d6.asciidoc b/docs/examples/f6566395f85d3afe917228643d7318d6.asciidoc index 7c9ef09c7..1a38176a3 100644 --- a/docs/examples/f6566395f85d3afe917228643d7318d6.asciidoc +++ b/docs/examples/f6566395f85d3afe917228643d7318d6.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// how-to/size-your-shards.asciidoc:467 +// how-to/size-your-shards.asciidoc:468 [source, python] ---- diff --git a/docs/examples/f9a315ea99bed0cf2f36be1d74eb3e4a.asciidoc b/docs/examples/f9a315ea99bed0cf2f36be1d74eb3e4a.asciidoc index 4d9ac9c06..fb9da543e 100644 --- a/docs/examples/f9a315ea99bed0cf2f36be1d74eb3e4a.asciidoc +++ b/docs/examples/f9a315ea99bed0cf2f36be1d74eb3e4a.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/geo-shape.asciidoc:408 +// mapping/types/geo-shape.asciidoc:407 [source, python] ---- diff --git a/docs/examples/fab4b811ba968aa4df92fb1ac059ea31.asciidoc b/docs/examples/fab4b811ba968aa4df92fb1ac059ea31.asciidoc index de543694a..17a6e60d7 100644 --- a/docs/examples/fab4b811ba968aa4df92fb1ac059ea31.asciidoc +++ b/docs/examples/fab4b811ba968aa4df92fb1ac059ea31.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// mapping/types/geo-shape.asciidoc:107 +// mapping/types/geo-shape.asciidoc:106 [source, python] ---- diff --git a/docs/examples/fc49437ce2e7916facf58128308c2aa3.asciidoc b/docs/examples/fc49437ce2e7916facf58128308c2aa3.asciidoc index 94b2779c6..a5b2395ab 100644 --- a/docs/examples/fc49437ce2e7916facf58128308c2aa3.asciidoc +++ b/docs/examples/fc49437ce2e7916facf58128308c2aa3.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// searchable-snapshots/apis/mount-snapshot.asciidoc:123 +// searchable-snapshots/apis/mount-snapshot.asciidoc:128 [source, python] ---- diff --git a/docs/examples/fd738a9af7b5d21da31a7722f03aade8.asciidoc b/docs/examples/fd738a9af7b5d21da31a7722f03aade8.asciidoc index 7f8de764b..b8c8d60fa 100644 --- a/docs/examples/fd738a9af7b5d21da31a7722f03aade8.asciidoc +++ b/docs/examples/fd738a9af7b5d21da31a7722f03aade8.asciidoc @@ -1,5 +1,5 @@ // This file is autogenerated, DO NOT EDIT -// how-to/size-your-shards.asciidoc:170 +// how-to/size-your-shards.asciidoc:171 [source, python] ---- diff --git a/docs/guide/release-notes.asciidoc b/docs/guide/release-notes.asciidoc index 920aa8bd7..674346865 100644 --- a/docs/guide/release-notes.asciidoc +++ b/docs/guide/release-notes.asciidoc @@ -1,6 +1,7 @@ [[release-notes]] == Release notes +* <> * <> * <> * <> @@ -40,6 +41,18 @@ * <> * <> +[discrete] +[[rn-8-15-1]] +=== 8.15.1 (2024-09-08) + +- Fix OTel context loss in parallel bulk helper (https://github.com/elastic/elasticsearch-py/pull/2616[#2616]) +- Use request converter to generate python examples (https://github.com/elastic/elasticsearch-py/pull/2645[#2645]) +- Add Geoip database configuration APIs: Create or update, Get and Delete +- Add `q` parameter to Update by Query API +- Add `allow_no_indices` and `ignore_unavailable` parameters to Resolve index API + + + [discrete] [[rn-8-15-0]] === 8.15.0 (2024-08-09) diff --git a/elasticsearch/_version.py b/elasticsearch/_version.py index 903b0f694..cf59dc4a8 100644 --- a/elasticsearch/_version.py +++ b/elasticsearch/_version.py @@ -15,4 +15,4 @@ # specific language governing permissions and limitations # under the License. -__versionstr__ = "8.15.0" +__versionstr__ = "8.15.1" diff --git a/utils/generate-docs-examples/package-lock.json b/utils/generate-docs-examples/package-lock.json index f482f91c6..3148aba96 100644 --- a/utils/generate-docs-examples/package-lock.json +++ b/utils/generate-docs-examples/package-lock.json @@ -9,7 +9,7 @@ "version": "1.0.0", "license": "Apache-2.0", "dependencies": { - "@elastic/request-converter": "^8.15.2", + "@elastic/request-converter": "~8.15.2", "minimist": "^1.2.6", "node-fetch": "^2.6.7", "ora": "^5.4.1", @@ -20,6 +20,7 @@ "version": "8.15.4", "resolved": "https://registry.npmjs.org/@elastic/request-converter/-/request-converter-8.15.4.tgz", "integrity": "sha512-iZDQpZpygV+AVOweaDzTsMJBfa2hwwduPXNNzk/yTXgC9qtjmns/AjehtLStKXs274+u3fg+BFxVt6NcMwUAAg==", + "license": "Apache-2.0", "dependencies": { "child-process-promise": "^2.2.1", "commander": "^12.1.0", @@ -35,6 +36,7 @@ "version": "5.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "license": "MIT", "engines": { "node": ">=8" } @@ -43,6 +45,7 @@ "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -56,7 +59,8 @@ "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "license": "MIT" }, "node_modules/base64-js": { "version": "1.5.1", @@ -75,12 +79,14 @@ "type": "consulting", "url": "https://feross.org/support" } - ] + ], + "license": "MIT" }, "node_modules/bl": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", + "license": "MIT", "dependencies": { "buffer": "^5.5.0", "inherits": "^2.0.4", @@ -91,6 +97,7 @@ "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "license": "MIT", "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -114,6 +121,7 @@ "url": "https://feross.org/support" } ], + "license": "MIT", "dependencies": { "base64-js": "^1.3.1", "ieee754": "^1.1.13" @@ -123,6 +131,7 @@ "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -138,6 +147,7 @@ "version": "2.2.1", "resolved": "https://registry.npmjs.org/child-process-promise/-/child-process-promise-2.2.1.tgz", "integrity": "sha512-Fi4aNdqBsr0mv+jgWxcZ/7rAIC2mgihrptyVI4foh/rrjY/3BNjfP9+oaiFx/fzim+1ZyCNBae0DlyfQhSugog==", + "license": "MIT", "dependencies": { "cross-spawn": "^4.0.2", "node-version": "^1.0.0", @@ -148,6 +158,7 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", + "license": "MIT", "dependencies": { "restore-cursor": "^3.1.0" }, @@ -159,6 +170,7 @@ "version": "2.9.2", "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.2.tgz", "integrity": "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==", + "license": "MIT", "engines": { "node": ">=6" }, @@ -170,6 +182,7 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==", + "license": "MIT", "engines": { "node": ">=0.8" } @@ -178,6 +191,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -188,12 +202,14 @@ "node_modules/color-name": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "license": "MIT" }, "node_modules/commander": { "version": "12.1.0", "resolved": "https://registry.npmjs.org/commander/-/commander-12.1.0.tgz", "integrity": "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==", + "license": "MIT", "engines": { "node": ">=18" } @@ -201,12 +217,14 @@ "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "license": "MIT" }, "node_modules/cross-spawn": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-4.0.2.tgz", "integrity": "sha512-yAXz/pA1tD8Gtg2S98Ekf/sewp3Lcp3YoFKJ4Hkp5h5yLWnKVTDU0kwjKJ8NDCYcfTLfyGkzTikst+jWypT1iA==", + "license": "MIT", "dependencies": { "lru-cache": "^4.0.1", "which": "^1.2.9" @@ -216,6 +234,7 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz", "integrity": "sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==", + "license": "MIT", "dependencies": { "clone": "^1.0.2" }, @@ -226,18 +245,21 @@ "node_modules/find-my-way-ts": { "version": "0.1.5", "resolved": "https://registry.npmjs.org/find-my-way-ts/-/find-my-way-ts-0.1.5.tgz", - "integrity": "sha512-4GOTMrpGQVzsCH2ruUn2vmwzV/02zF4q+ybhCIrw/Rkt3L8KWcycdC6aJMctJzwN4fXD4SD5F/4B9Sksh5rE0A==" + "integrity": "sha512-4GOTMrpGQVzsCH2ruUn2vmwzV/02zF4q+ybhCIrw/Rkt3L8KWcycdC6aJMctJzwN4fXD4SD5F/4B9Sksh5rE0A==", + "license": "MIT" }, "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "license": "ISC" }, "node_modules/glob": { "version": "7.2.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", "deprecated": "Glob versions prior to v9 are no longer supported", + "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -257,6 +279,7 @@ "version": "4.7.8", "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.8.tgz", "integrity": "sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==", + "license": "MIT", "dependencies": { "minimist": "^1.2.5", "neo-async": "^2.6.2", @@ -277,6 +300,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "license": "MIT", "engines": { "node": ">=8" } @@ -298,13 +322,15 @@ "type": "consulting", "url": "https://feross.org/support" } - ] + ], + "license": "BSD-3-Clause" }, "node_modules/inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", + "license": "ISC", "dependencies": { "once": "^1.3.0", "wrappy": "1" @@ -313,12 +339,14 @@ "node_modules/inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "license": "ISC" }, "node_modules/is-interactive": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz", "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==", + "license": "MIT", "engines": { "node": ">=8" } @@ -327,6 +355,7 @@ "version": "0.1.0", "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", + "license": "MIT", "engines": { "node": ">=10" }, @@ -337,12 +366,14 @@ "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "license": "ISC" }, "node_modules/log-symbols": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", + "license": "MIT", "dependencies": { "chalk": "^4.1.0", "is-unicode-supported": "^0.1.0" @@ -358,6 +389,7 @@ "version": "4.1.5", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz", "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", + "license": "ISC", "dependencies": { "pseudomap": "^1.0.2", "yallist": "^2.1.2" @@ -367,6 +399,7 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "license": "MIT", "engines": { "node": ">=6" } @@ -375,6 +408,7 @@ "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "license": "ISC", "dependencies": { "brace-expansion": "^1.1.7" }, @@ -386,6 +420,7 @@ "version": "1.2.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -393,12 +428,14 @@ "node_modules/neo-async": { "version": "2.6.2", "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", - "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==" + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "license": "MIT" }, "node_modules/node-fetch": { "version": "2.7.0", "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "license": "MIT", "dependencies": { "whatwg-url": "^5.0.0" }, @@ -418,6 +455,7 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/node-version/-/node-version-1.2.0.tgz", "integrity": "sha512-ma6oU4Sk0qOoKEAymVoTvk8EdXEobdS7m/mAGhDJ8Rouugho48crHBORAmy5BoOcv8wraPM6xumapQp5hl4iIQ==", + "license": "MIT", "engines": { "node": ">=6.0.0" } @@ -426,6 +464,7 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "license": "ISC", "dependencies": { "wrappy": "1" } @@ -434,6 +473,7 @@ "version": "5.1.2", "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "license": "MIT", "dependencies": { "mimic-fn": "^2.1.0" }, @@ -448,6 +488,7 @@ "version": "5.4.1", "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz", "integrity": "sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==", + "license": "MIT", "dependencies": { "bl": "^4.1.0", "chalk": "^4.1.0", @@ -470,6 +511,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -478,6 +520,7 @@ "version": "2.8.8", "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", + "license": "MIT", "bin": { "prettier": "bin-prettier.js" }, @@ -491,17 +534,20 @@ "node_modules/promise-polyfill": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/promise-polyfill/-/promise-polyfill-6.1.0.tgz", - "integrity": "sha512-g0LWaH0gFsxovsU7R5LrrhHhWAWiHRnh1GPrhXnPgYsDkIqjRYUYSZEsej/wtleDrz5xVSIDbeKfidztp2XHFQ==" + "integrity": "sha512-g0LWaH0gFsxovsU7R5LrrhHhWAWiHRnh1GPrhXnPgYsDkIqjRYUYSZEsej/wtleDrz5xVSIDbeKfidztp2XHFQ==", + "license": "MIT" }, "node_modules/pseudomap": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", - "integrity": "sha512-b/YwNhb8lk1Zz2+bXXpS/LK9OisiZZ1SNsSLxN1x2OXVEhW2Ckr/7mWE5vrC1ZTiJlD9g19jWszTmJsB+oEpFQ==" + "integrity": "sha512-b/YwNhb8lk1Zz2+bXXpS/LK9OisiZZ1SNsSLxN1x2OXVEhW2Ckr/7mWE5vrC1ZTiJlD9g19jWszTmJsB+oEpFQ==", + "license": "ISC" }, "node_modules/readable-stream": { "version": "3.6.2", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "license": "MIT", "dependencies": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", @@ -515,6 +561,7 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", + "license": "MIT", "dependencies": { "onetime": "^5.1.0", "signal-exit": "^3.0.2" @@ -528,6 +575,7 @@ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", "deprecated": "Rimraf versions prior to v4 are no longer supported", + "license": "ISC", "dependencies": { "glob": "^7.1.3" }, @@ -555,17 +603,20 @@ "type": "consulting", "url": "https://feross.org/support" } - ] + ], + "license": "MIT" }, "node_modules/signal-exit": { "version": "3.0.7", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "license": "ISC" }, "node_modules/source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" } @@ -574,6 +625,7 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "license": "MIT", "dependencies": { "safe-buffer": "~5.2.0" } @@ -582,6 +634,7 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "license": "MIT", "dependencies": { "ansi-regex": "^5.0.1" }, @@ -593,6 +646,7 @@ "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -603,12 +657,14 @@ "node_modules/tr46": { "version": "0.0.3", "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", + "license": "MIT" }, "node_modules/uglify-js": { - "version": "3.19.2", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.19.2.tgz", - "integrity": "sha512-S8KA6DDI47nQXJSi2ctQ629YzwOVs+bQML6DAtvy0wgNdpi+0ySpQK0g2pxBq2xfF2z3YCscu7NNA8nXT9PlIQ==", + "version": "3.19.3", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.19.3.tgz", + "integrity": "sha512-v3Xu+yuwBXisp6QYTcH4UbH+xYJXqnq2m/LtQVWKWzYc1iehYnLixoQDN9FH6/j9/oybfd6W9Ghwkl8+UMKTKQ==", + "license": "BSD-2-Clause", "optional": true, "bin": { "uglifyjs": "bin/uglifyjs" @@ -620,12 +676,14 @@ "node_modules/util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "license": "MIT" }, "node_modules/wcwidth": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz", "integrity": "sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==", + "license": "MIT", "dependencies": { "defaults": "^1.0.3" } @@ -633,12 +691,14 @@ "node_modules/webidl-conversions": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", + "license": "BSD-2-Clause" }, "node_modules/whatwg-url": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "license": "MIT", "dependencies": { "tr46": "~0.0.3", "webidl-conversions": "^3.0.0" @@ -648,6 +708,7 @@ "version": "1.3.1", "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "license": "ISC", "dependencies": { "isexe": "^2.0.0" }, @@ -658,17 +719,20 @@ "node_modules/wordwrap": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", - "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==" + "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==", + "license": "MIT" }, "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "license": "ISC" }, "node_modules/yallist": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", - "integrity": "sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A==" + "integrity": "sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A==", + "license": "ISC" } } } From 3bdfdd0ec482265900864b6f9871f2c0491467f9 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Sun, 8 Sep 2024 20:56:11 +0400 Subject: [PATCH 2/2] Force recent sphinx-rtd-theme version Otherwise, Sphinx 8 is used and we end up with sphinx-rtd-theme 0.5, which did not have any Sphinx requirement. --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index ba83d6329..1a2563680 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -76,7 +76,7 @@ dev = [ ] docs = [ "sphinx", - "sphinx-rtd-theme", + "sphinx-rtd-theme>=2.0", "sphinx-autodoc-typehints" ]