Skip to content

Commit 0070b83

Browse files
authored
Release 8.16.0
1 parent 6484714 commit 0070b83

File tree

453 files changed

+3260
-613
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

453 files changed

+3260
-613
lines changed

docs/examples/00fea15cbca83be9d5f1a024ff2ec708.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// inference/service-elasticsearch.asciidoc:112
2+
// inference/service-elasticsearch.asciidoc:163
33

44
[source, python]
55
----

docs/examples/77113c65e1755313183a8969233a5a07.asciidoc docs/examples/01ae196538fac197eedbbf458a4ef31b.asciidoc

+10-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// mapping/types/keyword.asciidoc:249
2+
// mapping/types/keyword.asciidoc:260
33

44
[source, python]
55
----
66
resp = client.indices.create(
77
index="idx",
8+
settings={
9+
"index": {
10+
"mapping": {
11+
"source": {
12+
"mode": "synthetic"
13+
}
14+
}
15+
}
16+
},
817
mappings={
9-
"_source": {
10-
"mode": "synthetic"
11-
},
1218
"properties": {
1319
"kwd": {
1420
"type": "keyword",

docs/examples/01b23f09d2b7f140faf649eadbbf3ac3.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// indices/index-templates.asciidoc:83
2+
// indices/index-templates.asciidoc:84
33

44
[source, python]
55
----
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// This file is autogenerated, DO NOT EDIT
2+
// troubleshooting/common-issues/task-queue-backlog.asciidoc:60
3+
4+
[source, python]
5+
----
6+
resp = client.tasks.list(
7+
human=True,
8+
detailed=True,
9+
actions="indices:data/write/bulk",
10+
)
11+
print(resp)
12+
----

docs/examples/03891265df2111a38e0b6b24c1b967e1.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// rest-api/security/get-service-accounts.asciidoc:267
2+
// rest-api/security/get-service-accounts.asciidoc:299
33

44
[source, python]
55
----

docs/examples/04412d11783dac25b5fd2ec5407078a3.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// connector/apis/update-connector-api-key-id-api.asciidoc:86
2+
// connector/apis/update-connector-api-key-id-api.asciidoc:87
33

44
[source, python]
55
----

docs/examples/046b2249bbc49e77848c114cee940f17.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// query-dsl/text-expansion-query.asciidoc:157
2+
// query-dsl/text-expansion-query.asciidoc:164
33

44
[source, python]
55
----

docs/examples/04de2e3a9c00c2056b07bf9cf9e63a99.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// inference/service-google-vertex-ai.asciidoc:107
2+
// inference/service-google-vertex-ai.asciidoc:127
33

44
[source, python]
55
----

docs/examples/9868ce609f4450702934fcbf4c340bf1.asciidoc docs/examples/05e637284bc3bedd46e0b7c26ad983c4.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[source, python]
55
----
66
resp = client.ingest.put_pipeline(
7-
id="alibabacloud_ai_search_embeddings",
7+
id="alibabacloud_ai_search_embeddings_pipeline",
88
processors=[
99
{
1010
"inference": {

docs/examples/611c1e05f4ebb48a1a8c8488238ce34d.asciidoc docs/examples/0709a38613d2de90d418ce12b36af30e.asciidoc

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
[source, python]
55
----
6-
resp = client.cluster.reroute(
7-
metric="none",
8-
)
6+
resp = client.cluster.reroute()
97
print(resp)
108
----

docs/examples/0737ebaea33631f001fb3f4226948492.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// ingest/processors/geoip.asciidoc:235
2+
// ingest/processors/geoip.asciidoc:237
33

44
[source, python]
55
----

docs/examples/840f8c863c30b04abcf2dd66b846f157.asciidoc docs/examples/083b92e8ea264e49bf9fd40fc6a3094b.asciidoc

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// inference/service-elasticsearch.asciidoc:172
2+
// inference/service-elasticsearch.asciidoc:223
33

44
[source, python]
55
----
@@ -14,6 +14,7 @@ resp = client.inference.put(
1414
"min_number_of_allocations": 3,
1515
"max_number_of_allocations": 10
1616
},
17+
"num_threads": 1,
1718
"model_id": ".multilingual-e5-small"
1819
}
1920
},

docs/examples/095e3f21941a9cc75f398389a075152d.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// ml/trained-models/apis/infer-trained-model.asciidoc:1043
2+
// ml/trained-models/apis/infer-trained-model.asciidoc:1144
33

44
[source, python]
55
----

docs/examples/09769561f082b50558fb7d8707719963.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// cluster/nodes-stats.asciidoc:2578
2+
// cluster/nodes-stats.asciidoc:2582
33

44
[source, python]
55
----

docs/examples/09cb1b18bf4033b4afafb25bd3dab12c.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// query-dsl/rule-query.asciidoc:65
2+
// query-dsl/rule-query.asciidoc:71
33

44
[source, python]
55
----

docs/examples/0a650401134f07e40216f0d0d1a66a32.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// cat/allocation.asciidoc:119
2+
// cat/allocation.asciidoc:120
33

44
[source, python]
55
----

docs/examples/0ad8edd10542ec2c4d5d8700d7e2ba97.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// inference/service-amazon-bedrock.asciidoc:136
2+
// inference/service-amazon-bedrock.asciidoc:156
33

44
[source, python]
55
----

docs/examples/0ade87c8cb0e3c188d2e3dce279d5cc2.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// connector/apis/update-connector-filtering-api.asciidoc:115
2+
// connector/apis/update-connector-filtering-api.asciidoc:116
33

44
[source, python]
55
----
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// This file is autogenerated, DO NOT EDIT
2+
// esql/esql-across-clusters.asciidoc:197
3+
4+
[source, python]
5+
----
6+
resp = client.esql.async_query(
7+
format="json",
8+
body={
9+
"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 ",
10+
"include_ccs_metadata": True
11+
},
12+
)
13+
print(resp)
14+
----

docs/examples/0c2ca704a39dda8b3a7c5806ec6c6cf8.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// mapping/runtime.asciidoc:1379
2+
// mapping/runtime.asciidoc:1377
33

44
[source, python]
55
----

docs/examples/0c2d9ac7e3f28d4d802e21cbbbcfeb34.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// cat/recovery.asciidoc:113
2+
// cat/recovery.asciidoc:112
33

44
[source, python]
55
----
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// This file is autogenerated, DO NOT EDIT
2+
// quickstart/full-text-filtering-tutorial.asciidoc:292
3+
4+
[source, python]
5+
----
6+
resp = client.search(
7+
index="cooking_blog",
8+
query={
9+
"match": {
10+
"title": {
11+
"query": "fluffy pancakes breakfast",
12+
"minimum_should_match": 2
13+
}
14+
}
15+
},
16+
)
17+
print(resp)
18+
----
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// connector/apis/create-connector-api.asciidoc:111
2+
// connector/apis/create-connector-api.asciidoc:112
33

44
[source, python]
55
----
@@ -9,7 +9,7 @@ resp = client.connector.put(
99
name="My Connector",
1010
description="My Connector to sync data to Elastic index from Google Drive",
1111
service_type="google_drive",
12-
language="english",
12+
language="en",
1313
)
1414
print(resp)
1515
----

docs/examples/0d8063b484a18f8672fb5ed8712c5c97.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// indices/put-index-template.asciidoc:296
2+
// indices/put-index-template.asciidoc:299
33

44
[source, python]
55
----
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// This file is autogenerated, DO NOT EDIT
2+
// inference/service-watsonx-ai.asciidoc:96
3+
4+
[source, python]
5+
----
6+
resp = client.inference.put(
7+
task_type="text_embedding",
8+
inference_id="watsonx-embeddings",
9+
inference_config={
10+
"service": "watsonxai",
11+
"service_settings": {
12+
"api_key": "<api_key>",
13+
"url": "<url>",
14+
"model_id": "ibm/slate-30m-english-rtrvr",
15+
"project_id": "<project_id>",
16+
"api_version": "2024-03-14"
17+
}
18+
},
19+
)
20+
print(resp)
21+
----

docs/examples/0eccea755bd4f6dd47579a9022690546.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// modules/cluster/remote-clusters-migration.asciidoc:132
2+
// modules/cluster/remote-clusters-migration.asciidoc:133
33

44
[source, python]
55
----

docs/examples/103296e16b4233926ad1f07360385606.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// analysis/analyzers/lang-analyzer.asciidoc:1793
2+
// analysis/analyzers/lang-analyzer.asciidoc:1794
33

44
[source, python]
55
----
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// This file is autogenerated, DO NOT EDIT
2+
// connector/docs/connectors-API-tutorial.asciidoc:437
3+
4+
[source, python]
5+
----
6+
resp = client.perform_request(
7+
"GET",
8+
"/_connector/_sync_job",
9+
params={
10+
"connector_id": "my-connector-id",
11+
"size": "1"
12+
},
13+
)
14+
print(resp)
15+
----

docs/examples/1295f51b9e5d4ba9987b02478146b50b.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// troubleshooting/common-issues/high-jvm-memory-pressure.asciidoc:70
2+
// troubleshooting/common-issues/high-jvm-memory-pressure.asciidoc:72
33

44
[source, python]
55
----
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// This file is autogenerated, DO NOT EDIT
2+
// connector/docs/connectors-managed-service.asciidoc:167
3+
4+
[source, python]
5+
----
6+
resp = client.update(
7+
index=".elastic-connectors",
8+
id="connector_id",
9+
doc={
10+
"features": {
11+
"native_connector_api_keys": {
12+
"enabled": True
13+
}
14+
}
15+
},
16+
)
17+
print(resp)
18+
----

docs/examples/13ecdf99114098c76b050397d9c3d4e6.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// inference/post-inference.asciidoc:201
2+
// inference/post-inference.asciidoc:196
33

44
[source, python]
55
----

docs/examples/146bd22fd0e7be2345619e8f11d3a4cb.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// troubleshooting/common-issues/hotspotting.asciidoc:247
2+
// troubleshooting/common-issues/hotspotting.asciidoc:249
33

44
[source, python]
55
----

docs/examples/150b5fee5678bf8cdf0932da73eada80.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// cluster/nodes-stats.asciidoc:2546
2+
// cluster/nodes-stats.asciidoc:2550
33

44
[source, python]
55
----
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// This file is autogenerated, DO NOT EDIT
2+
// connector/docs/connectors-API-tutorial.asciidoc:340
3+
4+
[source, python]
5+
----
6+
resp = client.connector.update_configuration(
7+
connector_id="my-connector-id",
8+
values={
9+
"host": "127.0.0.1",
10+
"port": 5432,
11+
"username": "myuser",
12+
"password": "mypassword",
13+
"database": "chinook",
14+
"schema": "public",
15+
"tables": "album,artist"
16+
},
17+
)
18+
print(resp)
19+
----

docs/examples/1570976f7807b88dc8a046b833be057b.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// troubleshooting/common-issues/hotspotting.asciidoc:28
2+
// troubleshooting/common-issues/hotspotting.asciidoc:30
33

44
[source, python]
55
----

0 commit comments

Comments
 (0)