Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
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:204
// inference/service-elasticsearch.asciidoc:199

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/010d5e901a2690fa7b2396edbe6cd463.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// ingest/common-log-format-example.asciidoc:161
// ingest/common-log-format-example.asciidoc:162

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/015e6e6132b6d6d44bddb06bc3b316ed.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// search/search-your-data/retrievers-examples.asciidoc:1051
// search/search-your-data/retrievers-examples.asciidoc:1322

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/0165d22da5f2fc7678392b31d8eb5566.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// search/search-your-data/retrievers-examples.asciidoc:1363
// search/search-your-data/retrievers-examples.asciidoc:1655

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/01ae196538fac197eedbbf458a4ef31b.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// mapping/types/keyword.asciidoc:260
// mapping/types/keyword.asciidoc:254

[source, python]
----
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:86
// indices/index-templates.asciidoc:85

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/01cd0ea360282a2c591a366679d7187d.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/task-queue-backlog.asciidoc:83
// troubleshooting/common-issues/task-queue-backlog.asciidoc:60

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/0246f73cc2ed3dfec577119e8cd15404.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// indices/put-mapping.asciidoc:183
// indices/put-mapping.asciidoc:189

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/02b6aa3e5652839f03de3a655854b897.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// data-streams/downsampling-manual.asciidoc:466
// data-streams/downsampling-manual.asciidoc:469

[source, python]
----
Expand Down
12 changes: 12 additions & 0 deletions docs/examples/02ef4cd3ca104bcb917e07272f82bee3.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// This file is autogenerated, DO NOT EDIT
// data-streams/failure-store.asciidoc:820

[source, python]
----
resp = client.cluster.put_settings(
persistent={
"data_streams.lifecycle.retention.failures_default": "15d"
},
)
print(resp)
----
2 changes: 1 addition & 1 deletion docs/examples/0350410d11579f4e876c798ce1eaef5b.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// query-dsl/percolate-query.asciidoc:565
// query-dsl/percolate-query.asciidoc:563

[source, python]
----
Expand Down
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:320
// rest-api/security/get-service-accounts.asciidoc:288

[source, python]
----
Expand Down
26 changes: 26 additions & 0 deletions docs/examples/0551626f75cbad56d9a63b11556dcfa7.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// This file is autogenerated, DO NOT EDIT
// data-streams/failure-store.asciidoc:143

[source, python]
----
resp = client.bulk(
index="my-datastream-new",
operations=[
{
"create": {}
},
{
"@timestamp": "2025-05-01T00:00:00Z",
"id": 1234
},
{
"create": {}
},
{
"@timestamp": "2025-05-01T00:00:00Z",
"id": "invalid_text"
}
],
)
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:237
// ingest/processors/geoip.asciidoc:238

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/074e4602d1ca54412380a40867d078bc.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// index-modules/slowlog.asciidoc:180
// index-modules/slowlog.asciidoc:181

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/07dadb9b0a774bd8e7f3527cf8a44afc.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// query-dsl/semantic-query.asciidoc:17
// query-dsl/semantic-query.asciidoc:15

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/083b92e8ea264e49bf9fd40fc6a3094b.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:264
// inference/service-elasticsearch.asciidoc:259

[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:126
// cat/allocation.asciidoc:125

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/0bc6155e0c88062a4d8490da49db3aa8.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// search/search-your-data/retrievers-examples.asciidoc:812
// search/search-your-data/retrievers-examples.asciidoc:1083

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/0bee07a581c5776e068f6f4efad5a399.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// esql/esql-across-clusters.asciidoc:194
// esql/esql-across-clusters.asciidoc:195

[source, python]
----
Expand Down
15 changes: 15 additions & 0 deletions docs/examples/0bf6dfdf930904202e96d39a43cc3f47.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// This file is autogenerated, DO NOT EDIT
// data-streams/failure-store.asciidoc:97

[source, python]
----
resp = client.cluster.put_settings(
persistent={
"data_streams.failure_store.enabled": [
"my-datastream-*",
"logs-*"
]
},
)
print(resp)
----
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:118
// cat/recovery.asciidoc:214

[source, python]
----
Expand Down
13 changes: 13 additions & 0 deletions docs/examples/0c3bcd8b59bd209614399c2f8c6cd5ce.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// This file is autogenerated, DO NOT EDIT
// data-streams/failure-store.asciidoc:619

[source, python]
----
resp = client.index(
index="my-datastream-ingest",
document={
"data": "this field is invalid"
},
)
print(resp)
----
2 changes: 1 addition & 1 deletion docs/examples/0d689ac6e78be5d438f9b5d441be2b44.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// search/search-your-data/retrievers-examples.asciidoc:1191
// search/search-your-data/retrievers-examples.asciidoc:1462

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

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/0e31b8ad176b31028becf9500989bcbd.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// inference/service-watsonx-ai.asciidoc:102
// inference/service-watsonx-ai.asciidoc:123

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/0e71a18d1aac61720cdc6b3f91fe643f.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// query-dsl/simple-query-string-query.asciidoc:153
// query-dsl/simple-query-string-query.asciidoc:156

[source, python]
----
Expand Down
15 changes: 0 additions & 15 deletions docs/examples/0f028f71f04c1d569fab402869565a84.asciidoc

This file was deleted.

2 changes: 1 addition & 1 deletion docs/examples/0f7aa40ad26d59a9268630b980a3d594.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// indices/simulate-template.asciidoc:61
// indices/simulate-template.asciidoc:60

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/0fc4b589df5388da784c6d981e769e31.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-v1.asciidoc:155
// indices/put-index-template-v1.asciidoc:154

[source, python]
----
Expand Down
17 changes: 17 additions & 0 deletions docs/examples/10326e9a0a29ccb94c2d25bfbf063450.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// This file is autogenerated, DO NOT EDIT
// data-streams/failure-store-recipes.asciidoc:13

[source, python]
----
resp = client.index(
index="my-datastream-ingest",
refresh=True,
document={
"@timestamp": "2025-04-21T00:00:00Z",
"important": {
"info": "The rain in Spain falls mainly on the plain"
}
},
)
print(resp)
----
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:1794
// analysis/analyzers/lang-analyzer.asciidoc:1793

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/10f0c8fed98455c460c374b50ffbb204.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc:301
// data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc:317

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/1147a02afa087278e51fa365fb9e06b7.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// api-conventions.asciidoc:355
// api-conventions.asciidoc:397

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/12433d2b637d002e8d5c9a1adce69d3b.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// indices/put-mapping.asciidoc:106
// indices/put-mapping.asciidoc:112

[source, python]
----
Expand Down
11 changes: 0 additions & 11 deletions docs/examples/12adea5d76f73d94d80d42f53f67563f.asciidoc

This file was deleted.

2 changes: 1 addition & 1 deletion docs/examples/13d90ba227131aefbf4fcfd5992e662a.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// query-dsl/bool-query.asciidoc:159
// query-dsl/bool-query.asciidoc:202

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/148edc235fcfbc263561f87f5533e688.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// query-dsl/percolate-query.asciidoc:196
// query-dsl/percolate-query.asciidoc:194

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/151d2b11807ec684b0c01aa89189a801.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// query-dsl/query-string-query.asciidoc:474
// query-dsl/query-string-query.asciidoc:477

[source, python]
----
Expand Down
21 changes: 21 additions & 0 deletions docs/examples/15755171c81ce65fec5d15f2bb93c58e.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// This file is autogenerated, DO NOT EDIT
// data-streams/failure-store.asciidoc:37

[source, python]
----
resp = client.indices.put_index_template(
name="my-index-template",
index_patterns=[
"my-datastream-*"
],
data_stream={},
template={
"data_stream_options": {
"failure_store": {
"enabled": True
}
}
},
)
print(resp)
----
2 changes: 1 addition & 1 deletion docs/examples/162b5b693b713f0bfab1209d59443c46.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// query-dsl/bool-query.asciidoc:133
// query-dsl/bool-query.asciidoc:176

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/17b1647c8509543f2388c886f2584a20.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// reranking/semantic-reranking.asciidoc:107
// reranking/semantic-reranking.asciidoc:105

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/187733e50c60350f3f75921bea3b72c2.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// search/search-your-data/paginate-search-results.asciidoc:615
// search/search-your-data/paginate-search-results.asciidoc:630

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