Skip to content

Commit 1122f91

Browse files
authored
Release 8.17.2
1 parent 1729378 commit 1122f91

File tree

215 files changed

+1278
-628
lines changed

Some content is hidden

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

215 files changed

+1278
-628
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// This file is autogenerated, DO NOT EDIT
2+
// migration/apis/data-stream-reindex.asciidoc:273
3+
4+
[source, python]
5+
----
6+
resp = client.indices.get_data_stream(
7+
name="my-data-stream",
8+
filter_path="data_streams.indices.index_name",
9+
)
10+
print(resp)
11+
----

docs/examples/015e6e6132b6d6d44bddb06bc3b316ed.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// search/search-your-data/retrievers-examples.asciidoc:801
2+
// search/search-your-data/retrievers-examples.asciidoc:1051
33

44
[source, python]
55
----

docs/examples/0165d22da5f2fc7678392b31d8eb5566.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// search/search-your-data/retrievers-examples.asciidoc:1113
2+
// search/search-your-data/retrievers-examples.asciidoc:1363
33

44
[source, python]
55
----

docs/examples/016f3147dae9ff2c3e831257ae470361.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// alias.asciidoc:52
2+
// alias.asciidoc:54
33

44
[source, python]
55
----

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:84
2+
// indices/index-templates.asciidoc:86
33

44
[source, python]
55
----

docs/examples/0bc6155e0c88062a4d8490da49db3aa8.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// search/search-your-data/retrievers-examples.asciidoc:562
2+
// search/search-your-data/retrievers-examples.asciidoc:812
33

44
[source, python]
55
----

docs/examples/0bcd380315ef4691b8c79df6ca53a85f.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// search/search-your-data/sort-search-results.asciidoc:395
2+
// search/search-your-data/sort-search-results.asciidoc:397
33

44
[source, python]
55
----
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// esql/esql-across-clusters.asciidoc:192
2+
// esql/esql-across-clusters.asciidoc:194
33

44
[source, python]
55
----
6-
resp = client.perform_request(
7-
"POST",
8-
"/_query/async",
9-
params={
10-
"format": "json"
11-
},
12-
headers={"Content-Type": "application/json"},
13-
body={
14-
"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 ",
15-
"include_ccs_metadata": True
16-
},
6+
resp = client.esql.async_query(
7+
format="json",
8+
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 ",
9+
include_ccs_metadata=True,
1710
)
1811
print(resp)
1912
----

docs/examples/0d689ac6e78be5d438f9b5d441be2b44.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// search/search-your-data/retrievers-examples.asciidoc:941
2+
// search/search-your-data/retrievers-examples.asciidoc:1191
33

44
[source, python]
55
----

docs/examples/0dfde6a9d953822fd4b3aa0121ddd8fb.asciidoc

+14-18
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,20 @@
33

44
[source, python]
55
----
6-
resp = client.perform_request(
7-
"POST",
8-
"/_application/search_application/my-app/_render_query",
9-
headers={"Content-Type": "application/json"},
10-
body={
11-
"params": {
12-
"query_string": "my first query",
13-
"text_fields": [
14-
{
15-
"name": "title",
16-
"boost": 5
17-
},
18-
{
19-
"name": "description",
20-
"boost": 1
21-
}
22-
]
23-
}
6+
resp = client.search_application.render_query(
7+
name="my-app",
8+
params={
9+
"query_string": "my first query",
10+
"text_fields": [
11+
{
12+
"name": "title",
13+
"boost": 5
14+
},
15+
{
16+
"name": "description",
17+
"boost": 1
18+
}
19+
]
2420
},
2521
)
2622
print(resp)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// This file is autogenerated, DO NOT EDIT
2+
// migration/migrate_9_0.asciidoc:476
3+
4+
[source, python]
5+
----
6+
resp = client.indices.put_settings(
7+
index=".reindexed-v9-ml-anomalies-custom-example",
8+
settings={
9+
"index": {
10+
"number_of_replicas": "<original_number_of_replicas>"
11+
}
12+
},
13+
)
14+
print(resp)
15+
----

docs/examples/0f2e5e006b663a88ee99b130ab1b4844.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// search/search-your-data/sort-search-results.asciidoc:570
2+
// search/search-your-data/sort-search-results.asciidoc:572
33

44
[source, python]
55
----

docs/examples/0fb7705ddbf1fc2b65d2de2e00fe5769.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// aggregations/metrics/scripted-metric-aggregation.asciidoc:61
2+
// aggregations/metrics/scripted-metric-aggregation.asciidoc:63
33

44
[source, python]
55
----

docs/examples/1147a02afa087278e51fa365fb9e06b7.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// api-conventions.asciidoc:345
2+
// api-conventions.asciidoc:355
33

44
[source, python]
55
----

docs/examples/11e8d6e14686efabb8634b6522c05cb5.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// search/search-your-data/highlighting.asciidoc:455
2+
// search/search-your-data/highlighting.asciidoc:467
33

44
[source, python]
55
----
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// inference/chat-completion-inference.asciidoc:301
2+
// inference/chat-completion-inference.asciidoc:305
33

44
[source, python]
55
----
6-
resp = client.perform_request(
7-
"POST",
8-
"/_inference/chat_completion/openai-completion/_stream",
9-
headers={"Content-Type": "application/json"},
10-
body={
11-
"model": "gpt-4o",
12-
"messages": [
13-
{
14-
"role": "user",
15-
"content": "What is Elastic?"
16-
}
17-
]
18-
},
6+
resp = client.inference.stream_inference(
7+
task_type="chat_completion",
8+
inference_id="openai-completion",
9+
model="gpt-4o",
10+
messages=[
11+
{
12+
"role": "user",
13+
"content": "What is Elastic?"
14+
}
15+
],
1916
)
2017
print(resp)
2118
----
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// This file is autogenerated, DO NOT EDIT
2+
// migration/migrate_9_0.asciidoc:393
3+
4+
[source, python]
5+
----
6+
resp = client.indices.add_block(
7+
index=".ml-anomalies-custom-example",
8+
block="read_only",
9+
)
10+
print(resp)
11+
----
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// This file is autogenerated, DO NOT EDIT
2+
// migration/apis/create-index-from-source.asciidoc:94
3+
4+
[source, python]
5+
----
6+
resp = client.indices.create_from(
7+
source="my-index",
8+
dest="my-new-index",
9+
create_from={
10+
"settings_override": {
11+
"index": {
12+
"number_of_shards": 5
13+
}
14+
},
15+
"mappings_override": {
16+
"properties": {
17+
"field2": {
18+
"type": "boolean"
19+
}
20+
}
21+
}
22+
},
23+
)
24+
print(resp)
25+
----

docs/examples/141ef0ebaa3b0772892b79b9bb85efb0.asciidoc

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33

44
[source, python]
55
----
6-
resp = client.inference.put(
7-
task_type="my-inference-endpoint",
8-
inference_id="_update",
6+
resp = client.inference.update(
7+
inference_id="my-inference-endpoint",
98
inference_config={
109
"service_settings": {
1110
"api_key": "<API_KEY>"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// This file is autogenerated, DO NOT EDIT
2+
// migration/apis/data-stream-reindex.asciidoc:224
3+
4+
[source, python]
5+
----
6+
resp = client.indices.cancel_migrate_reindex(
7+
index="my-data-stream",
8+
)
9+
print(resp)
10+
----
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// This file is autogenerated, DO NOT EDIT
2+
// rest-api/security/delegate-pki-authentication.asciidoc:83
3+
4+
[source, python]
5+
----
6+
resp = client.security.delegate_pki(
7+
x509_certificate_chain=[
8+
"MIIDeDCCAmCgAwIBAgIUBzj/nGGKxP2iXawsSquHmQjCJmMwDQYJKoZIhvcNAQELBQAwUzErMCkGA1UEAxMiRWxhc3RpY3NlYXJjaCBUZXN0IEludGVybWVkaWF0ZSBDQTEWMBQGA1UECxMNRWxhc3RpY3NlYXJjaDEMMAoGA1UEChMDb3JnMB4XDTIzMDcxODE5MjkwNloXDTQzMDcxMzE5MjkwNlowSjEiMCAGA1UEAxMZRWxhc3RpY3NlYXJjaCBUZXN0IENsaWVudDEWMBQGA1UECxMNRWxhc3RpY3NlYXJjaDEMMAoGA1UEChMDb3JnMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAllHL4pQkkfwAm/oLkxYYO+r950DEy1bjH+4viCHzNADLCTWO+lOZJVlNx7QEzJE3QGMdif9CCBBxQFMapA7oUFCLq84fPSQQu5AnvvbltVD9nwVtCs+9ZGDjMKsz98RhSLMFIkxdxi6HkQ3Lfa4ZSI4lvba4oo+T/GveazBDS+NgmKyq00EOXt3tWi1G9vEVItommzXWfv0agJWzVnLMldwkPqsw0W7zrpyT7FZS4iLbQADGceOW8fiauOGMkscu9zAnDR/SbWl/chYioQOdw6ndFLn1YIFPd37xL0WsdsldTpn0vH3YfzgLMffT/3P6YlwBegWzsx6FnM/93Ecb4wIDAQABo00wSzAJBgNVHRMEAjAAMB0GA1UdDgQWBBQKNRwjW+Ad/FN1Rpoqme/5+jrFWzAfBgNVHSMEGDAWgBRcya0c0x/PaI7MbmJVIylWgLqXNjANBgkqhkiG9w0BAQsFAAOCAQEACZ3PF7Uqu47lplXHP6YlzYL2jL0D28hpj5lGtdha4Muw1m/BjDb0Pu8l0NQ1z3AP6AVcvjNDkQq6Y5jeSz0bwQlealQpYfo7EMXjOidrft1GbqOMFmTBLpLA9SvwYGobSTXWTkJzonqVaTcf80HpMgM2uEhodwTcvz6v1WEfeT/HMjmdIsq4ImrOL9RNrcZG6nWfw0HR3JNOgrbfyEztEI471jHznZ336OEcyX7gQuvHE8tOv5+oD1d7s3Xg1yuFp+Ynh+FfOi3hPCuaHA+7F6fLmzMDLVUBAllugst1C3U+L/paD7tqIa4ka+KNPCbSfwazmJrt4XNiivPR4hwH5g=="
9+
],
10+
)
11+
print(resp)
12+
----

docs/examples/17a1e308761afd3282f13d44d7be008a.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// search/search-your-data/highlighting.asciidoc:687
2+
// search/search-your-data/highlighting.asciidoc:699
33

44
[source, python]
55
----

docs/examples/19c00c6b29bc7dbc5e92b3668da2da93.asciidoc

+16-21
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,23 @@
33

44
[source, python]
55
----
6-
resp = client.perform_request(
7-
"POST",
8-
"/_ingest/_simulate",
9-
headers={"Content-Type": "application/json"},
10-
body={
11-
"docs": [
12-
{
13-
"_index": "my-index",
14-
"_id": "123",
15-
"_source": {
16-
"foo": "bar"
17-
}
18-
},
19-
{
20-
"_index": "my-index",
21-
"_id": "456",
22-
"_source": {
23-
"foo": "rab"
24-
}
6+
resp = client.simulate.ingest(
7+
docs=[
8+
{
9+
"_index": "my-index",
10+
"_id": "123",
11+
"_source": {
12+
"foo": "bar"
2513
}
26-
]
27-
},
14+
},
15+
{
16+
"_index": "my-index",
17+
"_id": "456",
18+
"_source": {
19+
"foo": "rab"
20+
}
21+
}
22+
],
2823
)
2924
print(resp)
3025
----

docs/examples/1a7483796087053ba55029d0dc2ab356.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// esql/multivalued-fields.asciidoc:187
2+
// esql/multivalued-fields.asciidoc:191
33

44
[source, python]
55
----

docs/examples/1a9efb56adb2cd84faa9825a129381b9.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// rollup/apis/rollup-search.asciidoc:219
2+
// rollup/apis/rollup-search.asciidoc:222
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+
// rest-api/security/query-role.asciidoc:137
3+
4+
[source, python]
5+
----
6+
resp = client.security.query_role(
7+
query={
8+
"bool": {
9+
"must_not": {
10+
"term": {
11+
"metadata._reserved": True
12+
}
13+
}
14+
}
15+
},
16+
sort=[
17+
"name"
18+
],
19+
)
20+
print(resp)
21+
----

docs/examples/1ef5119db55a6f2b6fc0ab92f36e7f8e.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// search/search-your-data/sort-search-results.asciidoc:61
2+
// search/search-your-data/sort-search-results.asciidoc:63
33

44
[source, python]
55
----

docs/examples/22334f4b24bb8977d3e1bf2ffdc29d3f.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// search/search-your-data/sort-search-results.asciidoc:313
2+
// search/search-your-data/sort-search-results.asciidoc:315
33

44
[source, python]
55
----
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// This file is autogenerated, DO NOT EDIT
2+
// migration/migrate_9_0.asciidoc:604
3+
4+
[source, python]
5+
----
6+
resp = client.indices.add_block(
7+
index=".ml-anomalies-custom-example",
8+
block="write",
9+
)
10+
print(resp)
11+
----

docs/examples/2891aa10ee9d474780adf94d5607f2db.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// search/search-your-data/sort-search-results.asciidoc:175
2+
// search/search-your-data/sort-search-results.asciidoc:177
33

44
[source, python]
55
----

0 commit comments

Comments
 (0)