Skip to content

Commit

Permalink
Bring 8.16.0 release to main (#2711)
Browse files Browse the repository at this point in the history
(cherry picked from commit ec0f167)
  • Loading branch information
pquentin authored and github-actions[bot] committed Nov 13, 2024
1 parent 7d03a7d commit c5c5db4
Show file tree
Hide file tree
Showing 454 changed files with 3,278 additions and 617 deletions.
2 changes: 1 addition & 1 deletion docs/examples/00fea15cbca83be9d5f1a024ff2ec708.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// inference/service-elasticsearch.asciidoc:112
// inference/service-elasticsearch.asciidoc:163

[source, python]
----
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
// This file is autogenerated, DO NOT EDIT
// mapping/types/keyword.asciidoc:249
// mapping/types/keyword.asciidoc:260

[source, python]
----
resp = client.indices.create(
index="idx",
settings={
"index": {
"mapping": {
"source": {
"mode": "synthetic"
}
}
}
},
mappings={
"_source": {
"mode": "synthetic"
},
"properties": {
"kwd": {
"type": "keyword",
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/01b23f09d2b7f140faf649eadbbf3ac3.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// indices/index-templates.asciidoc:83
// indices/index-templates.asciidoc:84

[source, python]
----
Expand Down
12 changes: 12 additions & 0 deletions docs/examples/01cd0ea360282a2c591a366679d7187d.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// This file is autogenerated, DO NOT EDIT
// troubleshooting/common-issues/task-queue-backlog.asciidoc:60

[source, python]
----
resp = client.tasks.list(
human=True,
detailed=True,
actions="indices:data/write/bulk",
)
print(resp)
----
2 changes: 1 addition & 1 deletion docs/examples/03891265df2111a38e0b6b24c1b967e1.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// rest-api/security/get-service-accounts.asciidoc:267
// rest-api/security/get-service-accounts.asciidoc:299

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/04412d11783dac25b5fd2ec5407078a3.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// connector/apis/update-connector-api-key-id-api.asciidoc:86
// connector/apis/update-connector-api-key-id-api.asciidoc:87

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/046b2249bbc49e77848c114cee940f17.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// query-dsl/text-expansion-query.asciidoc:157
// query-dsl/text-expansion-query.asciidoc:164

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/04de2e3a9c00c2056b07bf9cf9e63a99.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// inference/service-google-vertex-ai.asciidoc:107
// inference/service-google-vertex-ai.asciidoc:127

[source, python]
----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[source, python]
----
resp = client.ingest.put_pipeline(
id="alibabacloud_ai_search_embeddings",
id="alibabacloud_ai_search_embeddings_pipeline",
processors=[
{
"inference": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

[source, python]
----
resp = client.cluster.reroute(
metric="none",
)
resp = client.cluster.reroute()
print(resp)
----
2 changes: 1 addition & 1 deletion docs/examples/0737ebaea33631f001fb3f4226948492.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// ingest/processors/geoip.asciidoc:235
// ingest/processors/geoip.asciidoc:237

[source, python]
----
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// inference/service-elasticsearch.asciidoc:172
// inference/service-elasticsearch.asciidoc:223

[source, python]
----
Expand All @@ -14,6 +14,7 @@ resp = client.inference.put(
"min_number_of_allocations": 3,
"max_number_of_allocations": 10
},
"num_threads": 1,
"model_id": ".multilingual-e5-small"
}
},
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/095e3f21941a9cc75f398389a075152d.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// ml/trained-models/apis/infer-trained-model.asciidoc:1043
// ml/trained-models/apis/infer-trained-model.asciidoc:1144

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/09769561f082b50558fb7d8707719963.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// cluster/nodes-stats.asciidoc:2578
// cluster/nodes-stats.asciidoc:2582

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/09cb1b18bf4033b4afafb25bd3dab12c.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// query-dsl/rule-query.asciidoc:65
// query-dsl/rule-query.asciidoc:71

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/0a650401134f07e40216f0d0d1a66a32.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// cat/allocation.asciidoc:119
// cat/allocation.asciidoc:120

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/0ad8edd10542ec2c4d5d8700d7e2ba97.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// inference/service-amazon-bedrock.asciidoc:136
// inference/service-amazon-bedrock.asciidoc:156

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/0ade87c8cb0e3c188d2e3dce279d5cc2.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// connector/apis/update-connector-filtering-api.asciidoc:115
// connector/apis/update-connector-filtering-api.asciidoc:116

[source, python]
----
Expand Down
14 changes: 14 additions & 0 deletions docs/examples/0bee07a581c5776e068f6f4efad5a399.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// This file is autogenerated, DO NOT EDIT
// esql/esql-across-clusters.asciidoc:197

[source, python]
----
resp = client.esql.async_query(
format="json",
body={
"query": "\n FROM my-index-000001,cluster_one:my-index-000001,cluster_two:my-index*\n | STATS COUNT(http.response.status_code) BY user.id\n | LIMIT 2\n ",
"include_ccs_metadata": True
},
)
print(resp)
----
2 changes: 1 addition & 1 deletion docs/examples/0c2ca704a39dda8b3a7c5806ec6c6cf8.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// mapping/runtime.asciidoc:1379
// mapping/runtime.asciidoc:1377

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/0c2d9ac7e3f28d4d802e21cbbbcfeb34.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// cat/recovery.asciidoc:113
// cat/recovery.asciidoc:112

[source, python]
----
Expand Down
18 changes: 18 additions & 0 deletions docs/examples/0c8be7aec84ea86b243904f5d4162f5a.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// This file is autogenerated, DO NOT EDIT
// quickstart/full-text-filtering-tutorial.asciidoc:292

[source, python]
----
resp = client.search(
index="cooking_blog",
query={
"match": {
"title": {
"query": "fluffy pancakes breakfast",
"minimum_should_match": 2
}
}
},
)
print(resp)
----
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// connector/apis/create-connector-api.asciidoc:111
// connector/apis/create-connector-api.asciidoc:112

[source, python]
----
Expand All @@ -9,7 +9,7 @@ resp = client.connector.put(
name="My Connector",
description="My Connector to sync data to Elastic index from Google Drive",
service_type="google_drive",
language="english",
language="en",
)
print(resp)
----
2 changes: 1 addition & 1 deletion docs/examples/0d8063b484a18f8672fb5ed8712c5c97.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// indices/put-index-template.asciidoc:296
// indices/put-index-template.asciidoc:299

[source, python]
----
Expand Down
21 changes: 21 additions & 0 deletions docs/examples/0e31b8ad176b31028becf9500989bcbd.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// This file is autogenerated, DO NOT EDIT
// inference/service-watsonx-ai.asciidoc:96

[source, python]
----
resp = client.inference.put(
task_type="text_embedding",
inference_id="watsonx-embeddings",
inference_config={
"service": "watsonxai",
"service_settings": {
"api_key": "<api_key>",
"url": "<url>",
"model_id": "ibm/slate-30m-english-rtrvr",
"project_id": "<project_id>",
"api_version": "2024-03-14"
}
},
)
print(resp)
----
2 changes: 1 addition & 1 deletion docs/examples/0eccea755bd4f6dd47579a9022690546.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// modules/cluster/remote-clusters-migration.asciidoc:132
// modules/cluster/remote-clusters-migration.asciidoc:133

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/103296e16b4233926ad1f07360385606.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// analysis/analyzers/lang-analyzer.asciidoc:1793
// analysis/analyzers/lang-analyzer.asciidoc:1794

[source, python]
----
Expand Down
15 changes: 15 additions & 0 deletions docs/examples/11be807bdeaeecc8174dec88e0851ea7.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// This file is autogenerated, DO NOT EDIT
// connector/docs/connectors-API-tutorial.asciidoc:437

[source, python]
----
resp = client.perform_request(
"GET",
"/_connector/_sync_job",
params={
"connector_id": "my-connector-id",
"size": "1"
},
)
print(resp)
----
2 changes: 1 addition & 1 deletion docs/examples/1295f51b9e5d4ba9987b02478146b50b.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// troubleshooting/common-issues/high-jvm-memory-pressure.asciidoc:70
// troubleshooting/common-issues/high-jvm-memory-pressure.asciidoc:72

[source, python]
----
Expand Down
18 changes: 18 additions & 0 deletions docs/examples/12e9e758f7f18a6cbf27e9d0aea57a19.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// This file is autogenerated, DO NOT EDIT
// connector/docs/connectors-managed-service.asciidoc:167

[source, python]
----
resp = client.update(
index=".elastic-connectors",
id="connector_id",
doc={
"features": {
"native_connector_api_keys": {
"enabled": True
}
}
},
)
print(resp)
----
2 changes: 1 addition & 1 deletion docs/examples/13ecdf99114098c76b050397d9c3d4e6.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// inference/post-inference.asciidoc:201
// inference/post-inference.asciidoc:196

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/146bd22fd0e7be2345619e8f11d3a4cb.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// troubleshooting/common-issues/hotspotting.asciidoc:247
// troubleshooting/common-issues/hotspotting.asciidoc:249

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/150b5fee5678bf8cdf0932da73eada80.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// cluster/nodes-stats.asciidoc:2546
// cluster/nodes-stats.asciidoc:2550

[source, python]
----
Expand Down
19 changes: 19 additions & 0 deletions docs/examples/1522a9297151d7046e6345b9b27539ca.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// This file is autogenerated, DO NOT EDIT
// connector/docs/connectors-API-tutorial.asciidoc:340

[source, python]
----
resp = client.connector.update_configuration(
connector_id="my-connector-id",
values={
"host": "127.0.0.1",
"port": 5432,
"username": "myuser",
"password": "mypassword",
"database": "chinook",
"schema": "public",
"tables": "album,artist"
},
)
print(resp)
----
2 changes: 1 addition & 1 deletion docs/examples/1570976f7807b88dc8a046b833be057b.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// troubleshooting/common-issues/hotspotting.asciidoc:28
// troubleshooting/common-issues/hotspotting.asciidoc:30

[source, python]
----
Expand Down
Loading

0 comments on commit c5c5db4

Please sign in to comment.