Skip to content

Commit f195d06

Browse files
authored
Merge branch 'elastic:main' into bugfix/highlighting-for-constant_keyword-field-type
2 parents 8b5a9cc + 56b600b commit f195d06

File tree

545 files changed

+7434
-4394
lines changed

Some content is hidden

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

545 files changed

+7434
-4394
lines changed

.ci/matrix-runtime-javas.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ ES_RUNTIME_JAVA:
1111
- openjdk18
1212
- openjdk19
1313
- openjdk20
14+
- openjdk21

benchmarks/src/main/java/org/elasticsearch/benchmark/search/QueryParserHelperBenchmark.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import org.elasticsearch.common.compress.CompressedXContent;
2525
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
2626
import org.elasticsearch.common.lucene.Lucene;
27+
import org.elasticsearch.common.settings.ClusterSettings;
2728
import org.elasticsearch.common.settings.Settings;
2829
import org.elasticsearch.common.xcontent.LoggingDeprecationHandler;
2930
import org.elasticsearch.core.IOUtils;
@@ -138,6 +139,7 @@ protected SearchExecutionContext buildSearchExecutionContext() {
138139
0,
139140
0,
140141
mapperService.getIndexSettings(),
142+
ClusterSettings.createBuiltInClusterSettings(),
141143
null,
142144
(ft, fdc) -> ft.fielddataBuilder(fdc).build(new IndexFieldDataCache.None(), new NoneCircuitBreakerService()),
143145
mapperService,

benchmarks/src/main/java/org/elasticsearch/benchmark/search/aggregations/AggConstructionContentionBenchmark.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,11 @@ public IndexSettings getIndexSettings() {
269269
throw new UnsupportedOperationException();
270270
}
271271

272+
@Override
273+
public ClusterSettings getClusterSettings() {
274+
throw new UnsupportedOperationException();
275+
}
276+
272277
@Override
273278
public Optional<SortAndFormats> buildSort(List<SortBuilder<?>> sortBuilders) throws IOException {
274279
throw new UnsupportedOperationException();

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
import javax.inject.Inject;
5959

6060
import static org.gradle.api.JavaVersion.VERSION_20;
61+
import static org.gradle.api.JavaVersion.VERSION_21;
6162

6263
@CacheableTask
6364
public abstract class ThirdPartyAuditTask extends DefaultTask {
@@ -337,8 +338,8 @@ private String runForbiddenAPIsCli() throws IOException {
337338
spec.setExecutable(javaHome.get() + "/bin/java");
338339
}
339340
spec.classpath(getForbiddenAPIsClasspath(), classpath);
340-
// Enable explicitly for each release as appropriate. Just JDK 20 for now, and just the vector module.
341-
if (isJava20()) {
341+
// Enable explicitly for each release as appropriate. Just JDK 20/21 for now, and just the vector module.
342+
if (isJavaVersion(VERSION_20) || isJavaVersion(VERSION_21)) {
342343
spec.jvmArgs("--add-modules", "jdk.incubator.vector");
343344
}
344345
spec.jvmArgs("-Xmx1g");
@@ -363,13 +364,13 @@ private String runForbiddenAPIsCli() throws IOException {
363364
return forbiddenApisOutput;
364365
}
365366

366-
/** Returns true iff the Java version is 20. */
367-
private boolean isJava20() {
367+
/** Returns true iff the build Java version is the same as the given version. */
368+
private boolean isJavaVersion(JavaVersion version) {
368369
if (BuildParams.getIsRuntimeJavaHomeSet()) {
369-
if (VERSION_20.equals(BuildParams.getRuntimeJavaVersion())) {
370+
if (version.equals(BuildParams.getRuntimeJavaVersion())) {
370371
return true;
371372
}
372-
} else if ("20".equals(VersionProperties.getBundledJdkMajorVersion())) {
373+
} else if (version.getMajorVersion().equals(VersionProperties.getBundledJdkMajorVersion())) {
373374
return true;
374375
}
375376
return false;

build-tools-internal/src/main/resources/changelog-schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"DLM",
3636
"Discovery-Plugins",
3737
"Distributed",
38+
"Downsampling",
3839
"EQL",
3940
"Engine",
4041
"FIPS",
@@ -73,7 +74,6 @@
7374
"Ranking",
7475
"Recovery",
7576
"Reindex",
76-
"Rollup",
7777
"SQL",
7878
"Search",
7979
"Security",

docs/changelog/96744.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 96744
2+
summary: Support restricting access of API keys to only certain workflows
3+
area: Authorization
4+
type: feature
5+
issues: []

docs/changelog/96782.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 96782
2+
summary: Increase concurrent request of opening point-in-time
3+
area: Search
4+
type: bug
5+
issues: []

docs/changelog/96878.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 96878
2+
summary: Min score for time series
3+
area: TSDB
4+
type: bug
5+
issues: []

docs/changelog/96885.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 96885
2+
summary: Add Search ALC filter index prefix to the enterprise search user
3+
area: Authorization
4+
type: enhancement
5+
issues: []

docs/changelog/96912.yaml

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)