Skip to content

Commit cd1cec3

Browse files
Merge branch 'main' into ml-fix-resource-exists
2 parents 3d78127 + 20ce72d commit cd1cec3

File tree

127 files changed

+2398
-403
lines changed

Some content is hidden

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

127 files changed

+2398
-403
lines changed

docs/changelog/136632.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 136632
2+
summary: Field caps transport changes to return for each original expression what
3+
it was resolved to
4+
area: Search
5+
type: enhancement
6+
issues: []

modules/legacy-geo/src/test/java/org/elasticsearch/legacygeo/mapper/LegacyGeoShapeFieldMapperTests.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,4 +678,9 @@ protected SyntheticSourceSupport syntheticSourceSupport(boolean ignoreMalformed)
678678
protected IngestScriptSupport ingestScriptSupport() {
679679
throw new AssumptionViolatedException("not supported");
680680
}
681+
682+
@Override
683+
protected List<SortShortcutSupport> getSortShortcutSupport() {
684+
return List.of();
685+
}
681686
}

modules/mapper-extras/src/test/java/org/elasticsearch/index/mapper/extras/MatchOnlyTextFieldMapperTests.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,4 +385,9 @@ public void testLoadSyntheticSourceFromStringOrBytesRef() throws IOException {
385385
}
386386
}
387387
}
388+
389+
@Override
390+
protected List<SortShortcutSupport> getSortShortcutSupport() {
391+
return List.of();
392+
}
388393
}

modules/mapper-extras/src/test/java/org/elasticsearch/index/mapper/extras/RankFeatureFieldMapperTests.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,4 +215,9 @@ protected SyntheticSourceSupport syntheticSourceSupport(boolean ignoreMalformed)
215215
protected IngestScriptSupport ingestScriptSupport() {
216216
throw new AssumptionViolatedException("not supported");
217217
}
218+
219+
@Override
220+
protected List<SortShortcutSupport> getSortShortcutSupport() {
221+
return List.of();
222+
}
218223
}

modules/mapper-extras/src/test/java/org/elasticsearch/index/mapper/extras/RankFeaturesFieldMapperTests.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,4 +209,9 @@ protected SyntheticSourceSupport syntheticSourceSupport(boolean syntheticSource)
209209
protected IngestScriptSupport ingestScriptSupport() {
210210
throw new AssumptionViolatedException("not supported");
211211
}
212+
213+
@Override
214+
protected List<SortShortcutSupport> getSortShortcutSupport() {
215+
return List.of();
216+
}
212217
}

modules/mapper-extras/src/test/java/org/elasticsearch/index/mapper/extras/ScaledFloatFieldMapperTests.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,4 +649,12 @@ private double encodeDecode(double value, double scalingFactor) {
649649
private static double randomValue() {
650650
return randomBoolean() ? randomDoubleBetween(-Double.MAX_VALUE, Double.MAX_VALUE, true) : randomFloat();
651651
}
652+
653+
@Override
654+
protected List<SortShortcutSupport> getSortShortcutSupport() {
655+
return List.of(
656+
// TODO doubles currently disable pruning, can we re-enable?
657+
new SortShortcutSupport(this::minimalMapping, this::writeField, false)
658+
);
659+
}
652660
}

modules/mapper-extras/src/test/java/org/elasticsearch/index/mapper/extras/SearchAsYouTypeFieldMapperTests.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -877,4 +877,9 @@ protected RandomIndexWriter indexWriterForSyntheticSource(Directory directory) t
877877
protected IngestScriptSupport ingestScriptSupport() {
878878
throw new AssumptionViolatedException("not supported");
879879
}
880+
881+
@Override
882+
protected List<SortShortcutSupport> getSortShortcutSupport() {
883+
return List.of();
884+
}
880885
}

modules/mapper-extras/src/test/java/org/elasticsearch/index/mapper/extras/TokenCountFieldMapperTests.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,4 +264,9 @@ public void testAggregationsDocValuesDisabled() throws IOException {
264264
}));
265265
assertAggregatableConsistency(mapperService.fieldType("field"));
266266
}
267+
268+
@Override
269+
protected List<SortShortcutSupport> getSortShortcutSupport() {
270+
return List.of();
271+
}
267272
}

muted-tests.yml

Lines changed: 6 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -417,33 +417,6 @@ tests:
417417
- class: org.elasticsearch.test.rest.yaml.CcsCommonYamlTestSuiteIT
418418
method: test {p0=field_caps/10_basic/Field caps for number field with only doc values}
419419
issue: https://github.com/elastic/elasticsearch/issues/136244
420-
- class: org.elasticsearch.xpack.restart.FullClusterRestartIT
421-
method: testDataStreams {cluster=UPGRADED}
422-
issue: https://github.com/elastic/elasticsearch/issues/136353
423-
- class: org.elasticsearch.xpack.restart.FullClusterRestartIT
424-
method: testServiceAccountApiKey {cluster=UPGRADED}
425-
issue: https://github.com/elastic/elasticsearch/issues/136390
426-
- class: org.elasticsearch.xpack.restart.FullClusterRestartIT
427-
method: testWatcher {cluster=UPGRADED}
428-
issue: https://github.com/elastic/elasticsearch/issues/136391
429-
- class: org.elasticsearch.xpack.restart.FullClusterRestartIT
430-
method: testSingleDoc {cluster=UPGRADED}
431-
issue: https://github.com/elastic/elasticsearch/issues/136392
432-
- class: org.elasticsearch.xpack.restart.FullClusterRestartIT
433-
method: testTransformLegacyTemplateCleanup {cluster=UPGRADED}
434-
issue: https://github.com/elastic/elasticsearch/issues/136393
435-
- class: org.elasticsearch.xpack.restart.FullClusterRestartIT
436-
method: testApiKeySuperuser {cluster=UPGRADED}
437-
issue: https://github.com/elastic/elasticsearch/issues/136394
438-
- class: org.elasticsearch.xpack.restart.FullClusterRestartIT
439-
method: testSecurityNativeRealm {cluster=UPGRADED}
440-
issue: https://github.com/elastic/elasticsearch/issues/136395
441-
- class: org.elasticsearch.xpack.restart.FullClusterRestartIT
442-
method: testSlmPolicyAndStats {cluster=UPGRADED}
443-
issue: https://github.com/elastic/elasticsearch/issues/136399
444-
- class: org.elasticsearch.xpack.restart.FullClusterRestartIT
445-
method: testRollupAfterRestart {cluster=UPGRADED}
446-
issue: https://github.com/elastic/elasticsearch/issues/136437
447420
- class: org.elasticsearch.test.rest.yaml.RcsCcsCommonYamlTestSuiteIT
448421
method: test {p0=search.vectors/200_dense_vector_docvalue_fields/Enable docvalue_fields parameter for dense_vector fields}
449422
issue: https://github.com/elastic/elasticsearch/issues/136443
@@ -501,9 +474,12 @@ tests:
501474
- class: org.elasticsearch.xpack.esql.qa.single_node.PushQueriesIT
502475
method: testEqualityAndOther {SEMANTIC_TEXT_WITH_KEYWORD}
503476
issue: https://github.com/elastic/elasticsearch/issues/137491
504-
- class: org.elasticsearch.index.mapper.vectors.DenseVectorFieldMapperTests
505-
method: testUpdates
506-
issue: https://github.com/elastic/elasticsearch/issues/137512
477+
- class: org.elasticsearch.xpack.ilm.CCRIndexLifecycleIT
478+
method: testBasicCCRAndILMIntegration {targetCluster=FOLLOWER}
479+
issue: https://github.com/elastic/elasticsearch/issues/137494
480+
- class: org.elasticsearch.xpack.ilm.CCRIndexLifecycleIT
481+
method: testCcrAndIlmWithRollover {targetCluster=FOLLOWER}
482+
issue: https://github.com/elastic/elasticsearch/issues/137528
507483

508484
# Examples:
509485
#

plugins/analysis-icu/src/test/java/org/elasticsearch/plugin/analysis/icu/ICUCollationKeywordFieldMapperTests.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,4 +318,9 @@ protected SyntheticSourceSupport syntheticSourceSupport(boolean ignoreMalformed)
318318
protected IngestScriptSupport ingestScriptSupport() {
319319
throw new AssumptionViolatedException("not supported");
320320
}
321+
322+
@Override
323+
protected List<SortShortcutSupport> getSortShortcutSupport() {
324+
return List.of();
325+
}
321326
}

0 commit comments

Comments
 (0)