Skip to content

Commit

Permalink
Release 8.15.1 (#2652)
Browse files Browse the repository at this point in the history
  • Loading branch information
pquentin authored Sep 10, 2024
1 parent afc777c commit 780ea82
Show file tree
Hide file tree
Showing 166 changed files with 789 additions and 217 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:93
// inference/service-elasticsearch.asciidoc:112

[source, python]
----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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))"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/033838729cfb5d1a28d04f69ee78d924.asciidoc
Original file line number Diff line number Diff line change
@@ -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]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/0350ff5ebb8207c004eb771088339cb4.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// search/rrf.asciidoc:123
// search/rrf.asciidoc:121

[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:2434
// cluster/nodes-stats.asciidoc:2578

[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:64
// query-dsl/rule-query.asciidoc:65

[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:144
// inference/service-amazon-bedrock.asciidoc:136

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/0b47b0bef81b9b5eecfb3775695bd6ad.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// monitoring/production.asciidoc:94
// monitoring/production.asciidoc:96

[source, python]
----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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))"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/0e0d8f652d7d29371b5ea7c7544385eb.asciidoc
Original file line number Diff line number Diff line change
@@ -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]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/0e3abd15dde97a2334621190c4ad4f96.asciidoc
Original file line number Diff line number Diff line change
@@ -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]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/0e5d25c7bb738c42d471020d678e2966.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/start-trained-model-deployment.asciidoc:173
// ml/trained-models/apis/start-trained-model-deployment.asciidoc:200

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/0ea2167ce7c87d311b20c4f8c698a8d0.asciidoc
Original file line number Diff line number Diff line change
@@ -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]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/0fb7705ddbf1fc2b65d2de2e00fe5769.asciidoc
Original file line number Diff line number Diff line change
@@ -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]
----
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:299
// data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc:301

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/113ac8466084ee6ac4ed272e342dc468.asciidoc
Original file line number Diff line number Diff line change
@@ -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]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/13ebcb01ebf1b5d2b5c52739db47e30c.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// indices/recovery.asciidoc:193
// indices/recovery.asciidoc:179

[source, python]
----
Expand Down
23 changes: 23 additions & 0 deletions docs/examples/13fe12cdb73bc89f07a83f1e6b127511.asciidoc
Original file line number Diff line number Diff line change
@@ -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)
----
2 changes: 1 addition & 1 deletion docs/examples/14a33c364873c2f930ca83d0a3005389.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/disk-usage-exceeded.asciidoc:34
// troubleshooting/common-issues/disk-usage-exceeded.asciidoc:42

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/14afe65afee3d43f27aaaa5b37f26a31.asciidoc
Original file line number Diff line number Diff line change
@@ -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]
----
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:2402
// cluster/nodes-stats.asciidoc:2546

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/1736545c8b5674f6d311f3277eb387f1.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-manage-existing-data-stream.asciidoc:30
// data-streams/lifecycle/tutorial-manage-data-stream-retention.asciidoc:131

[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:613
// search/search-your-data/paginate-search-results.asciidoc:615

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/19c00c6b29bc7dbc5e92b3668da2da93.asciidoc
Original file line number Diff line number Diff line change
@@ -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]
----
Expand Down
21 changes: 21 additions & 0 deletions docs/examples/1b60ad542abb511cbd926ac8c55b609c.asciidoc
Original file line number Diff line number Diff line change
@@ -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)
----
2 changes: 1 addition & 1 deletion docs/examples/1cadbcf2cfeb312f73b7f098291356ac.asciidoc
Original file line number Diff line number Diff line change
@@ -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]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/1e0b85750d4e63ebbc927d4627c44bf8.asciidoc
Original file line number Diff line number Diff line change
@@ -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]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/200f6d4cc7b9c300b8962a119e03873f.asciidoc
Original file line number Diff line number Diff line change
@@ -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]
----
Expand Down
25 changes: 25 additions & 0 deletions docs/examples/20179a8889e949d6a8ee5fbf2ba35c96.asciidoc
Original file line number Diff line number Diff line change
@@ -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)
----
2 changes: 1 addition & 1 deletion docs/examples/2081739da0c69de8af6f5bf9e94433e6.asciidoc
Original file line number Diff line number Diff line change
@@ -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]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/22cb99d4e6ba3101a2d9f59764a90877.asciidoc
Original file line number Diff line number Diff line change
@@ -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]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/2342a56279106ea643026df657bf7f88.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// index-modules/similarity.asciidoc:22
// index-modules/similarity.asciidoc:24

[source, python]
----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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={
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/24f4dfdf9922d5aa79151675b7767742.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:383
// search/search-your-data/paginate-search-results.asciidoc:385

[source, python]
----
Expand Down
33 changes: 33 additions & 0 deletions docs/examples/2577acb462b95bd4394523cf2f8a661f.asciidoc
Original file line number Diff line number Diff line change
@@ -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)
----
2 changes: 1 addition & 1 deletion docs/examples/2826510e4aeb1c0d8dc43d317ed7624a.asciidoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is autogenerated, DO NOT EDIT
// mapping/types/boolean.asciidoc:242
// mapping/types/boolean.asciidoc:249

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/2a9d3119a9e26e29220be436b9382955.asciidoc
Original file line number Diff line number Diff line change
@@ -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]
----
Expand Down
19 changes: 19 additions & 0 deletions docs/examples/2e09666d3ad5ad9afc22763ee6e97a2b.asciidoc
Original file line number Diff line number Diff line change
@@ -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="<hourly-snap-{now/d}>",
repository="my_repository",
config={
"indices": [
"data-*",
"important"
]
},
)
print(resp)
----
2 changes: 1 addition & 1 deletion docs/examples/2f98924c3d593ea2b60edb9cef5bee22.asciidoc
Original file line number Diff line number Diff line change
@@ -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]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/318e209cc4d6f306e65cb2f5598a50b1.asciidoc
Original file line number Diff line number Diff line change
@@ -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]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/349823d86980d40ac45248c19a59e339.asciidoc
Original file line number Diff line number Diff line change
@@ -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]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/3758b8f2ab9f6f28a764ee6c42c85766.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:548
// search/search-your-data/paginate-search-results.asciidoc:550

[source, python]
----
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/37c73410bf13429279cbc61a413957d8.asciidoc
Original file line number Diff line number Diff line change
@@ -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]
----
Expand Down
Loading

0 comments on commit 780ea82

Please sign in to comment.