Skip to content

Commit d5ce56f

Browse files
authored
Bring 8.17.0 release to main (#2730)
1 parent fb6c428 commit d5ce56f

File tree

191 files changed

+1646
-387
lines changed

Some content is hidden

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

191 files changed

+1646
-387
lines changed

docs/examples/00fea15cbca83be9d5f1a024ff2ec708.asciidoc

Lines changed: 1 addition & 1 deletion
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:163
2+
// inference/service-elasticsearch.asciidoc:195
33

44
[source, python]
55
----
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
// This file is autogenerated, DO NOT EDIT
2+
// search/search-your-data/retrievers-examples.asciidoc:788
3+
4+
[source, python]
5+
----
6+
resp = client.search(
7+
index="retrievers_example",
8+
retriever={
9+
"rrf": {
10+
"retrievers": [
11+
{
12+
"standard": {
13+
"query": {
14+
"range": {
15+
"year": {
16+
"gt": 2023
17+
}
18+
}
19+
}
20+
}
21+
},
22+
{
23+
"standard": {
24+
"query": {
25+
"term": {
26+
"topic": "elastic"
27+
}
28+
}
29+
}
30+
}
31+
],
32+
"rank_window_size": 10,
33+
"rank_constant": 1
34+
}
35+
},
36+
source=False,
37+
aggs={
38+
"topics": {
39+
"terms": {
40+
"field": "topic"
41+
}
42+
}
43+
},
44+
)
45+
print(resp)
46+
----
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// This file is autogenerated, DO NOT EDIT
2+
// search/search-your-data/retrievers-examples.asciidoc:1100
3+
4+
[source, python]
5+
----
6+
resp = client.inference.put(
7+
task_type="rerank",
8+
inference_id="my-rerank-model",
9+
inference_config={
10+
"service": "cohere",
11+
"service_settings": {
12+
"model_id": "rerank-english-v3.0",
13+
"api_key": "{{COHERE_API_KEY}}"
14+
}
15+
},
16+
)
17+
print(resp)
18+
----

docs/examples/0709a38613d2de90d418ce12b36af30e.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// troubleshooting/common-issues/red-yellow-cluster-status.asciidoc:109
2+
// troubleshooting/common-issues/red-yellow-cluster-status.asciidoc:113
33

44
[source, python]
55
----
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// This file is autogenerated, DO NOT EDIT
2+
// quickstart/aggs-tutorial.asciidoc:45
3+
4+
[source, python]
5+
----
6+
resp = client.indices.get_mapping(
7+
index="kibana_sample_data_ecommerce",
8+
)
9+
print(resp)
10+
----

docs/examples/083b92e8ea264e49bf9fd40fc6a3094b.asciidoc

Lines changed: 1 addition & 1 deletion
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:223
2+
// inference/service-elasticsearch.asciidoc:255
33

44
[source, python]
55
----
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
// This file is autogenerated, DO NOT EDIT
2+
// search/search-your-data/retrievers-examples.asciidoc:549
3+
4+
[source, python]
5+
----
6+
resp = client.search(
7+
index="retrievers_example_nested",
8+
retriever={
9+
"rrf": {
10+
"retrievers": [
11+
{
12+
"standard": {
13+
"query": {
14+
"nested": {
15+
"path": "nested_field",
16+
"inner_hits": {
17+
"name": "nested_vector",
18+
"_source": False,
19+
"fields": [
20+
"nested_field.paragraph_id"
21+
]
22+
},
23+
"query": {
24+
"knn": {
25+
"field": "nested_field.nested_vector",
26+
"query_vector": [
27+
1,
28+
0,
29+
0.5
30+
],
31+
"k": 10
32+
}
33+
}
34+
}
35+
}
36+
}
37+
},
38+
{
39+
"standard": {
40+
"query": {
41+
"term": {
42+
"topic": "ai"
43+
}
44+
}
45+
}
46+
}
47+
],
48+
"rank_window_size": 10,
49+
"rank_constant": 1
50+
}
51+
},
52+
source=[
53+
"topic"
54+
],
55+
)
56+
print(resp)
57+
----

docs/examples/0bee07a581c5776e068f6f4efad5a399.asciidoc

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// esql/esql-across-clusters.asciidoc:197
2+
// esql/esql-across-clusters.asciidoc:192
33

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

docs/examples/160986f49758f4e8345d183a842f6351.asciidoc renamed to docs/examples/0c52af573c9401a2a687e86a4beb182b.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is autogenerated, DO NOT EDIT
2-
// ingest/processors/attachment.asciidoc:165
2+
// ingest/processors/attachment.asciidoc:214
33

44
[source, python]
55
----
@@ -10,7 +10,7 @@ resp = client.ingest.put_pipeline(
1010
{
1111
"attachment": {
1212
"field": "data",
13-
"remove_binary": False
13+
"remove_binary": True
1414
}
1515
}
1616
],
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
// This file is autogenerated, DO NOT EDIT
2+
// search/search-your-data/retrievers-examples.asciidoc:928
3+
4+
[source, python]
5+
----
6+
resp = client.search(
7+
index="retrievers_example",
8+
retriever={
9+
"rrf": {
10+
"retrievers": [
11+
{
12+
"standard": {
13+
"query": {
14+
"term": {
15+
"topic": "elastic"
16+
}
17+
}
18+
}
19+
},
20+
{
21+
"rrf": {
22+
"retrievers": [
23+
{
24+
"standard": {
25+
"query": {
26+
"query_string": {
27+
"query": "(information retrieval) OR (artificial intelligence)",
28+
"default_field": "text"
29+
}
30+
}
31+
}
32+
},
33+
{
34+
"knn": {
35+
"field": "vector",
36+
"query_vector": [
37+
0.23,
38+
0.67,
39+
0.89
40+
],
41+
"k": 3,
42+
"num_candidates": 5
43+
}
44+
}
45+
],
46+
"rank_window_size": 10,
47+
"rank_constant": 1
48+
}
49+
}
50+
],
51+
"rank_window_size": 10,
52+
"rank_constant": 1
53+
}
54+
},
55+
source=False,
56+
size=1,
57+
explain=True,
58+
)
59+
print(resp)
60+
----

0 commit comments

Comments
 (0)