Skip to content

Commit cb0a0f0

Browse files
committed
Merge branch 'main' into lucene_snapshot
2 parents 43b9797 + 07c3acf commit cb0a0f0

File tree

73 files changed

+2473
-376
lines changed

Some content is hidden

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

73 files changed

+2473
-376
lines changed

docs/changelog/111336.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 111336
2+
summary: Use the same chunking configurations for models in the Elasticsearch service
3+
area: Machine Learning
4+
type: enhancement
5+
issues: []

docs/changelog/113812.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 113812
2+
summary: Add Streaming Inference spec
3+
area: Machine Learning
4+
type: enhancement
5+
issues: []

docs/changelog/114080.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 114080
2+
summary: Stream Cohere Completion
3+
area: Machine Learning
4+
type: enhancement
5+
issues: []

docs/changelog/114231.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
pr: 114231
2+
summary: Remove cluster state from `/_cluster/reroute` response
3+
area: Allocation
4+
type: breaking
5+
issues:
6+
- 88978
7+
breaking:
8+
title: Remove cluster state from `/_cluster/reroute` response
9+
area: REST API
10+
details: >-
11+
The `POST /_cluster/reroute` API no longer returns the cluster state in its
12+
response. The `?metric` query parameter to this API now has no effect and
13+
its use will be forbidden in a future version.
14+
impact: >-
15+
Cease usage of the `?metric` query parameter when calling the
16+
`POST /_cluster/reroute` API.
17+
notable: false

docs/reference/cluster/reroute.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Changes the allocation of shards in a cluster.
1010
[[cluster-reroute-api-request]]
1111
==== {api-request-title}
1212

13-
`POST /_cluster/reroute?metric=none`
13+
`POST /_cluster/reroute`
1414

1515
[[cluster-reroute-api-prereqs]]
1616
==== {api-prereq-title}
@@ -193,7 +193,7 @@ This is a short example of a simple reroute API call:
193193

194194
[source,console]
195195
--------------------------------------------------
196-
POST /_cluster/reroute?metric=none
196+
POST /_cluster/reroute
197197
{
198198
"commands": [
199199
{

docs/reference/commands/shard-tool.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Changing allocation id V8QXk-QXSZinZMT-NvEq4w to tjm9Ve6uTBewVFAlfUMWjA
9595
9696
You should run the following command to allocate this shard:
9797
98-
POST /_cluster/reroute?metric=none
98+
POST /_cluster/reroute
9999
{
100100
"commands" : [
101101
{

docs/reference/ml/trained-models/apis/infer-trained-model.asciidoc

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,17 @@ include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=inference-config-nlp-tokenizatio
225225
(Optional, string)
226226
include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=inference-config-nlp-tokenization-truncate]
227227
=======
228+
`deberta_v2`::::
229+
(Optional, object)
230+
include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=inference-config-nlp-tokenization-deberta-v2]
231+
+
232+
.Properties of deberta_v2
233+
[%collapsible%open]
234+
=======
235+
`truncate`::::
236+
(Optional, string)
237+
include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=inference-config-nlp-tokenization-truncate-deberta-v2]
238+
=======
228239
`roberta`::::
229240
(Optional, object)
230241
include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=inference-config-nlp-tokenization-roberta]
@@ -301,6 +312,17 @@ include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=inference-config-nlp-tokenizatio
301312
(Optional, string)
302313
include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=inference-config-nlp-tokenization-truncate]
303314
=======
315+
`deberta_v2`::::
316+
(Optional, object)
317+
include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=inference-config-nlp-tokenization-deberta-v2]
318+
+
319+
.Properties of deberta_v2
320+
[%collapsible%open]
321+
=======
322+
`truncate`::::
323+
(Optional, string)
324+
include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=inference-config-nlp-tokenization-truncate-deberta-v2]
325+
=======
304326
`roberta`::::
305327
(Optional, object)
306328
include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=inference-config-nlp-tokenization-roberta]
@@ -397,6 +419,21 @@ include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=inference-config-nlp-tokenizatio
397419
(Optional, string)
398420
include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=inference-config-nlp-tokenization-truncate]
399421
=======
422+
`deberta_v2`::::
423+
(Optional, object)
424+
include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=inference-config-nlp-tokenization-deberta-v2]
425+
+
426+
.Properties of deberta_v2
427+
[%collapsible%open]
428+
=======
429+
`span`::::
430+
(Optional, integer)
431+
include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=inference-config-nlp-tokenization-span]
432+
433+
`truncate`::::
434+
(Optional, string)
435+
include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=inference-config-nlp-tokenization-truncate-deberta-v2]
436+
=======
400437
`roberta`::::
401438
(Optional, object)
402439
include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=inference-config-nlp-tokenization-roberta]
@@ -517,6 +554,21 @@ include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=inference-config-nlp-tokenizatio
517554
(Optional, string)
518555
include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=inference-config-nlp-tokenization-truncate]
519556
=======
557+
`deberta_v2`::::
558+
(Optional, object)
559+
include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=inference-config-nlp-tokenization-deberta-v2]
560+
+
561+
.Properties of deberta_v2
562+
[%collapsible%open]
563+
=======
564+
`span`::::
565+
(Optional, integer)
566+
include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=inference-config-nlp-tokenization-span]
567+
568+
`truncate`::::
569+
(Optional, string)
570+
include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=inference-config-nlp-tokenization-truncate-deberta-v2]
571+
=======
520572
`roberta`::::
521573
(Optional, object)
522574
include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=inference-config-nlp-tokenization-roberta]
@@ -608,6 +660,17 @@ include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=inference-config-nlp-tokenizatio
608660
(Optional, string)
609661
include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=inference-config-nlp-tokenization-truncate]
610662
=======
663+
`deberta_v2`::::
664+
(Optional, object)
665+
include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=inference-config-nlp-tokenization-deberta-v2]
666+
+
667+
.Properties of deberta_v2
668+
[%collapsible%open]
669+
=======
670+
`truncate`::::
671+
(Optional, string)
672+
include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=inference-config-nlp-tokenization-truncate-deberta-v2]
673+
=======
611674
`roberta`::::
612675
(Optional, object)
613676
include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=inference-config-nlp-tokenization-roberta]
@@ -687,6 +750,21 @@ include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=inference-config-nlp-tokenizatio
687750
(Optional, integer)
688751
include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=inference-config-nlp-tokenization-span]
689752

753+
`with_special_tokens`::::
754+
(Optional, boolean)
755+
include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=inference-config-nlp-tokenization-bert-with-special-tokens]
756+
=======
757+
`deberta_v2`::::
758+
(Optional, object)
759+
include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=inference-config-nlp-tokenization-deberta-v2]
760+
+
761+
.Properties of deberta_v2
762+
[%collapsible%open]
763+
=======
764+
`span`::::
765+
(Optional, integer)
766+
include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=inference-config-nlp-tokenization-span]
767+
690768
`with_special_tokens`::::
691769
(Optional, boolean)
692770
include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=inference-config-nlp-tokenization-bert-with-special-tokens]
@@ -790,6 +868,17 @@ include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=inference-config-nlp-tokenizatio
790868
(Optional, string)
791869
include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=inference-config-nlp-tokenization-truncate]
792870
=======
871+
`deberta_v2`::::
872+
(Optional, object)
873+
include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=inference-config-nlp-tokenization-deberta-v2]
874+
+
875+
.Properties of deberta_v2
876+
[%collapsible%open]
877+
=======
878+
`truncate`::::
879+
(Optional, string)
880+
include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=inference-config-nlp-tokenization-truncate-deberta-v2]
881+
=======
793882
`roberta`::::
794883
(Optional, object)
795884
include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=inference-config-nlp-tokenization-roberta]

docs/reference/rest-api/common-parms.asciidoc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,10 +1298,11 @@ tag::wait_for_active_shards[]
12981298
`wait_for_active_shards`::
12991299
+
13001300
--
1301-
(Optional, string) The number of shard copies that must be active before
1302-
proceeding with the operation. Set to `all` or any positive integer up
1303-
to the total number of shards in the index (`number_of_replicas+1`).
1304-
Default: 1, the primary shard.
1301+
(Optional, string) The number of copies of each shard that must be active
1302+
before proceeding with the operation. Set to `all` or any non-negative integer
1303+
up to the total number of copies of each shard in the index
1304+
(`number_of_replicas+1`). Defaults to `1`, meaning to wait just for each
1305+
primary shard to be active.
13051306

13061307
See <<index-wait-for-active-shards>>.
13071308
--

docs/reference/troubleshooting/common-issues/red-yellow-cluster-status.asciidoc

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
=== Red or yellow cluster health status
33

44
A red or yellow cluster health status indicates one or more shards are not assigned to
5-
a node.
5+
a node.
66

77
* **Red health status**: The cluster has some unassigned primary shards, which
8-
means that some operations such as searches and indexing may fail.
9-
* **Yellow health status**: The cluster has no unassigned primary shards but some
10-
unassigned replica shards. This increases your risk of data loss and can degrade
8+
means that some operations such as searches and indexing may fail.
9+
* **Yellow health status**: The cluster has no unassigned primary shards but some
10+
unassigned replica shards. This increases your risk of data loss and can degrade
1111
cluster performance.
1212

1313
When your cluster has a red or yellow health status, it will continue to process
@@ -16,8 +16,8 @@ cleanup activities until the cluster returns to green health status. For instanc
1616
some <<index-lifecycle-management,{ilm-init}>> actions require the index on which they
1717
operate to have a green health status.
1818

19-
In many cases, your cluster will recover to green health status automatically.
20-
If the cluster doesn't automatically recover, then you must <<fix-red-yellow-cluster-status,manually address>>
19+
In many cases, your cluster will recover to green health status automatically.
20+
If the cluster doesn't automatically recover, then you must <<fix-red-yellow-cluster-status,manually address>>
2121
the remaining problems so management and cleanup activities can proceed.
2222

2323
[discrete]
@@ -107,7 +107,7 @@ asynchronously in the background.
107107

108108
[source,console]
109109
----
110-
POST _cluster/reroute?metric=none
110+
POST _cluster/reroute
111111
----
112112

113113
[discrete]
@@ -231,10 +231,10 @@ unassigned. See <<high-jvm-memory-pressure>>.
231231

232232
If a node containing a primary shard is lost, {es} can typically replace it
233233
using a replica on another node. If you can't recover the node and replicas
234-
don't exist or are irrecoverable, <<cluster-allocation-explain,Allocation
235-
Explain>> will report `no_valid_shard_copy` and you'll need to do one of the following:
234+
don't exist or are irrecoverable, <<cluster-allocation-explain,Allocation
235+
Explain>> will report `no_valid_shard_copy` and you'll need to do one of the following:
236236

237-
* restore the missing data from <<snapshot-restore,snapshot>>
237+
* restore the missing data from <<snapshot-restore,snapshot>>
238238
* index the missing data from its original data source
239239
* accept data loss on the index-level by running <<indices-delete-index,Delete Index>>
240240
* accept data loss on the shard-level by executing <<cluster-reroute,Cluster Reroute>> allocate_stale_primary or allocate_empty_primary command with `accept_data_loss: true`
@@ -246,7 +246,7 @@ resulting in data loss.
246246
+
247247
[source,console]
248248
----
249-
POST _cluster/reroute?metric=none
249+
POST _cluster/reroute
250250
{
251251
"commands": [
252252
{

modules/ingest-geoip/src/main/java/org/elasticsearch/ingest/geoip/Database.java

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ enum Database {
3232
City(
3333
Set.of(
3434
Property.IP,
35+
Property.COUNTRY_IN_EUROPEAN_UNION,
3536
Property.COUNTRY_ISO_CODE,
3637
Property.CONTINENT_CODE,
3738
Property.COUNTRY_NAME,
@@ -40,7 +41,9 @@ enum Database {
4041
Property.REGION_NAME,
4142
Property.CITY_NAME,
4243
Property.TIMEZONE,
43-
Property.LOCATION
44+
Property.LOCATION,
45+
Property.POSTAL_CODE,
46+
Property.ACCURACY_RADIUS
4447
),
4548
Set.of(
4649
Property.COUNTRY_ISO_CODE,
@@ -53,7 +56,14 @@ enum Database {
5356
)
5457
),
5558
Country(
56-
Set.of(Property.IP, Property.CONTINENT_CODE, Property.CONTINENT_NAME, Property.COUNTRY_NAME, Property.COUNTRY_ISO_CODE),
59+
Set.of(
60+
Property.IP,
61+
Property.CONTINENT_CODE,
62+
Property.CONTINENT_NAME,
63+
Property.COUNTRY_NAME,
64+
Property.COUNTRY_IN_EUROPEAN_UNION,
65+
Property.COUNTRY_ISO_CODE
66+
),
5767
Set.of(Property.CONTINENT_NAME, Property.COUNTRY_NAME, Property.COUNTRY_ISO_CODE)
5868
),
5969
Asn(
@@ -84,12 +94,15 @@ enum Database {
8494
Enterprise(
8595
Set.of(
8696
Property.IP,
97+
Property.COUNTRY_CONFIDENCE,
98+
Property.COUNTRY_IN_EUROPEAN_UNION,
8799
Property.COUNTRY_ISO_CODE,
88100
Property.COUNTRY_NAME,
89101
Property.CONTINENT_CODE,
90102
Property.CONTINENT_NAME,
91103
Property.REGION_ISO_CODE,
92104
Property.REGION_NAME,
105+
Property.CITY_CONFIDENCE,
93106
Property.CITY_NAME,
94107
Property.TIMEZONE,
95108
Property.LOCATION,
@@ -108,7 +121,10 @@ enum Database {
108121
Property.MOBILE_COUNTRY_CODE,
109122
Property.MOBILE_NETWORK_CODE,
110123
Property.USER_TYPE,
111-
Property.CONNECTION_TYPE
124+
Property.CONNECTION_TYPE,
125+
Property.POSTAL_CODE,
126+
Property.POSTAL_CONFIDENCE,
127+
Property.ACCURACY_RADIUS
112128
),
113129
Set.of(
114130
Property.COUNTRY_ISO_CODE,
@@ -203,12 +219,15 @@ public Set<Property> parseProperties(@Nullable final List<String> propertyNames)
203219
enum Property {
204220

205221
IP,
222+
COUNTRY_CONFIDENCE,
223+
COUNTRY_IN_EUROPEAN_UNION,
206224
COUNTRY_ISO_CODE,
207225
COUNTRY_NAME,
208226
CONTINENT_CODE,
209227
CONTINENT_NAME,
210228
REGION_ISO_CODE,
211229
REGION_NAME,
230+
CITY_CONFIDENCE,
212231
CITY_NAME,
213232
TIMEZONE,
214233
LOCATION,
@@ -228,7 +247,10 @@ enum Property {
228247
MOBILE_NETWORK_CODE,
229248
CONNECTION_TYPE,
230249
USER_TYPE,
231-
TYPE;
250+
TYPE,
251+
POSTAL_CODE,
252+
POSTAL_CONFIDENCE,
253+
ACCURACY_RADIUS;
232254

233255
/**
234256
* Parses a string representation of a property into an actual Property instance. Not all properties that exist are

0 commit comments

Comments
 (0)