File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
server/src/main/java/org/elasticsearch/index/mapper Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 1212import org .elasticsearch .features .FeatureSpecification ;
1313import org .elasticsearch .features .NodeFeature ;
1414
15+ import java .util .HashSet ;
1516import java .util .Set ;
1617
1718import 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}
You can’t perform that action at this time.
0 commit comments