diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DynamicProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DynamicProperty.java index f72c21f37..3e1693028 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DynamicProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DynamicProperty.java @@ -324,7 +324,7 @@ public final String locale() { protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - generator.write("type", "{dynamic_type}"); + generator.write("type", "{dynamic_property}"); super.serializeInternal(generator, mapper); if (this.enabled != null) { generator.writeKey("enabled"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/Property.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/Property.java index 8089e91ec..38551035e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/Property.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/Property.java @@ -85,7 +85,7 @@ public enum Kind implements JsonEnum { DoubleRange("double_range"), - DynamicProperty("{dynamic_type}"), + DynamicProperty("{dynamic_property}"), Alias("alias"), @@ -420,17 +420,17 @@ public DoubleRangeProperty doubleRange() { } /** - * Is this variant instance of kind {@code {dynamic_type}}? + * Is this variant instance of kind {@code {dynamic_property}}? */ public boolean isDynamicProperty() { return _kind == Kind.DynamicProperty; } /** - * Get the {@code {dynamic_type}} variant value. + * Get the {@code {dynamic_property}} variant value. * * @throws IllegalStateException - * if the current variant is not of the {@code {dynamic_type}} + * if the current variant is not of the {@code {dynamic_property}} * kind. */ public DynamicProperty dynamicProperty() { @@ -1580,7 +1580,7 @@ protected static void setupPropertyDeserializer(ObjectDeserializer op) op.add(Builder::denseVector, DenseVectorProperty._DESERIALIZER, "dense_vector"); op.add(Builder::double_, DoubleNumberProperty._DESERIALIZER, "double"); op.add(Builder::doubleRange, DoubleRangeProperty._DESERIALIZER, "double_range"); - op.add(Builder::dynamicProperty, DynamicProperty._DESERIALIZER, "{dynamic_type}"); + op.add(Builder::dynamicProperty, DynamicProperty._DESERIALIZER, "{dynamic_property}"); op.add(Builder::alias, FieldAliasProperty._DESERIALIZER, "alias"); op.add(Builder::flattened, FlattenedProperty._DESERIALIZER, "flattened"); op.add(Builder::float_, FloatNumberProperty._DESERIALIZER, "float"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyBuilders.java index 5388b7dce..6c8ad3a6f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyBuilders.java @@ -250,7 +250,7 @@ public static Property doubleRange(Function> fn) {