Skip to content

Commit 4a02249

Browse files
Release 8.15.0 (#2636)
* Release 8.15.0 * added one more spec update
1 parent 6905674 commit 4a02249

File tree

121 files changed

+553
-382
lines changed

Some content is hidden

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

121 files changed

+553
-382
lines changed

Diff for: docs/examples/00fea15cbca83be9d5f1a024ff2ec708.asciidoc

-18
This file was deleted.

Diff for: docs/examples/0db06c3cba57cf442ac7fab89966e1e1.asciidoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
resp = client.index(
66
index="my-index-000001",
77
id="1",
8-
refresh=True,
8+
refresh="true",
99
body={
1010
"my_id": "1",
1111
"text": "This is a question",
@@ -17,7 +17,7 @@ print(resp)
1717
resp = client.index(
1818
index="my-index-000001",
1919
id="2",
20-
refresh=True,
20+
refresh="true",
2121
body={
2222
"my_id": "2",
2323
"text": "This is another question",

Diff for: docs/examples/0e5d25c7bb738c42d471020d678e2966.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ml/trained-models/apis/start-trained-model-deployment.asciidoc:173
1+
// ml/trained-models/apis/start-trained-model-deployment.asciidoc:200
22

33
[source, python]
44
----

Diff for: docs/examples/0e5db64154a722a5cbdb84b588ce2ce8.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// mapping/types/numeric.asciidoc:275
1+
// mapping/types/numeric.asciidoc:287
22

33
[source, python]
44
----

Diff for: docs/examples/10535507a9735fcf06600444b9067d4c.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// mapping/types/text.asciidoc:181
1+
// mapping/types/text.asciidoc:184
22

33
[source, python]
44
----

Diff for: docs/examples/10c3fe2265bb34964bd1005f9da66773.asciidoc

-18
This file was deleted.

Diff for: docs/examples/1233be1d4c9c7ca54126f1a0693b26de.asciidoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ resp = client.index(
66
index="my-index-000001",
77
id="3",
88
routing="1",
9-
refresh=True,
9+
refresh="true",
1010
body={
1111
"my_id": "3",
1212
"text": "This is an answer",
@@ -19,7 +19,7 @@ resp = client.index(
1919
index="my-index-000001",
2020
id="4",
2121
routing="1",
22-
refresh=True,
22+
refresh="true",
2323
body={
2424
"my_id": "4",
2525
"text": "This is another answer",

Diff for: docs/examples/13ecdf99114098c76b050397d9c3d4e6.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// inference/post-inference.asciidoc:197
1+
// inference/post-inference.asciidoc:201
22

33
[source, python]
44
----

Diff for: docs/examples/156bc64c94f9f3334fbce25165d2286a.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// index-modules/index-sorting.asciidoc:16
1+
// index-modules/index-sorting.asciidoc:15
22

33
[source, python]
44
----

Diff for: docs/examples/197dc41c8df9629e145b3064c63b2ccc.asciidoc

-19
This file was deleted.
+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// mapping/types/semantic-text.asciidoc:22
2+
3+
[source, python]
4+
----
5+
resp = client.indices.create(
6+
index="my-index-000001",
7+
body={
8+
"mappings": {
9+
"properties": {
10+
"inference_field": {
11+
"type": "semantic_text",
12+
"inference_id": "my-elser-endpoint",
13+
}
14+
}
15+
}
16+
},
17+
)
18+
print(resp)
19+
----

Diff for: docs/examples/1e0f203aced9344382081ab095c44dde.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// mapping/types/text.asciidoc:230
1+
// mapping/types/text.asciidoc:233
22

33
[source, python]
44
----
+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// mapping/types/range.asciidoc:316
2+
3+
[source, python]
4+
----
5+
resp = client.indices.create(
6+
index="idx",
7+
body={
8+
"mappings": {
9+
"_source": {"mode": "synthetic"},
10+
"properties": {"my_range": {"type": "ip_range"}},
11+
}
12+
},
13+
)
14+
print(resp)
15+
16+
resp = client.index(
17+
index="idx",
18+
id="1",
19+
body={
20+
"my_range": [
21+
"10.0.0.0/24",
22+
{"gte": "10.0.0.0", "lte": "10.0.0.255"},
23+
]
24+
},
25+
)
26+
print(resp)
27+
----

Diff for: docs/examples/2646710ece0c4c843aebeacd370d0396.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// mapping/types/dense-vector.asciidoc:126
1+
// mapping/types/dense-vector.asciidoc:137
22

33
[source, python]
44
----

Diff for: docs/examples/2826510e4aeb1c0d8dc43d317ed7624a.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// mapping/types/boolean.asciidoc:242
1+
// mapping/types/boolean.asciidoc:249
22

33
[source, python]
44
----

Diff for: docs/examples/2932e6f71e247cf52e11d2f38f114ddf.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
----
55
resp = client.reindex(
66
slices="5",
7-
refresh=True,
7+
refresh="true",
88
body={
99
"source": {"index": "my-index-000001"},
1010
"dest": {"index": "my-new-index-000001"},

Diff for: docs/examples/2c090fe7ec7b66b3f5c178d71c46323b.asciidoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
----
55
resp = client.indices.stats(
66
metric="fielddata",
7-
human=True,
7+
human="true",
88
fields="my_join_field",
99
)
1010
print(resp)
1111
1212
resp = client.nodes.stats(
1313
metric="indices",
1414
index_metric="fielddata",
15-
human=True,
15+
human="true",
1616
fields="my_join_field",
1717
)
1818
print(resp)

Diff for: docs/examples/2fe28d9a91b3081a9ec4601af8fb7b1c.asciidoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ print(resp)
1515
1616
resp = client.index(
1717
index="test",
18-
refresh=True,
18+
refresh="true",
1919
body={"text": "words words", "flag": "bar"},
2020
)
2121
print(resp)
2222
2323
resp = client.index(
2424
index="test",
25-
refresh=True,
25+
refresh="true",
2626
body={"text": "words words", "flag": "foo"},
2727
)
2828
print(resp)

Diff for: docs/examples/3541d4a85e27b2c3896a7a7ee98b4b37.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// health/health.asciidoc:478
1+
// health/health.asciidoc:481
22

33
[source, python]
44
----

Diff for: docs/examples/36063ff9a318dba7bb0be3a230655dc8.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// mapping/types/numeric.asciidoc:247
1+
// mapping/types/numeric.asciidoc:259
22

33
[source, python]
44
----

Diff for: docs/examples/36b86b97feedcf5632824eefc251d6ed.asciidoc

-10
This file was deleted.
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// mapping/types/dense-vector.asciidoc:375
2+
3+
[source, python]
4+
----
5+
resp = client.indices.create(
6+
index="my-bit-vectors",
7+
body={
8+
"mappings": {
9+
"properties": {
10+
"my_vector": {
11+
"type": "dense_vector",
12+
"dims": 40,
13+
"element_type": "bit",
14+
}
15+
}
16+
}
17+
},
18+
)
19+
print(resp)
20+
----

Diff for: docs/examples/36da9668fef56910370f16bfb772cc40.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
----
55
resp = client.indices.stats(
66
metric="request_cache",
7-
human=True,
7+
human="true",
88
)
99
print(resp)
1010
----
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// mapping/types/semantic-text.asciidoc:177
2+
3+
[source, python]
4+
----
5+
resp = client.bulk(
6+
index="test-index",
7+
body=[
8+
{"update": {"_id": "1"}},
9+
{
10+
"doc": {
11+
"infer_field": "updated inference field",
12+
"source_field": "updated source field",
13+
}
14+
},
15+
],
16+
)
17+
print(resp)
18+
----

Diff for: docs/examples/39ce44333d28ed2b833722d3e3cb06f3.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[source, python]
44
----
55
resp = client.search(
6-
include_named_queries_score=True,
6+
include_named_queries_score="true",
77
body={
88
"query": {
99
"bool": {

Diff for: docs/examples/3eb4cdd4a799a117ac1ff5f02b18a512.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ print(resp)
2323
resp = client.index(
2424
index="queries",
2525
id="1",
26-
refresh=True,
26+
refresh="true",
2727
body={"query": {"match": {"body": "quick brown fox"}}},
2828
)
2929
print(resp)

Diff for: docs/examples/3f3b3e207f79303ce6f86e03e928e062.asciidoc

-10
This file was deleted.

Diff for: docs/examples/4955bae30f265b9e436f82b015de6d7e.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
----
55
resp = client.search(
66
index="my-index-000001",
7-
pretty=True,
7+
pretty="true",
88
body={
99
"query": {
1010
"terms": {
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// ml/trained-models/apis/start-trained-model-deployment.asciidoc:222
2+
3+
[source, python]
4+
----
5+
resp = client.ml.start_trained_model_deployment(
6+
model_id="my_model",
7+
deployment_id="my_model_for_search",
8+
body={
9+
"adaptive_allocations": {
10+
"enabled": True,
11+
"min_number_of_allocations": 3,
12+
"max_number_of_allocations": 10,
13+
}
14+
},
15+
)
16+
print(resp)
17+
----
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// mapping/types/dense-vector.asciidoc:469
2+
3+
[source, python]
4+
----
5+
resp = client.indices.create(
6+
index="my-index-000001",
7+
body={
8+
"mappings": {
9+
"properties": {
10+
"text_embedding": {
11+
"type": "dense_vector",
12+
"dims": 384,
13+
"index_options": {"type": "flat"},
14+
}
15+
}
16+
}
17+
},
18+
)
19+
print(resp)
20+
----

0 commit comments

Comments
 (0)