Skip to content

Commit 9588e10

Browse files
committed
Merge branch 'main' of github.com:elastic/elasticsearch into esql-categorize-multiple-groupings
2 parents 16680d2 + c30ba12 commit 9588e10

File tree

257 files changed

+7152
-3535
lines changed

Some content is hidden

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

257 files changed

+7152
-3535
lines changed

benchmarks/src/main/java/org/elasticsearch/benchmark/search/fetch/subphase/FetchSourcePhaseBenchmark.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public void setup() throws IOException {
6363
);
6464
includesSet = Set.of(fetchContext.includes());
6565
excludesSet = Set.of(fetchContext.excludes());
66-
parserConfig = XContentParserConfiguration.EMPTY.withFiltering(includesSet, excludesSet, false);
66+
parserConfig = XContentParserConfiguration.EMPTY.withFiltering(null, includesSet, excludesSet, false);
6767
}
6868

6969
private BytesReference read300BytesExample() throws IOException {

benchmarks/src/main/java/org/elasticsearch/benchmark/xcontent/FilterContentBenchmark.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ private XContentParserConfiguration buildParseConfig(boolean matchDotsInFieldNam
170170
includes = null;
171171
excludes = filters;
172172
}
173-
return XContentParserConfiguration.EMPTY.withFiltering(includes, excludes, matchDotsInFieldNames);
173+
return XContentParserConfiguration.EMPTY.withFiltering(null, includes, excludes, matchDotsInFieldNames);
174174
}
175175

176176
private BytesReference filter(XContentParserConfiguration contentParserConfiguration) throws IOException {

build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/BwcVersions.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,20 @@ private List<Version> getReleased() {
252252
.toList();
253253
}
254254

255+
public List<Version> getReadOnlyIndexCompatible() {
256+
// Lucene can read indices in version N-2
257+
int compatibleMajor = currentVersion.getMajor() - 2;
258+
return versions.stream().filter(v -> v.getMajor() == compatibleMajor).sorted(Comparator.naturalOrder()).toList();
259+
}
260+
261+
public void withLatestReadOnlyIndexCompatible(Consumer<Version> versionAction) {
262+
var compatibleVersions = getReadOnlyIndexCompatible();
263+
if (compatibleVersions == null || compatibleVersions.isEmpty()) {
264+
throw new IllegalStateException("No read-only compatible version found.");
265+
}
266+
versionAction.accept(compatibleVersions.getLast());
267+
}
268+
255269
/**
256270
* Return versions of Elasticsearch which are index compatible with the current version.
257271
*/

docs/changelog/113827.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 113827
2+
summary: Add Optional Source Filtering to Source Loaders
3+
area: Mapping
4+
type: enhancement
5+
issues: []

docs/changelog/117583.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
pr: 117583
2+
summary: Removing index alias creation for deprecated transforms notification index
3+
area: Machine Learning
4+
type: deprecation
5+
issues: []
6+
deprecation:
7+
title: Removing index alias creation for deprecated transforms notification index
8+
area: Transform
9+
details: >-
10+
As part of the migration from 7.x to 8.x, the `.data-frame-notifications-1` index
11+
was deprecated and replaced with the `.transform-notifications-000002` index.
12+
The index is no longer created by default, all writes are directed to the new index,
13+
and any clusters with the deprecated index will have an alias created to ensure that
14+
reads are still retrieving data that was written to the index before the migration to 8.x.
15+
This change removes the alias from the deprecated index in 9.x. Any clusters with the alias present
16+
will retain it, but it will not be created on new clusters.
17+
impact: No known end user impact.

docs/changelog/117939.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 117939
2+
summary: Adding default endpoint for Elastic Rerank
3+
area: Machine Learning
4+
type: enhancement
5+
issues: []

docs/changelog/118103.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
pr: 118103
2+
summary: "Remove any references to org.elasticsearch.core.RestApiVersion#V_7"
3+
area: Infra/Core
4+
type: breaking
5+
issues: []
6+
breaking:
7+
title: "Remove any references to org.elasticsearch.core.RestApiVersion#V_7"
8+
area: REST API
9+
details: "This PR removes all references to V_7 in the Rest API. V7 features marked for deprecation have been removed."
10+
impact: "This change is breaking for any external plugins/clients that rely on the V_7 enum or deprecated version 7 functionality"
11+
notable: false

docs/changelog/118375.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 118375
2+
summary: Check for presence of error object when validating streaming responses from integrations in the inference API
3+
area: Machine Learning
4+
type: enhancement
5+
issues: []

docs/changelog/118380.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 118380
2+
summary: Restore original "is within leaf" value in `SparseVectorFieldMapper`
3+
area: Mapping
4+
type: bug
5+
issues: []

docs/changelog/118435.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 118435
2+
summary: '`_score` should not be a reserved attribute in ES|QL'
3+
area: ES|QL
4+
type: enhancement
5+
issues:
6+
- 118460

0 commit comments

Comments
 (0)