Skip to content

Commit 6d6b9f0

Browse files
committed
Fix release tests
1 parent c392437 commit 6d6b9f0

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

server/src/main/java/org/elasticsearch/index/mapper/MapperFeatures.java

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import org.elasticsearch.features.FeatureSpecification;
1313
import org.elasticsearch.features.NodeFeature;
1414

15+
import java.util.HashSet;
1516
import java.util.Set;
1617

1718
import static org.elasticsearch.index.mapper.vectors.DenseVectorFieldMapper.RESCORE_VECTOR_QUANTIZED_VECTOR_MAPPING;
@@ -51,7 +52,7 @@ public class MapperFeatures implements FeatureSpecification {
5152

5253
@Override
5354
public Set<NodeFeature> getTestFeatures() {
54-
return Set.of(
55+
Set<NodeFeature> features = Set.of(
5556
RangeFieldMapper.DATE_RANGE_INDEXING_FIX,
5657
IgnoredSourceFieldMapper.DONT_EXPAND_DOTS_IN_IGNORED_SOURCE,
5758
SourceFieldMapper.REMOVE_SYNTHETIC_SOURCE_ONLY_VALIDATION,
@@ -81,8 +82,14 @@ public Set<NodeFeature> getTestFeatures() {
8182
BBQ_DISK_SUPPORT,
8283
SEARCH_LOAD_PER_SHARD,
8384
SPARSE_VECTOR_INDEX_OPTIONS_FEATURE,
84-
PATTERNED_TEXT,
85-
IGNORED_SOURCE_FIELDS_PER_ENTRY
85+
PATTERNED_TEXT
8686
);
87+
88+
if (IgnoredSourceFieldMapper.IGNORED_SOURCE_FIELDS_PER_ENTRY_FF.isEnabled()) {
89+
features = new HashSet<>(features);
90+
features.add(IGNORED_SOURCE_FIELDS_PER_ENTRY);
91+
}
92+
93+
return features;
8794
}
8895
}

0 commit comments

Comments
 (0)