Skip to content

Commit d7acbe0

Browse files
committed
Add cluster feature
1 parent 22c9ea3 commit d7acbe0

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/tsdb/160_nested_fields.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
setup:
2+
- requires:
3+
cluster_features: ["mapper.tsdb_nested_field_support"]
4+
reason: "tsdb index with nested field support enabled"
5+
16
---
27
"Create TSDB index with field of nested type":
38
- do:

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public class MapperFeatures implements FeatureSpecification {
2727
"mapper.counted_keyword.synthetic_source_native_support"
2828
);
2929

30+
public static final NodeFeature TSDB_NESTED_FIELD_SUPPORT = new NodeFeature("mapper.tsdb_nested_field_support");
3031
public static final NodeFeature META_FETCH_FIELDS_ERROR_CODE_CHANGED = new NodeFeature("meta_fetch_fields_error_code_changed");
3132
public static final NodeFeature SPARSE_VECTOR_STORE_SUPPORT = new NodeFeature("mapper.sparse_vector.store_support");
3233
public static final NodeFeature SORT_FIELDS_CHECK_FOR_NESTED_OBJECT_FIX = new NodeFeature("mapper.nested.sorting_fields_check_fix");
@@ -49,6 +50,7 @@ public Set<NodeFeature> getTestFeatures() {
4950
COUNTED_KEYWORD_SYNTHETIC_SOURCE_NATIVE_SUPPORT,
5051
SORT_FIELDS_CHECK_FOR_NESTED_OBJECT_FIX,
5152
DYNAMIC_HANDLING_IN_COPY_TO,
53+
TSDB_NESTED_FIELD_SUPPORT,
5254
SourceFieldMapper.SYNTHETIC_RECOVERY_SOURCE,
5355
ObjectMapper.SUBOBJECTS_FALSE_MAPPING_UPDATE_FIX
5456
);

0 commit comments

Comments
 (0)