Skip to content

Commit b05fb8c

Browse files
committed
feature
1 parent c270025 commit b05fb8c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/mapping/10_copy_to.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
---
22
copy_to from object with dynamic strict to dynamic field:
3+
- requires:
4+
cluster_features: ["mapper.copy_to.dynamic_handling"]
5+
reason: requires a fix
6+
37
- do:
48
indices.create:
59
index: test

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public class MapperFeatures implements FeatureSpecification {
2929

3030
public static final NodeFeature META_FETCH_FIELDS_ERROR_CODE_CHANGED = new NodeFeature("meta_fetch_fields_error_code_changed");
3131
public static final NodeFeature SPARSE_VECTOR_STORE_SUPPORT = new NodeFeature("mapper.sparse_vector.store_support");
32+
public static final NodeFeature DYNAMIC_HANDLING_IN_COPY_TO = new NodeFeature("mapper.copy_to.dynamic_handling");
3233

3334
@Override
3435
public Set<NodeFeature> getTestFeatures() {
@@ -45,6 +46,7 @@ public Set<NodeFeature> getTestFeatures() {
4546
META_FETCH_FIELDS_ERROR_CODE_CHANGED,
4647
SPARSE_VECTOR_STORE_SUPPORT,
4748
COUNTED_KEYWORD_SYNTHETIC_SOURCE_NATIVE_SUPPORT,
49+
DYNAMIC_HANDLING_IN_COPY_TO,
4850
SourceFieldMapper.SYNTHETIC_RECOVERY_SOURCE,
4951
ObjectMapper.SUBOBJECTS_FALSE_MAPPING_UPDATE_FIX
5052
);

0 commit comments

Comments
 (0)