diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/AggregateMetricDoubleProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/AggregateMetricDoubleProperty.g.cs index 238227e36ee..b29b76bf116 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/AggregateMetricDoubleProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/AggregateMetricDoubleProperty.g.cs @@ -43,10 +43,6 @@ public sealed partial class AggregateMetricDoubleProperty : IProperty [JsonPropertyName("ignore_above")] public int? IgnoreAbove { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("meta")] public Dictionary? Meta { get; set; } @@ -83,8 +79,6 @@ public AggregateMetricDoublePropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private ICollection MetricsValue { get; set; } @@ -131,12 +125,6 @@ public AggregateMetricDoublePropertyDescriptor IgnoreAbove(int? ignor return Self; } - public AggregateMetricDoublePropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public AggregateMetricDoublePropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -198,12 +186,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(IgnoreAboveValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -230,7 +212,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } AggregateMetricDoubleProperty IBuildableDescriptor.Build() => new() - { DefaultMetric = DefaultMetricValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Metrics = MetricsValue, Properties = PropertiesValue, TimeSeriesMetric = TimeSeriesMetricValue }; + { DefaultMetric = DefaultMetricValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, Metrics = MetricsValue, Properties = PropertiesValue, TimeSeriesMetric = TimeSeriesMetricValue }; } public sealed partial class AggregateMetricDoublePropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -248,8 +230,6 @@ public AggregateMetricDoublePropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private ICollection MetricsValue { get; set; } @@ -296,12 +276,6 @@ public AggregateMetricDoublePropertyDescriptor IgnoreAbove(int? ignoreAbove) return Self; } - public AggregateMetricDoublePropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public AggregateMetricDoublePropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -363,12 +337,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(IgnoreAboveValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -395,5 +363,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } AggregateMetricDoubleProperty IBuildableDescriptor.Build() => new() - { DefaultMetric = DefaultMetricValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Metrics = MetricsValue, Properties = PropertiesValue, TimeSeriesMetric = TimeSeriesMetricValue }; + { DefaultMetric = DefaultMetricValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, Metrics = MetricsValue, Properties = PropertiesValue, TimeSeriesMetric = TimeSeriesMetricValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/BinaryProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/BinaryProperty.g.cs index fcbb3d9ea69..99bcaaa10c8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/BinaryProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/BinaryProperty.g.cs @@ -47,10 +47,6 @@ public sealed partial class BinaryProperty : IProperty [JsonPropertyName("ignore_above")] public int? IgnoreAbove { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("meta")] public Dictionary? Meta { get; set; } @@ -89,8 +85,6 @@ public BinaryPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } @@ -143,12 +137,6 @@ public BinaryPropertyDescriptor IgnoreAbove(int? ignoreAbove) return Self; } - public BinaryPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public BinaryPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -220,12 +208,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(IgnoreAboveValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -256,7 +238,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } BinaryProperty IBuildableDescriptor.Build() => new() - { CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; + { CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; } public sealed partial class BinaryPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -276,8 +258,6 @@ public BinaryPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } @@ -330,12 +310,6 @@ public BinaryPropertyDescriptor IgnoreAbove(int? ignoreAbove) return Self; } - public BinaryPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public BinaryPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -407,12 +381,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(IgnoreAboveValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -443,5 +411,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } BinaryProperty IBuildableDescriptor.Build() => new() - { CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; + { CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/BooleanProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/BooleanProperty.g.cs index e9b592cf76f..23e2f28b185 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/BooleanProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/BooleanProperty.g.cs @@ -59,10 +59,6 @@ public sealed partial class BooleanProperty : IProperty [JsonPropertyName("index")] public bool? Index { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("meta")] public Dictionary? Meta { get; set; } @@ -115,8 +111,6 @@ public BooleanPropertyDescriptor() : base() private bool? IndexValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private bool? NullValueValue { get; set; } @@ -207,12 +201,6 @@ public BooleanPropertyDescriptor Index(bool? index = true) return Self; } - public BooleanPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public BooleanPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -318,12 +306,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IndexValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -384,7 +366,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } BooleanProperty IBuildableDescriptor.Build() => new() - { Boost = BoostValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fielddata = BuildFielddata(), Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, NullValue = NullValueValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; + { Boost = BoostValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fielddata = BuildFielddata(), Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, Meta = MetaValue, NullValue = NullValueValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; } public sealed partial class BooleanPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -414,8 +396,6 @@ public BooleanPropertyDescriptor() : base() private bool? IndexValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private bool? NullValueValue { get; set; } @@ -506,12 +486,6 @@ public BooleanPropertyDescriptor Index(bool? index = true) return Self; } - public BooleanPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public BooleanPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -617,12 +591,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IndexValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -683,5 +651,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } BooleanProperty IBuildableDescriptor.Build() => new() - { Boost = BoostValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fielddata = BuildFielddata(), Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, NullValue = NullValueValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; + { Boost = BoostValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fielddata = BuildFielddata(), Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, Meta = MetaValue, NullValue = NullValueValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ByteNumberProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ByteNumberProperty.g.cs index df54a34ed52..fb3dee183dc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ByteNumberProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ByteNumberProperty.g.cs @@ -63,10 +63,6 @@ public sealed partial class ByteNumberProperty : IProperty [JsonPropertyName("index")] public bool? Index { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("meta")] public Dictionary? Meta { get; set; } @@ -133,8 +129,6 @@ public ByteNumberPropertyDescriptor() : base() private bool? IndexValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private double? NullValueValue { get; set; } @@ -221,12 +215,6 @@ public ByteNumberPropertyDescriptor Index(bool? index = true) return Self; } - public ByteNumberPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public ByteNumberPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -352,12 +340,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IndexValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -418,7 +400,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } ByteNumberProperty IBuildableDescriptor.Build() => new() - { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = ScriptValue, Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; + { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, Meta = MetaValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = ScriptValue, Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; } public sealed partial class ByteNumberPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -446,8 +428,6 @@ public ByteNumberPropertyDescriptor() : base() private bool? IndexValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private double? NullValueValue { get; set; } @@ -534,12 +514,6 @@ public ByteNumberPropertyDescriptor Index(bool? index = true) return Self; } - public ByteNumberPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public ByteNumberPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -665,12 +639,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IndexValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -731,5 +699,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } ByteNumberProperty IBuildableDescriptor.Build() => new() - { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = ScriptValue, Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; + { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, Meta = MetaValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = ScriptValue, Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/CompletionProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/CompletionProperty.g.cs index b62c17aafaf..70b56868890 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/CompletionProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/CompletionProperty.g.cs @@ -55,10 +55,6 @@ public sealed partial class CompletionProperty : IProperty [JsonPropertyName("ignore_above")] public int? IgnoreAbove { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("max_input_length")] public int? MaxInputLength { get; set; } @@ -123,8 +119,6 @@ public CompletionPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private int? MaxInputLengthValue { get; set; } private Dictionary? MetaValue { get; set; } @@ -227,12 +221,6 @@ public CompletionPropertyDescriptor IgnoreAbove(int? ignoreAbove) return Self; } - public CompletionPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public CompletionPropertyDescriptor MaxInputLength(int? maxInputLength) { MaxInputLengthValue = maxInputLength; @@ -365,12 +353,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(IgnoreAboveValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MaxInputLengthValue.HasValue) { writer.WritePropertyName("max_input_length"); @@ -425,7 +407,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } CompletionProperty IBuildableDescriptor.Build() => new() - { Contexts = ContextsValue, Analyzer = AnalyzerValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, LocalMetadata = LocalMetadataValue, MaxInputLength = MaxInputLengthValue, Meta = MetaValue, PreservePositionIncrements = PreservePositionIncrementsValue, PreserveSeparators = PreserveSeparatorsValue, Properties = PropertiesValue, SearchAnalyzer = SearchAnalyzerValue, Similarity = SimilarityValue, Store = StoreValue }; + { Contexts = ContextsValue, Analyzer = AnalyzerValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, MaxInputLength = MaxInputLengthValue, Meta = MetaValue, PreservePositionIncrements = PreservePositionIncrementsValue, PreserveSeparators = PreserveSeparatorsValue, Properties = PropertiesValue, SearchAnalyzer = SearchAnalyzerValue, Similarity = SimilarityValue, Store = StoreValue }; } public sealed partial class CompletionPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -455,8 +437,6 @@ public CompletionPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private int? MaxInputLengthValue { get; set; } private Dictionary? MetaValue { get; set; } @@ -559,12 +539,6 @@ public CompletionPropertyDescriptor IgnoreAbove(int? ignoreAbove) return Self; } - public CompletionPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public CompletionPropertyDescriptor MaxInputLength(int? maxInputLength) { MaxInputLengthValue = maxInputLength; @@ -697,12 +671,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(IgnoreAboveValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MaxInputLengthValue.HasValue) { writer.WritePropertyName("max_input_length"); @@ -757,5 +725,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } CompletionProperty IBuildableDescriptor.Build() => new() - { Contexts = ContextsValue, Analyzer = AnalyzerValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, LocalMetadata = LocalMetadataValue, MaxInputLength = MaxInputLengthValue, Meta = MetaValue, PreservePositionIncrements = PreservePositionIncrementsValue, PreserveSeparators = PreserveSeparatorsValue, Properties = PropertiesValue, SearchAnalyzer = SearchAnalyzerValue, Similarity = SimilarityValue, Store = StoreValue }; + { Contexts = ContextsValue, Analyzer = AnalyzerValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, MaxInputLength = MaxInputLengthValue, Meta = MetaValue, PreservePositionIncrements = PreservePositionIncrementsValue, PreserveSeparators = PreserveSeparatorsValue, Properties = PropertiesValue, SearchAnalyzer = SearchAnalyzerValue, Similarity = SimilarityValue, Store = StoreValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ConstantKeywordProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ConstantKeywordProperty.g.cs index 4b2a2a4756a..abb2f14ab6c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ConstantKeywordProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ConstantKeywordProperty.g.cs @@ -39,10 +39,6 @@ public sealed partial class ConstantKeywordProperty : IProperty [JsonPropertyName("ignore_above")] public int? IgnoreAbove { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("meta")] public Dictionary? Meta { get; set; } @@ -72,8 +68,6 @@ public ConstantKeywordPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } @@ -112,12 +106,6 @@ public ConstantKeywordPropertyDescriptor IgnoreAbove(int? ignoreAbove return Self; } - public ConstantKeywordPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public ConstantKeywordPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -171,12 +159,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(IgnoreAboveValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -195,7 +177,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } ConstantKeywordProperty IBuildableDescriptor.Build() => new() - { Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Properties = PropertiesValue, Value = ValueValue }; + { Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, Properties = PropertiesValue, Value = ValueValue }; } public sealed partial class ConstantKeywordPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -211,8 +193,6 @@ public ConstantKeywordPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } @@ -251,12 +231,6 @@ public ConstantKeywordPropertyDescriptor IgnoreAbove(int? ignoreAbove) return Self; } - public ConstantKeywordPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public ConstantKeywordPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -310,12 +284,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(IgnoreAboveValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -334,5 +302,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } ConstantKeywordProperty IBuildableDescriptor.Build() => new() - { Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Properties = PropertiesValue, Value = ValueValue }; + { Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, Properties = PropertiesValue, Value = ValueValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateNanosProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateNanosProperty.g.cs index be3814650e4..fb9a53af5e1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateNanosProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateNanosProperty.g.cs @@ -63,10 +63,6 @@ public sealed partial class DateNanosProperty : IProperty [JsonPropertyName("index")] public bool? Index { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("meta")] public Dictionary? Meta { get; set; } @@ -121,8 +117,6 @@ public DateNanosPropertyDescriptor() : base() private bool? IndexValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private DateTimeOffset? NullValueValue { get; set; } @@ -203,12 +197,6 @@ public DateNanosPropertyDescriptor Index(bool? index = true) return Self; } - public DateNanosPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public DateNanosPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -316,12 +304,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IndexValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -364,7 +346,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } DateNanosProperty IBuildableDescriptor.Build() => new() - { Boost = BoostValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, Format = FormatValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, NullValue = NullValueValue, PrecisionStep = PrecisionStepValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; + { Boost = BoostValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, Format = FormatValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, Meta = MetaValue, NullValue = NullValueValue, PrecisionStep = PrecisionStepValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; } public sealed partial class DateNanosPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -392,8 +374,6 @@ public DateNanosPropertyDescriptor() : base() private bool? IndexValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private DateTimeOffset? NullValueValue { get; set; } @@ -474,12 +454,6 @@ public DateNanosPropertyDescriptor Index(bool? index = true) return Self; } - public DateNanosPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public DateNanosPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -587,12 +561,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IndexValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -635,5 +603,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } DateNanosProperty IBuildableDescriptor.Build() => new() - { Boost = BoostValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, Format = FormatValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, NullValue = NullValueValue, PrecisionStep = PrecisionStepValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; + { Boost = BoostValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, Format = FormatValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, Meta = MetaValue, NullValue = NullValueValue, PrecisionStep = PrecisionStepValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateProperty.g.cs index 776e616a4a0..59c55766966 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateProperty.g.cs @@ -67,10 +67,6 @@ public sealed partial class DateProperty : IProperty [JsonPropertyName("index")] public bool? Index { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("locale")] public string? Locale { get; set; } @@ -135,8 +131,6 @@ public DatePropertyDescriptor() : base() private bool? IndexValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private string? LocaleValue { get; set; } private Dictionary? MetaValue { get; set; } @@ -243,12 +237,6 @@ public DatePropertyDescriptor Index(bool? index = true) return Self; } - public DatePropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public DatePropertyDescriptor Locale(string? locale) { LocaleValue = locale; @@ -378,12 +366,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IndexValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (!string.IsNullOrEmpty(LocaleValue)) { writer.WritePropertyName("locale"); @@ -456,7 +438,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } DateProperty IBuildableDescriptor.Build() => new() - { Boost = BoostValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fielddata = BuildFielddata(), Fields = FieldsValue, Format = FormatValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, LocalMetadata = LocalMetadataValue, Locale = LocaleValue, Meta = MetaValue, NullValue = NullValueValue, PrecisionStep = PrecisionStepValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; + { Boost = BoostValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fielddata = BuildFielddata(), Fields = FieldsValue, Format = FormatValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, Locale = LocaleValue, Meta = MetaValue, NullValue = NullValueValue, PrecisionStep = PrecisionStepValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; } public sealed partial class DatePropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -490,8 +472,6 @@ public DatePropertyDescriptor() : base() private bool? IndexValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private string? LocaleValue { get; set; } private Dictionary? MetaValue { get; set; } @@ -598,12 +578,6 @@ public DatePropertyDescriptor Index(bool? index = true) return Self; } - public DatePropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public DatePropertyDescriptor Locale(string? locale) { LocaleValue = locale; @@ -733,12 +707,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IndexValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (!string.IsNullOrEmpty(LocaleValue)) { writer.WritePropertyName("locale"); @@ -811,5 +779,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } DateProperty IBuildableDescriptor.Build() => new() - { Boost = BoostValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fielddata = BuildFielddata(), Fields = FieldsValue, Format = FormatValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, LocalMetadata = LocalMetadataValue, Locale = LocaleValue, Meta = MetaValue, NullValue = NullValueValue, PrecisionStep = PrecisionStepValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; + { Boost = BoostValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fielddata = BuildFielddata(), Fields = FieldsValue, Format = FormatValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, Locale = LocaleValue, Meta = MetaValue, NullValue = NullValueValue, PrecisionStep = PrecisionStepValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateRangeProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateRangeProperty.g.cs index 9313e7e42dc..6944b73b7e8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateRangeProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateRangeProperty.g.cs @@ -63,10 +63,6 @@ public sealed partial class DateRangeProperty : IProperty [JsonPropertyName("index")] public bool? Index { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("meta")] public Dictionary? Meta { get; set; } @@ -113,8 +109,6 @@ public DateRangePropertyDescriptor() : base() private bool? IndexValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } @@ -191,12 +185,6 @@ public DateRangePropertyDescriptor Index(bool? index = true) return Self; } - public DateRangePropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public DateRangePropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -292,12 +280,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IndexValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -328,7 +310,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } DateRangeProperty IBuildableDescriptor.Build() => new() - { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, Format = FormatValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; + { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, Format = FormatValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; } public sealed partial class DateRangePropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -356,8 +338,6 @@ public DateRangePropertyDescriptor() : base() private bool? IndexValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } @@ -434,12 +414,6 @@ public DateRangePropertyDescriptor Index(bool? index = true) return Self; } - public DateRangePropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public DateRangePropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -535,12 +509,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IndexValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -571,5 +539,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } DateRangeProperty IBuildableDescriptor.Build() => new() - { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, Format = FormatValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; + { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, Format = FormatValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorProperty.g.cs index 4205b4cb5b6..ae8f06a38ce 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorProperty.g.cs @@ -51,10 +51,6 @@ public sealed partial class DenseVectorProperty : IProperty [JsonPropertyName("index_options")] public Elastic.Clients.Elasticsearch.Mapping.DenseVectorIndexOptions? IndexOptions { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("meta")] public Dictionary? Meta { get; set; } @@ -95,8 +91,6 @@ public DenseVectorPropertyDescriptor() : base() private Action IndexOptionsDescriptorAction { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } @@ -171,12 +165,6 @@ public DenseVectorPropertyDescriptor IndexOptions(Action LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public DenseVectorPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -254,12 +242,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, IndexOptionsValue, options); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -308,7 +290,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } DenseVectorProperty IBuildableDescriptor.Build() => new() - { Dims = DimsValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, IndexOptions = BuildIndexOptions(), LocalMetadata = LocalMetadataValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue }; + { Dims = DimsValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, IndexOptions = BuildIndexOptions(), Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue }; } public sealed partial class DenseVectorPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -334,8 +316,6 @@ public DenseVectorPropertyDescriptor() : base() private Action IndexOptionsDescriptorAction { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } @@ -410,12 +390,6 @@ public DenseVectorPropertyDescriptor IndexOptions(Action, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public DenseVectorPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -493,12 +467,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, IndexOptionsValue, options); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -547,5 +515,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } DenseVectorProperty IBuildableDescriptor.Build() => new() - { Dims = DimsValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, IndexOptions = BuildIndexOptions(), LocalMetadata = LocalMetadataValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue }; + { Dims = DimsValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, IndexOptions = BuildIndexOptions(), Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DoubleNumberProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DoubleNumberProperty.g.cs index 23bc250f23e..17568a190ed 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DoubleNumberProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DoubleNumberProperty.g.cs @@ -63,10 +63,6 @@ public sealed partial class DoubleNumberProperty : IProperty [JsonPropertyName("index")] public bool? Index { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("meta")] public Dictionary? Meta { get; set; } @@ -133,8 +129,6 @@ public DoubleNumberPropertyDescriptor() : base() private bool? IndexValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private double? NullValueValue { get; set; } @@ -221,12 +215,6 @@ public DoubleNumberPropertyDescriptor Index(bool? index = true) return Self; } - public DoubleNumberPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public DoubleNumberPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -352,12 +340,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IndexValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -418,7 +400,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } DoubleNumberProperty IBuildableDescriptor.Build() => new() - { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = ScriptValue, Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; + { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, Meta = MetaValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = ScriptValue, Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; } public sealed partial class DoubleNumberPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -446,8 +428,6 @@ public DoubleNumberPropertyDescriptor() : base() private bool? IndexValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private double? NullValueValue { get; set; } @@ -534,12 +514,6 @@ public DoubleNumberPropertyDescriptor Index(bool? index = true) return Self; } - public DoubleNumberPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public DoubleNumberPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -665,12 +639,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IndexValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -731,5 +699,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } DoubleNumberProperty IBuildableDescriptor.Build() => new() - { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = ScriptValue, Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; + { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, Meta = MetaValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = ScriptValue, Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DoubleRangeProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DoubleRangeProperty.g.cs index 2a3d8f38f18..feb403eab72 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DoubleRangeProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DoubleRangeProperty.g.cs @@ -59,10 +59,6 @@ public sealed partial class DoubleRangeProperty : IProperty [JsonPropertyName("index")] public bool? Index { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("meta")] public Dictionary? Meta { get; set; } @@ -107,8 +103,6 @@ public DoubleRangePropertyDescriptor() : base() private bool? IndexValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } @@ -179,12 +173,6 @@ public DoubleRangePropertyDescriptor Index(bool? index = true) return Self; } - public DoubleRangePropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public DoubleRangePropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -274,12 +262,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IndexValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -310,7 +292,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } DoubleRangeProperty IBuildableDescriptor.Build() => new() - { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; + { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; } public sealed partial class DoubleRangePropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -336,8 +318,6 @@ public DoubleRangePropertyDescriptor() : base() private bool? IndexValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } @@ -408,12 +388,6 @@ public DoubleRangePropertyDescriptor Index(bool? index = true) return Self; } - public DoubleRangePropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public DoubleRangePropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -503,12 +477,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IndexValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -539,5 +507,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } DoubleRangeProperty IBuildableDescriptor.Build() => new() - { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; + { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DynamicProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DynamicProperty.g.cs index 8d92d93f428..1718c4e4e68 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DynamicProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DynamicProperty.g.cs @@ -91,10 +91,6 @@ public sealed partial class DynamicProperty : IProperty [JsonPropertyName("index_prefixes")] public Elastic.Clients.Elasticsearch.Mapping.TextIndexPrefixes? IndexPrefixes { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("locale")] public string? Locale { get; set; } @@ -203,8 +199,6 @@ public DynamicPropertyDescriptor() : base() private Action IndexPrefixesDescriptorAction { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private string? LocaleValue { get; set; } private Dictionary? MetaValue { get; set; } @@ -363,12 +357,6 @@ public DynamicPropertyDescriptor IndexPrefixes(Action LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public DynamicPropertyDescriptor Locale(string? locale) { LocaleValue = locale; @@ -582,12 +570,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, IndexPrefixesValue, options); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (!string.IsNullOrEmpty(LocaleValue)) { writer.WritePropertyName("locale"); @@ -708,7 +690,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } DynamicProperty IBuildableDescriptor.Build() => new() - { Analyzer = AnalyzerValue, Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, EagerGlobalOrdinals = EagerGlobalOrdinalsValue, Enabled = EnabledValue, Fields = FieldsValue, Format = FormatValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, IndexOptions = IndexOptionsValue, IndexPhrases = IndexPhrasesValue, IndexPrefixes = BuildIndexPrefixes(), LocalMetadata = LocalMetadataValue, Locale = LocaleValue, Meta = MetaValue, Norms = NormsValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, PositionIncrementGap = PositionIncrementGapValue, PrecisionStep = PrecisionStepValue, Properties = PropertiesValue, Script = ScriptValue, SearchAnalyzer = SearchAnalyzerValue, SearchQuoteAnalyzer = SearchQuoteAnalyzerValue, Similarity = SimilarityValue, Store = StoreValue, TermVector = TermVectorValue, TimeSeriesMetric = TimeSeriesMetricValue }; + { Analyzer = AnalyzerValue, Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, EagerGlobalOrdinals = EagerGlobalOrdinalsValue, Enabled = EnabledValue, Fields = FieldsValue, Format = FormatValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, IndexOptions = IndexOptionsValue, IndexPhrases = IndexPhrasesValue, IndexPrefixes = BuildIndexPrefixes(), Locale = LocaleValue, Meta = MetaValue, Norms = NormsValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, PositionIncrementGap = PositionIncrementGapValue, PrecisionStep = PrecisionStepValue, Properties = PropertiesValue, Script = ScriptValue, SearchAnalyzer = SearchAnalyzerValue, SearchQuoteAnalyzer = SearchQuoteAnalyzerValue, Similarity = SimilarityValue, Store = StoreValue, TermVector = TermVectorValue, TimeSeriesMetric = TimeSeriesMetricValue }; } public sealed partial class DynamicPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -754,8 +736,6 @@ public DynamicPropertyDescriptor() : base() private Action IndexPrefixesDescriptorAction { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private string? LocaleValue { get; set; } private Dictionary? MetaValue { get; set; } @@ -914,12 +894,6 @@ public DynamicPropertyDescriptor IndexPrefixes(Action, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public DynamicPropertyDescriptor Locale(string? locale) { LocaleValue = locale; @@ -1133,12 +1107,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, IndexPrefixesValue, options); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (!string.IsNullOrEmpty(LocaleValue)) { writer.WritePropertyName("locale"); @@ -1259,5 +1227,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } DynamicProperty IBuildableDescriptor.Build() => new() - { Analyzer = AnalyzerValue, Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, EagerGlobalOrdinals = EagerGlobalOrdinalsValue, Enabled = EnabledValue, Fields = FieldsValue, Format = FormatValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, IndexOptions = IndexOptionsValue, IndexPhrases = IndexPhrasesValue, IndexPrefixes = BuildIndexPrefixes(), LocalMetadata = LocalMetadataValue, Locale = LocaleValue, Meta = MetaValue, Norms = NormsValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, PositionIncrementGap = PositionIncrementGapValue, PrecisionStep = PrecisionStepValue, Properties = PropertiesValue, Script = ScriptValue, SearchAnalyzer = SearchAnalyzerValue, SearchQuoteAnalyzer = SearchQuoteAnalyzerValue, Similarity = SimilarityValue, Store = StoreValue, TermVector = TermVectorValue, TimeSeriesMetric = TimeSeriesMetricValue }; + { Analyzer = AnalyzerValue, Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, EagerGlobalOrdinals = EagerGlobalOrdinalsValue, Enabled = EnabledValue, Fields = FieldsValue, Format = FormatValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, IndexOptions = IndexOptionsValue, IndexPhrases = IndexPhrasesValue, IndexPrefixes = BuildIndexPrefixes(), Locale = LocaleValue, Meta = MetaValue, Norms = NormsValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, PositionIncrementGap = PositionIncrementGapValue, PrecisionStep = PrecisionStepValue, Properties = PropertiesValue, Script = ScriptValue, SearchAnalyzer = SearchAnalyzerValue, SearchQuoteAnalyzer = SearchQuoteAnalyzerValue, Similarity = SimilarityValue, Store = StoreValue, TermVector = TermVectorValue, TimeSeriesMetric = TimeSeriesMetricValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FieldAliasProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FieldAliasProperty.g.cs index 1156c90ded5..aa4084448f9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FieldAliasProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FieldAliasProperty.g.cs @@ -39,10 +39,6 @@ public sealed partial class FieldAliasProperty : IProperty [JsonPropertyName("ignore_above")] public int? IgnoreAbove { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("meta")] public Dictionary? Meta { get; set; } @@ -73,8 +69,6 @@ public FieldAliasPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Field? PathValue { get; set; } @@ -113,12 +107,6 @@ public FieldAliasPropertyDescriptor IgnoreAbove(int? ignoreAbove) return Self; } - public FieldAliasPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public FieldAliasPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -178,12 +166,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(IgnoreAboveValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -208,7 +190,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } FieldAliasProperty IBuildableDescriptor.Build() => new() - { Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Path = PathValue, Properties = PropertiesValue }; + { Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, Path = PathValue, Properties = PropertiesValue }; } public sealed partial class FieldAliasPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -224,8 +206,6 @@ public FieldAliasPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Field? PathValue { get; set; } @@ -264,12 +244,6 @@ public FieldAliasPropertyDescriptor IgnoreAbove(int? ignoreAbove) return Self; } - public FieldAliasPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public FieldAliasPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -335,12 +309,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(IgnoreAboveValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -365,5 +333,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } FieldAliasProperty IBuildableDescriptor.Build() => new() - { Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Path = PathValue, Properties = PropertiesValue }; + { Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, Path = PathValue, Properties = PropertiesValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FlattenedProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FlattenedProperty.g.cs index d4d76bc865c..ee9f30bd406 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FlattenedProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FlattenedProperty.g.cs @@ -63,10 +63,6 @@ public sealed partial class FlattenedProperty : IProperty [JsonPropertyName("index_options")] public Elastic.Clients.Elasticsearch.Mapping.IndexOptions? IndexOptions { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("meta")] public Dictionary? Meta { get; set; } @@ -117,8 +113,6 @@ public FlattenedPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Mapping.IndexOptions? IndexOptionsValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private string? NullValueValue { get; set; } @@ -197,12 +191,6 @@ public FlattenedPropertyDescriptor IndexOptions(Elastic.Clients.Elast return Self; } - public FlattenedPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public FlattenedPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -304,12 +292,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, IndexOptionsValue, options); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -346,7 +328,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } FlattenedProperty IBuildableDescriptor.Build() => new() - { Boost = BoostValue, DepthLimit = DepthLimitValue, DocValues = DocValuesValue, Dynamic = DynamicValue, EagerGlobalOrdinals = EagerGlobalOrdinalsValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, IndexOptions = IndexOptionsValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, NullValue = NullValueValue, Properties = PropertiesValue, Similarity = SimilarityValue, SplitQueriesOnWhitespace = SplitQueriesOnWhitespaceValue }; + { Boost = BoostValue, DepthLimit = DepthLimitValue, DocValues = DocValuesValue, Dynamic = DynamicValue, EagerGlobalOrdinals = EagerGlobalOrdinalsValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, IndexOptions = IndexOptionsValue, Meta = MetaValue, NullValue = NullValueValue, Properties = PropertiesValue, Similarity = SimilarityValue, SplitQueriesOnWhitespace = SplitQueriesOnWhitespaceValue }; } public sealed partial class FlattenedPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -374,8 +356,6 @@ public FlattenedPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Mapping.IndexOptions? IndexOptionsValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private string? NullValueValue { get; set; } @@ -454,12 +434,6 @@ public FlattenedPropertyDescriptor IndexOptions(Elastic.Clients.Elasticsearch.Ma return Self; } - public FlattenedPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public FlattenedPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -561,12 +535,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, IndexOptionsValue, options); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -603,5 +571,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } FlattenedProperty IBuildableDescriptor.Build() => new() - { Boost = BoostValue, DepthLimit = DepthLimitValue, DocValues = DocValuesValue, Dynamic = DynamicValue, EagerGlobalOrdinals = EagerGlobalOrdinalsValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, IndexOptions = IndexOptionsValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, NullValue = NullValueValue, Properties = PropertiesValue, Similarity = SimilarityValue, SplitQueriesOnWhitespace = SplitQueriesOnWhitespaceValue }; + { Boost = BoostValue, DepthLimit = DepthLimitValue, DocValues = DocValuesValue, Dynamic = DynamicValue, EagerGlobalOrdinals = EagerGlobalOrdinalsValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, IndexOptions = IndexOptionsValue, Meta = MetaValue, NullValue = NullValueValue, Properties = PropertiesValue, Similarity = SimilarityValue, SplitQueriesOnWhitespace = SplitQueriesOnWhitespaceValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FloatNumberProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FloatNumberProperty.g.cs index 2c8c50e75fe..4075109c7b0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FloatNumberProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FloatNumberProperty.g.cs @@ -63,10 +63,6 @@ public sealed partial class FloatNumberProperty : IProperty [JsonPropertyName("index")] public bool? Index { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("meta")] public Dictionary? Meta { get; set; } @@ -133,8 +129,6 @@ public FloatNumberPropertyDescriptor() : base() private bool? IndexValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private float? NullValueValue { get; set; } @@ -221,12 +215,6 @@ public FloatNumberPropertyDescriptor Index(bool? index = true) return Self; } - public FloatNumberPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public FloatNumberPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -352,12 +340,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IndexValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -418,7 +400,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } FloatNumberProperty IBuildableDescriptor.Build() => new() - { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = ScriptValue, Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; + { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, Meta = MetaValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = ScriptValue, Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; } public sealed partial class FloatNumberPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -446,8 +428,6 @@ public FloatNumberPropertyDescriptor() : base() private bool? IndexValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private float? NullValueValue { get; set; } @@ -534,12 +514,6 @@ public FloatNumberPropertyDescriptor Index(bool? index = true) return Self; } - public FloatNumberPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public FloatNumberPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -665,12 +639,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IndexValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -731,5 +699,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } FloatNumberProperty IBuildableDescriptor.Build() => new() - { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = ScriptValue, Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; + { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, Meta = MetaValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = ScriptValue, Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FloatRangeProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FloatRangeProperty.g.cs index 26331cdfbcb..928bc7e1d00 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FloatRangeProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FloatRangeProperty.g.cs @@ -59,10 +59,6 @@ public sealed partial class FloatRangeProperty : IProperty [JsonPropertyName("index")] public bool? Index { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("meta")] public Dictionary? Meta { get; set; } @@ -107,8 +103,6 @@ public FloatRangePropertyDescriptor() : base() private bool? IndexValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } @@ -179,12 +173,6 @@ public FloatRangePropertyDescriptor Index(bool? index = true) return Self; } - public FloatRangePropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public FloatRangePropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -274,12 +262,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IndexValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -310,7 +292,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } FloatRangeProperty IBuildableDescriptor.Build() => new() - { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; + { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; } public sealed partial class FloatRangePropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -336,8 +318,6 @@ public FloatRangePropertyDescriptor() : base() private bool? IndexValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } @@ -408,12 +388,6 @@ public FloatRangePropertyDescriptor Index(bool? index = true) return Self; } - public FloatRangePropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public FloatRangePropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -503,12 +477,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IndexValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -539,5 +507,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } FloatRangeProperty IBuildableDescriptor.Build() => new() - { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; + { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/GeoPointProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/GeoPointProperty.g.cs index 8f20f7ea872..2896b2c30a8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/GeoPointProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/GeoPointProperty.g.cs @@ -55,10 +55,6 @@ public sealed partial class GeoPointProperty : IProperty [JsonPropertyName("ignore_z_value")] public bool? IgnoreZValue { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("meta")] public Dictionary? Meta { get; set; } @@ -101,8 +97,6 @@ public GeoPointPropertyDescriptor() : base() private bool? IgnoreZValueValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } @@ -167,12 +161,6 @@ public GeoPointPropertyDescriptor IgnoreZValue(bool? ignoreZValue = t return Self; } - public GeoPointPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public GeoPointPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -256,12 +244,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IgnoreZValueValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -292,7 +274,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } GeoPointProperty IBuildableDescriptor.Build() => new() - { CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, IgnoreZValue = IgnoreZValueValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; + { CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, IgnoreZValue = IgnoreZValueValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; } public sealed partial class GeoPointPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -316,8 +298,6 @@ public GeoPointPropertyDescriptor() : base() private bool? IgnoreZValueValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } @@ -382,12 +362,6 @@ public GeoPointPropertyDescriptor IgnoreZValue(bool? ignoreZValue = true) return Self; } - public GeoPointPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public GeoPointPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -471,12 +445,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IgnoreZValueValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -507,5 +475,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } GeoPointProperty IBuildableDescriptor.Build() => new() - { CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, IgnoreZValue = IgnoreZValueValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; + { CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, IgnoreZValue = IgnoreZValueValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/GeoShapeProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/GeoShapeProperty.g.cs index 4243ccdbd50..6686fa6d230 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/GeoShapeProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/GeoShapeProperty.g.cs @@ -59,10 +59,6 @@ public sealed partial class GeoShapeProperty : IProperty [JsonPropertyName("ignore_z_value")] public bool? IgnoreZValue { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("meta")] public Dictionary? Meta { get; set; } @@ -115,8 +111,6 @@ public GeoShapePropertyDescriptor() : base() private bool? IgnoreZValueValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.GeoOrientation? OrientationValue { get; set; } @@ -191,12 +185,6 @@ public GeoShapePropertyDescriptor IgnoreZValue(bool? ignoreZValue = t return Self; } - public GeoShapePropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public GeoShapePropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -298,12 +286,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IgnoreZValueValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -346,7 +328,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } GeoShapeProperty IBuildableDescriptor.Build() => new() - { Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, IgnoreZValue = IgnoreZValueValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Orientation = OrientationValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue, Strategy = StrategyValue }; + { Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, IgnoreZValue = IgnoreZValueValue, Meta = MetaValue, Orientation = OrientationValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue, Strategy = StrategyValue }; } public sealed partial class GeoShapePropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -372,8 +354,6 @@ public GeoShapePropertyDescriptor() : base() private bool? IgnoreZValueValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.GeoOrientation? OrientationValue { get; set; } @@ -448,12 +428,6 @@ public GeoShapePropertyDescriptor IgnoreZValue(bool? ignoreZValue = true) return Self; } - public GeoShapePropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public GeoShapePropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -555,12 +529,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IgnoreZValueValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -603,5 +571,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } GeoShapeProperty IBuildableDescriptor.Build() => new() - { Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, IgnoreZValue = IgnoreZValueValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Orientation = OrientationValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue, Strategy = StrategyValue }; + { Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, IgnoreZValue = IgnoreZValueValue, Meta = MetaValue, Orientation = OrientationValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue, Strategy = StrategyValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/HalfFloatNumberProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/HalfFloatNumberProperty.g.cs index e96e48d7769..322ee76ba1d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/HalfFloatNumberProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/HalfFloatNumberProperty.g.cs @@ -63,10 +63,6 @@ public sealed partial class HalfFloatNumberProperty : IProperty [JsonPropertyName("index")] public bool? Index { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("meta")] public Dictionary? Meta { get; set; } @@ -133,8 +129,6 @@ public HalfFloatNumberPropertyDescriptor() : base() private bool? IndexValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private float? NullValueValue { get; set; } @@ -221,12 +215,6 @@ public HalfFloatNumberPropertyDescriptor Index(bool? index = true) return Self; } - public HalfFloatNumberPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public HalfFloatNumberPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -352,12 +340,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IndexValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -418,7 +400,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } HalfFloatNumberProperty IBuildableDescriptor.Build() => new() - { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = ScriptValue, Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; + { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, Meta = MetaValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = ScriptValue, Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; } public sealed partial class HalfFloatNumberPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -446,8 +428,6 @@ public HalfFloatNumberPropertyDescriptor() : base() private bool? IndexValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private float? NullValueValue { get; set; } @@ -534,12 +514,6 @@ public HalfFloatNumberPropertyDescriptor Index(bool? index = true) return Self; } - public HalfFloatNumberPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public HalfFloatNumberPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -665,12 +639,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IndexValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -731,5 +699,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } HalfFloatNumberProperty IBuildableDescriptor.Build() => new() - { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = ScriptValue, Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; + { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, Meta = MetaValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = ScriptValue, Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/HistogramProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/HistogramProperty.g.cs index 2965de88d29..7d2cc26d9c1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/HistogramProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/HistogramProperty.g.cs @@ -43,10 +43,6 @@ public sealed partial class HistogramProperty : IProperty [JsonPropertyName("ignore_malformed")] public bool? IgnoreMalformed { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("meta")] public Dictionary? Meta { get; set; } @@ -75,8 +71,6 @@ public HistogramPropertyDescriptor() : base() private bool? IgnoreMalformedValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } @@ -119,12 +113,6 @@ public HistogramPropertyDescriptor IgnoreMalformed(bool? ignoreMalfor return Self; } - public HistogramPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public HistogramPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -178,12 +166,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IgnoreMalformedValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -202,7 +184,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } HistogramProperty IBuildableDescriptor.Build() => new() - { Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Properties = PropertiesValue }; + { Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Meta = MetaValue, Properties = PropertiesValue }; } public sealed partial class HistogramPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -220,8 +202,6 @@ public HistogramPropertyDescriptor() : base() private bool? IgnoreMalformedValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } @@ -264,12 +244,6 @@ public HistogramPropertyDescriptor IgnoreMalformed(bool? ignoreMalformed = true) return Self; } - public HistogramPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public HistogramPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -323,12 +297,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IgnoreMalformedValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -347,5 +315,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } HistogramProperty IBuildableDescriptor.Build() => new() - { Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Properties = PropertiesValue }; + { Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Meta = MetaValue, Properties = PropertiesValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IntegerNumberProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IntegerNumberProperty.g.cs index 87e35b28c09..ca3d0a7acaf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IntegerNumberProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IntegerNumberProperty.g.cs @@ -63,10 +63,6 @@ public sealed partial class IntegerNumberProperty : IProperty [JsonPropertyName("index")] public bool? Index { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("meta")] public Dictionary? Meta { get; set; } @@ -133,8 +129,6 @@ public IntegerNumberPropertyDescriptor() : base() private bool? IndexValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private int? NullValueValue { get; set; } @@ -221,12 +215,6 @@ public IntegerNumberPropertyDescriptor Index(bool? index = true) return Self; } - public IntegerNumberPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public IntegerNumberPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -352,12 +340,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IndexValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -418,7 +400,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } IntegerNumberProperty IBuildableDescriptor.Build() => new() - { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = ScriptValue, Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; + { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, Meta = MetaValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = ScriptValue, Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; } public sealed partial class IntegerNumberPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -446,8 +428,6 @@ public IntegerNumberPropertyDescriptor() : base() private bool? IndexValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private int? NullValueValue { get; set; } @@ -534,12 +514,6 @@ public IntegerNumberPropertyDescriptor Index(bool? index = true) return Self; } - public IntegerNumberPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public IntegerNumberPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -665,12 +639,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IndexValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -731,5 +699,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } IntegerNumberProperty IBuildableDescriptor.Build() => new() - { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = ScriptValue, Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; + { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, Meta = MetaValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = ScriptValue, Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IntegerRangeProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IntegerRangeProperty.g.cs index eb019446427..38528df7360 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IntegerRangeProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IntegerRangeProperty.g.cs @@ -59,10 +59,6 @@ public sealed partial class IntegerRangeProperty : IProperty [JsonPropertyName("index")] public bool? Index { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("meta")] public Dictionary? Meta { get; set; } @@ -107,8 +103,6 @@ public IntegerRangePropertyDescriptor() : base() private bool? IndexValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } @@ -179,12 +173,6 @@ public IntegerRangePropertyDescriptor Index(bool? index = true) return Self; } - public IntegerRangePropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public IntegerRangePropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -274,12 +262,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IndexValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -310,7 +292,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } IntegerRangeProperty IBuildableDescriptor.Build() => new() - { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; + { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; } public sealed partial class IntegerRangePropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -336,8 +318,6 @@ public IntegerRangePropertyDescriptor() : base() private bool? IndexValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } @@ -408,12 +388,6 @@ public IntegerRangePropertyDescriptor Index(bool? index = true) return Self; } - public IntegerRangePropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public IntegerRangePropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -503,12 +477,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IndexValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -539,5 +507,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } IntegerRangeProperty IBuildableDescriptor.Build() => new() - { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; + { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IpProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IpProperty.g.cs index a88d9af2dea..5f6e0252340 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IpProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IpProperty.g.cs @@ -59,10 +59,6 @@ public sealed partial class IpProperty : IProperty [JsonPropertyName("index")] public bool? Index { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("meta")] public Dictionary? Meta { get; set; } @@ -123,8 +119,6 @@ public IpPropertyDescriptor() : base() private bool? IndexValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private string? NullValueValue { get; set; } @@ -203,12 +197,6 @@ public IpPropertyDescriptor Index(bool? index = true) return Self; } - public IpPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public IpPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -322,12 +310,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IndexValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -382,7 +364,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } IpProperty IBuildableDescriptor.Build() => new() - { Boost = BoostValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = ScriptValue, Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue }; + { Boost = BoostValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, Meta = MetaValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = ScriptValue, Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue }; } public sealed partial class IpPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -408,8 +390,6 @@ public IpPropertyDescriptor() : base() private bool? IndexValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private string? NullValueValue { get; set; } @@ -488,12 +468,6 @@ public IpPropertyDescriptor Index(bool? index = true) return Self; } - public IpPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public IpPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -607,12 +581,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IndexValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -667,5 +635,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } IpProperty IBuildableDescriptor.Build() => new() - { Boost = BoostValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = ScriptValue, Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue }; + { Boost = BoostValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, Meta = MetaValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = ScriptValue, Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IpRangeProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IpRangeProperty.g.cs index a7c1d9845be..4dc8a02dc10 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IpRangeProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IpRangeProperty.g.cs @@ -59,10 +59,6 @@ public sealed partial class IpRangeProperty : IProperty [JsonPropertyName("index")] public bool? Index { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("meta")] public Dictionary? Meta { get; set; } @@ -107,8 +103,6 @@ public IpRangePropertyDescriptor() : base() private bool? IndexValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } @@ -179,12 +173,6 @@ public IpRangePropertyDescriptor Index(bool? index = true) return Self; } - public IpRangePropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public IpRangePropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -274,12 +262,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IndexValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -310,7 +292,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } IpRangeProperty IBuildableDescriptor.Build() => new() - { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; + { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; } public sealed partial class IpRangePropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -336,8 +318,6 @@ public IpRangePropertyDescriptor() : base() private bool? IndexValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } @@ -408,12 +388,6 @@ public IpRangePropertyDescriptor Index(bool? index = true) return Self; } - public IpRangePropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public IpRangePropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -503,12 +477,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IndexValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -539,5 +507,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } IpRangeProperty IBuildableDescriptor.Build() => new() - { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; + { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/JoinProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/JoinProperty.g.cs index d2201a7f80c..2c8b9c80691 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/JoinProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/JoinProperty.g.cs @@ -43,10 +43,6 @@ public sealed partial class JoinProperty : IProperty [JsonPropertyName("ignore_above")] public int? IgnoreAbove { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("meta")] public Dictionary? Meta { get; set; } @@ -79,8 +75,6 @@ public JoinPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } @@ -125,12 +119,6 @@ public JoinPropertyDescriptor IgnoreAbove(int? ignoreAbove) return Self; } - public JoinPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public JoinPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -190,12 +178,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(IgnoreAboveValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -220,7 +202,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } JoinProperty IBuildableDescriptor.Build() => new() - { Dynamic = DynamicValue, EagerGlobalOrdinals = EagerGlobalOrdinalsValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Properties = PropertiesValue, Relations = RelationsValue }; + { Dynamic = DynamicValue, EagerGlobalOrdinals = EagerGlobalOrdinalsValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, Properties = PropertiesValue, Relations = RelationsValue }; } public sealed partial class JoinPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -238,8 +220,6 @@ public JoinPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } @@ -284,12 +264,6 @@ public JoinPropertyDescriptor IgnoreAbove(int? ignoreAbove) return Self; } - public JoinPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public JoinPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -349,12 +323,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(IgnoreAboveValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -379,5 +347,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } JoinProperty IBuildableDescriptor.Build() => new() - { Dynamic = DynamicValue, EagerGlobalOrdinals = EagerGlobalOrdinalsValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Properties = PropertiesValue, Relations = RelationsValue }; + { Dynamic = DynamicValue, EagerGlobalOrdinals = EagerGlobalOrdinalsValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, Properties = PropertiesValue, Relations = RelationsValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/KeywordProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/KeywordProperty.g.cs index fd65ebcaa31..440a2f7724e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/KeywordProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/KeywordProperty.g.cs @@ -63,10 +63,6 @@ public sealed partial class KeywordProperty : IProperty [JsonPropertyName("index_options")] public Elastic.Clients.Elasticsearch.Mapping.IndexOptions? IndexOptions { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("meta")] public Dictionary? Meta { get; set; } @@ -133,8 +129,6 @@ public KeywordPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Mapping.IndexOptions? IndexOptionsValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private string? NormalizerValue { get; set; } @@ -221,12 +215,6 @@ public KeywordPropertyDescriptor IndexOptions(Elastic.Clients.Elastic return Self; } - public KeywordPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public KeywordPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -352,12 +340,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, IndexOptionsValue, options); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -418,7 +400,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } KeywordProperty IBuildableDescriptor.Build() => new() - { Boost = BoostValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, EagerGlobalOrdinals = EagerGlobalOrdinalsValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, IndexOptions = IndexOptionsValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Normalizer = NormalizerValue, Norms = NormsValue, NullValue = NullValueValue, Properties = PropertiesValue, Similarity = SimilarityValue, SplitQueriesOnWhitespace = SplitQueriesOnWhitespaceValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue }; + { Boost = BoostValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, EagerGlobalOrdinals = EagerGlobalOrdinalsValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, IndexOptions = IndexOptionsValue, Meta = MetaValue, Normalizer = NormalizerValue, Norms = NormsValue, NullValue = NullValueValue, Properties = PropertiesValue, Similarity = SimilarityValue, SplitQueriesOnWhitespace = SplitQueriesOnWhitespaceValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue }; } public sealed partial class KeywordPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -446,8 +428,6 @@ public KeywordPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Mapping.IndexOptions? IndexOptionsValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private string? NormalizerValue { get; set; } @@ -534,12 +514,6 @@ public KeywordPropertyDescriptor IndexOptions(Elastic.Clients.Elasticsearch.Mapp return Self; } - public KeywordPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public KeywordPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -665,12 +639,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, IndexOptionsValue, options); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -731,5 +699,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } KeywordProperty IBuildableDescriptor.Build() => new() - { Boost = BoostValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, EagerGlobalOrdinals = EagerGlobalOrdinalsValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, IndexOptions = IndexOptionsValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Normalizer = NormalizerValue, Norms = NormsValue, NullValue = NullValueValue, Properties = PropertiesValue, Similarity = SimilarityValue, SplitQueriesOnWhitespace = SplitQueriesOnWhitespaceValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue }; + { Boost = BoostValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, EagerGlobalOrdinals = EagerGlobalOrdinalsValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, IndexOptions = IndexOptionsValue, Meta = MetaValue, Normalizer = NormalizerValue, Norms = NormsValue, NullValue = NullValueValue, Properties = PropertiesValue, Similarity = SimilarityValue, SplitQueriesOnWhitespace = SplitQueriesOnWhitespaceValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/LongNumberProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/LongNumberProperty.g.cs index 833b3220a7b..6326662ae6f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/LongNumberProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/LongNumberProperty.g.cs @@ -63,10 +63,6 @@ public sealed partial class LongNumberProperty : IProperty [JsonPropertyName("index")] public bool? Index { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("meta")] public Dictionary? Meta { get; set; } @@ -133,8 +129,6 @@ public LongNumberPropertyDescriptor() : base() private bool? IndexValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private long? NullValueValue { get; set; } @@ -221,12 +215,6 @@ public LongNumberPropertyDescriptor Index(bool? index = true) return Self; } - public LongNumberPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public LongNumberPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -352,12 +340,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IndexValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -418,7 +400,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } LongNumberProperty IBuildableDescriptor.Build() => new() - { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = ScriptValue, Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; + { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, Meta = MetaValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = ScriptValue, Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; } public sealed partial class LongNumberPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -446,8 +428,6 @@ public LongNumberPropertyDescriptor() : base() private bool? IndexValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private long? NullValueValue { get; set; } @@ -534,12 +514,6 @@ public LongNumberPropertyDescriptor Index(bool? index = true) return Self; } - public LongNumberPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public LongNumberPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -665,12 +639,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IndexValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -731,5 +699,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } LongNumberProperty IBuildableDescriptor.Build() => new() - { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = ScriptValue, Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; + { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, Meta = MetaValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = ScriptValue, Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/LongRangeProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/LongRangeProperty.g.cs index 602626a789f..1c74ef16b93 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/LongRangeProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/LongRangeProperty.g.cs @@ -59,10 +59,6 @@ public sealed partial class LongRangeProperty : IProperty [JsonPropertyName("index")] public bool? Index { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("meta")] public Dictionary? Meta { get; set; } @@ -107,8 +103,6 @@ public LongRangePropertyDescriptor() : base() private bool? IndexValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } @@ -179,12 +173,6 @@ public LongRangePropertyDescriptor Index(bool? index = true) return Self; } - public LongRangePropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public LongRangePropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -274,12 +262,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IndexValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -310,7 +292,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } LongRangeProperty IBuildableDescriptor.Build() => new() - { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; + { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; } public sealed partial class LongRangePropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -336,8 +318,6 @@ public LongRangePropertyDescriptor() : base() private bool? IndexValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } @@ -408,12 +388,6 @@ public LongRangePropertyDescriptor Index(bool? index = true) return Self; } - public LongRangePropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public LongRangePropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -503,12 +477,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IndexValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -539,5 +507,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } LongRangeProperty IBuildableDescriptor.Build() => new() - { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; + { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/Murmur3HashProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/Murmur3HashProperty.g.cs index 1fca170d592..4cc4965e476 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/Murmur3HashProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/Murmur3HashProperty.g.cs @@ -47,10 +47,6 @@ public sealed partial class Murmur3HashProperty : IProperty [JsonPropertyName("ignore_above")] public int? IgnoreAbove { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("meta")] public Dictionary? Meta { get; set; } @@ -89,8 +85,6 @@ public Murmur3HashPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } @@ -143,12 +137,6 @@ public Murmur3HashPropertyDescriptor IgnoreAbove(int? ignoreAbove) return Self; } - public Murmur3HashPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public Murmur3HashPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -220,12 +208,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(IgnoreAboveValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -256,7 +238,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } Murmur3HashProperty IBuildableDescriptor.Build() => new() - { CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; + { CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; } public sealed partial class Murmur3HashPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -276,8 +258,6 @@ public Murmur3HashPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } @@ -330,12 +310,6 @@ public Murmur3HashPropertyDescriptor IgnoreAbove(int? ignoreAbove) return Self; } - public Murmur3HashPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public Murmur3HashPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -407,12 +381,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(IgnoreAboveValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -443,5 +411,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } Murmur3HashProperty IBuildableDescriptor.Build() => new() - { CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; + { CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/NestedProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/NestedProperty.g.cs index 8b6063e49e9..797bc57908b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/NestedProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/NestedProperty.g.cs @@ -55,10 +55,6 @@ public sealed partial class NestedProperty : IProperty [JsonPropertyName("include_in_root")] public bool? IncludeInRoot { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("meta")] public Dictionary? Meta { get; set; } @@ -101,8 +97,6 @@ public NestedPropertyDescriptor() : base() private bool? IncludeInRootValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } @@ -167,12 +161,6 @@ public NestedPropertyDescriptor IncludeInRoot(bool? includeInRoot = t return Self; } - public NestedPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public NestedPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -256,12 +244,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IncludeInRootValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -292,7 +274,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } NestedProperty IBuildableDescriptor.Build() => new() - { CopyTo = CopyToValue, Dynamic = DynamicValue, Enabled = EnabledValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IncludeInParent = IncludeInParentValue, IncludeInRoot = IncludeInRootValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; + { CopyTo = CopyToValue, Dynamic = DynamicValue, Enabled = EnabledValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IncludeInParent = IncludeInParentValue, IncludeInRoot = IncludeInRootValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; } public sealed partial class NestedPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -316,8 +298,6 @@ public NestedPropertyDescriptor() : base() private bool? IncludeInRootValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } @@ -382,12 +362,6 @@ public NestedPropertyDescriptor IncludeInRoot(bool? includeInRoot = true) return Self; } - public NestedPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public NestedPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -471,12 +445,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IncludeInRootValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -507,5 +475,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } NestedProperty IBuildableDescriptor.Build() => new() - { CopyTo = CopyToValue, Dynamic = DynamicValue, Enabled = EnabledValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IncludeInParent = IncludeInParentValue, IncludeInRoot = IncludeInRootValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; + { CopyTo = CopyToValue, Dynamic = DynamicValue, Enabled = EnabledValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IncludeInParent = IncludeInParentValue, IncludeInRoot = IncludeInRootValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ObjectProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ObjectProperty.g.cs index 23c6610f60a..d46b0ff2fc6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ObjectProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ObjectProperty.g.cs @@ -47,10 +47,6 @@ public sealed partial class ObjectProperty : IProperty [JsonPropertyName("ignore_above")] public int? IgnoreAbove { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("meta")] public Dictionary? Meta { get; set; } @@ -89,8 +85,6 @@ public ObjectPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } @@ -143,12 +137,6 @@ public ObjectPropertyDescriptor IgnoreAbove(int? ignoreAbove) return Self; } - public ObjectPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public ObjectPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -220,12 +208,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(IgnoreAboveValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -256,7 +238,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } ObjectProperty IBuildableDescriptor.Build() => new() - { CopyTo = CopyToValue, Dynamic = DynamicValue, Enabled = EnabledValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; + { CopyTo = CopyToValue, Dynamic = DynamicValue, Enabled = EnabledValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; } public sealed partial class ObjectPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -276,8 +258,6 @@ public ObjectPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } @@ -330,12 +310,6 @@ public ObjectPropertyDescriptor IgnoreAbove(int? ignoreAbove) return Self; } - public ObjectPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public ObjectPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -407,12 +381,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(IgnoreAboveValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -443,5 +411,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } ObjectProperty IBuildableDescriptor.Build() => new() - { CopyTo = CopyToValue, Dynamic = DynamicValue, Enabled = EnabledValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; + { CopyTo = CopyToValue, Dynamic = DynamicValue, Enabled = EnabledValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/PercolatorProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/PercolatorProperty.g.cs index 84d237db3f2..1784bda9c73 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/PercolatorProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/PercolatorProperty.g.cs @@ -39,10 +39,6 @@ public sealed partial class PercolatorProperty : IProperty [JsonPropertyName("ignore_above")] public int? IgnoreAbove { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("meta")] public Dictionary? Meta { get; set; } @@ -69,8 +65,6 @@ public PercolatorPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } @@ -107,12 +101,6 @@ public PercolatorPropertyDescriptor IgnoreAbove(int? ignoreAbove) return Self; } - public PercolatorPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public PercolatorPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -160,12 +148,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(IgnoreAboveValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -184,7 +166,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } PercolatorProperty IBuildableDescriptor.Build() => new() - { Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Properties = PropertiesValue }; + { Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, Properties = PropertiesValue }; } public sealed partial class PercolatorPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -200,8 +182,6 @@ public PercolatorPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } @@ -238,12 +218,6 @@ public PercolatorPropertyDescriptor IgnoreAbove(int? ignoreAbove) return Self; } - public PercolatorPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public PercolatorPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -291,12 +265,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(IgnoreAboveValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -315,5 +283,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } PercolatorProperty IBuildableDescriptor.Build() => new() - { Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Properties = PropertiesValue }; + { Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, Properties = PropertiesValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/PointProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/PointProperty.g.cs index e1563422c4e..f49913e0c01 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/PointProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/PointProperty.g.cs @@ -55,10 +55,6 @@ public sealed partial class PointProperty : IProperty [JsonPropertyName("ignore_z_value")] public bool? IgnoreZValue { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("meta")] public Dictionary? Meta { get; set; } @@ -105,8 +101,6 @@ public PointPropertyDescriptor() : base() private bool? IgnoreZValueValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private string? NullValueValue { get; set; } @@ -173,12 +167,6 @@ public PointPropertyDescriptor IgnoreZValue(bool? ignoreZValue = true return Self; } - public PointPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public PointPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -268,12 +256,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IgnoreZValueValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -310,7 +292,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } PointProperty IBuildableDescriptor.Build() => new() - { CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, IgnoreZValue = IgnoreZValueValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, NullValue = NullValueValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; + { CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, IgnoreZValue = IgnoreZValueValue, Meta = MetaValue, NullValue = NullValueValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; } public sealed partial class PointPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -334,8 +316,6 @@ public PointPropertyDescriptor() : base() private bool? IgnoreZValueValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private string? NullValueValue { get; set; } @@ -402,12 +382,6 @@ public PointPropertyDescriptor IgnoreZValue(bool? ignoreZValue = true) return Self; } - public PointPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public PointPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -497,12 +471,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IgnoreZValueValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -539,5 +507,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } PointProperty IBuildableDescriptor.Build() => new() - { CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, IgnoreZValue = IgnoreZValueValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, NullValue = NullValueValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; + { CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, IgnoreZValue = IgnoreZValueValue, Meta = MetaValue, NullValue = NullValueValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/RankFeatureProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/RankFeatureProperty.g.cs index 2900fa3259d..f4e1a3988d1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/RankFeatureProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/RankFeatureProperty.g.cs @@ -39,10 +39,6 @@ public sealed partial class RankFeatureProperty : IProperty [JsonPropertyName("ignore_above")] public int? IgnoreAbove { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("meta")] public Dictionary? Meta { get; set; } @@ -73,8 +69,6 @@ public RankFeaturePropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private bool? PositiveScoreImpactValue { get; set; } @@ -113,12 +107,6 @@ public RankFeaturePropertyDescriptor IgnoreAbove(int? ignoreAbove) return Self; } - public RankFeaturePropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public RankFeaturePropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -172,12 +160,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(IgnoreAboveValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -202,7 +184,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } RankFeatureProperty IBuildableDescriptor.Build() => new() - { Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, PositiveScoreImpact = PositiveScoreImpactValue, Properties = PropertiesValue }; + { Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, PositiveScoreImpact = PositiveScoreImpactValue, Properties = PropertiesValue }; } public sealed partial class RankFeaturePropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -218,8 +200,6 @@ public RankFeaturePropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private bool? PositiveScoreImpactValue { get; set; } @@ -258,12 +238,6 @@ public RankFeaturePropertyDescriptor IgnoreAbove(int? ignoreAbove) return Self; } - public RankFeaturePropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public RankFeaturePropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -317,12 +291,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(IgnoreAboveValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -347,5 +315,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } RankFeatureProperty IBuildableDescriptor.Build() => new() - { Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, PositiveScoreImpact = PositiveScoreImpactValue, Properties = PropertiesValue }; + { Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, PositiveScoreImpact = PositiveScoreImpactValue, Properties = PropertiesValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/RankFeaturesProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/RankFeaturesProperty.g.cs index d3462e76fc4..9b6f03b178d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/RankFeaturesProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/RankFeaturesProperty.g.cs @@ -39,10 +39,6 @@ public sealed partial class RankFeaturesProperty : IProperty [JsonPropertyName("ignore_above")] public int? IgnoreAbove { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("meta")] public Dictionary? Meta { get; set; } @@ -69,8 +65,6 @@ public RankFeaturesPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } @@ -107,12 +101,6 @@ public RankFeaturesPropertyDescriptor IgnoreAbove(int? ignoreAbove) return Self; } - public RankFeaturesPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public RankFeaturesPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -160,12 +148,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(IgnoreAboveValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -184,7 +166,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } RankFeaturesProperty IBuildableDescriptor.Build() => new() - { Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Properties = PropertiesValue }; + { Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, Properties = PropertiesValue }; } public sealed partial class RankFeaturesPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -200,8 +182,6 @@ public RankFeaturesPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } @@ -238,12 +218,6 @@ public RankFeaturesPropertyDescriptor IgnoreAbove(int? ignoreAbove) return Self; } - public RankFeaturesPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public RankFeaturesPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -291,12 +265,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(IgnoreAboveValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -315,5 +283,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } RankFeaturesProperty IBuildableDescriptor.Build() => new() - { Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Properties = PropertiesValue }; + { Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, Properties = PropertiesValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ScaledFloatNumberProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ScaledFloatNumberProperty.g.cs index 7dbff114939..d5287d3e253 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ScaledFloatNumberProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ScaledFloatNumberProperty.g.cs @@ -63,10 +63,6 @@ public sealed partial class ScaledFloatNumberProperty : IProperty [JsonPropertyName("index")] public bool? Index { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("meta")] public Dictionary? Meta { get; set; } @@ -137,8 +133,6 @@ public ScaledFloatNumberPropertyDescriptor() : base() private bool? IndexValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private double? NullValueValue { get; set; } @@ -227,12 +221,6 @@ public ScaledFloatNumberPropertyDescriptor Index(bool? index = true) return Self; } - public ScaledFloatNumberPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public ScaledFloatNumberPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -364,12 +352,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IndexValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -436,7 +418,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } ScaledFloatNumberProperty IBuildableDescriptor.Build() => new() - { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, ScalingFactor = ScalingFactorValue, Script = ScriptValue, Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; + { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, Meta = MetaValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, ScalingFactor = ScalingFactorValue, Script = ScriptValue, Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; } public sealed partial class ScaledFloatNumberPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -464,8 +446,6 @@ public ScaledFloatNumberPropertyDescriptor() : base() private bool? IndexValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private double? NullValueValue { get; set; } @@ -554,12 +534,6 @@ public ScaledFloatNumberPropertyDescriptor Index(bool? index = true) return Self; } - public ScaledFloatNumberPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public ScaledFloatNumberPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -691,12 +665,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IndexValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -763,5 +731,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } ScaledFloatNumberProperty IBuildableDescriptor.Build() => new() - { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, ScalingFactor = ScalingFactorValue, Script = ScriptValue, Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; + { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, Meta = MetaValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, ScalingFactor = ScalingFactorValue, Script = ScriptValue, Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SearchAsYouTypeProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SearchAsYouTypeProperty.g.cs index d8677781ec4..669e703b7fc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SearchAsYouTypeProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SearchAsYouTypeProperty.g.cs @@ -55,10 +55,6 @@ public sealed partial class SearchAsYouTypeProperty : IProperty [JsonPropertyName("index_options")] public Elastic.Clients.Elasticsearch.Mapping.IndexOptions? IndexOptions { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("max_shingle_size")] public int? MaxShingleSize { get; set; } @@ -121,8 +117,6 @@ public SearchAsYouTypePropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Mapping.IndexOptions? IndexOptionsValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private int? MaxShingleSizeValue { get; set; } private Dictionary? MetaValue { get; set; } @@ -197,12 +191,6 @@ public SearchAsYouTypePropertyDescriptor IndexOptions(Elastic.Clients return Self; } - public SearchAsYouTypePropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public SearchAsYouTypePropertyDescriptor MaxShingleSize(int? maxShingleSize) { MaxShingleSizeValue = maxShingleSize; @@ -316,12 +304,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, IndexOptionsValue, options); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MaxShingleSizeValue.HasValue) { writer.WritePropertyName("max_shingle_size"); @@ -382,7 +364,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } SearchAsYouTypeProperty IBuildableDescriptor.Build() => new() - { Analyzer = AnalyzerValue, CopyTo = CopyToValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, IndexOptions = IndexOptionsValue, LocalMetadata = LocalMetadataValue, MaxShingleSize = MaxShingleSizeValue, Meta = MetaValue, Norms = NormsValue, Properties = PropertiesValue, SearchAnalyzer = SearchAnalyzerValue, SearchQuoteAnalyzer = SearchQuoteAnalyzerValue, Similarity = SimilarityValue, Store = StoreValue, TermVector = TermVectorValue }; + { Analyzer = AnalyzerValue, CopyTo = CopyToValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, IndexOptions = IndexOptionsValue, MaxShingleSize = MaxShingleSizeValue, Meta = MetaValue, Norms = NormsValue, Properties = PropertiesValue, SearchAnalyzer = SearchAnalyzerValue, SearchQuoteAnalyzer = SearchQuoteAnalyzerValue, Similarity = SimilarityValue, Store = StoreValue, TermVector = TermVectorValue }; } public sealed partial class SearchAsYouTypePropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -406,8 +388,6 @@ public SearchAsYouTypePropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Mapping.IndexOptions? IndexOptionsValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private int? MaxShingleSizeValue { get; set; } private Dictionary? MetaValue { get; set; } @@ -482,12 +462,6 @@ public SearchAsYouTypePropertyDescriptor IndexOptions(Elastic.Clients.Elasticsea return Self; } - public SearchAsYouTypePropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public SearchAsYouTypePropertyDescriptor MaxShingleSize(int? maxShingleSize) { MaxShingleSizeValue = maxShingleSize; @@ -601,12 +575,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, IndexOptionsValue, options); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MaxShingleSizeValue.HasValue) { writer.WritePropertyName("max_shingle_size"); @@ -667,5 +635,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } SearchAsYouTypeProperty IBuildableDescriptor.Build() => new() - { Analyzer = AnalyzerValue, CopyTo = CopyToValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, IndexOptions = IndexOptionsValue, LocalMetadata = LocalMetadataValue, MaxShingleSize = MaxShingleSizeValue, Meta = MetaValue, Norms = NormsValue, Properties = PropertiesValue, SearchAnalyzer = SearchAnalyzerValue, SearchQuoteAnalyzer = SearchQuoteAnalyzerValue, Similarity = SimilarityValue, Store = StoreValue, TermVector = TermVectorValue }; + { Analyzer = AnalyzerValue, CopyTo = CopyToValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, IndexOptions = IndexOptionsValue, MaxShingleSize = MaxShingleSizeValue, Meta = MetaValue, Norms = NormsValue, Properties = PropertiesValue, SearchAnalyzer = SearchAnalyzerValue, SearchQuoteAnalyzer = SearchQuoteAnalyzerValue, Similarity = SimilarityValue, Store = StoreValue, TermVector = TermVectorValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ShapeProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ShapeProperty.g.cs index 24f48b73f9c..fea8d24ec3e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ShapeProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ShapeProperty.g.cs @@ -59,10 +59,6 @@ public sealed partial class ShapeProperty : IProperty [JsonPropertyName("ignore_z_value")] public bool? IgnoreZValue { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("meta")] public Dictionary? Meta { get; set; } @@ -111,8 +107,6 @@ public ShapePropertyDescriptor() : base() private bool? IgnoreZValueValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.GeoOrientation? OrientationValue { get; set; } @@ -185,12 +179,6 @@ public ShapePropertyDescriptor IgnoreZValue(bool? ignoreZValue = true return Self; } - public ShapePropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public ShapePropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -286,12 +274,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IgnoreZValueValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -328,7 +310,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } ShapeProperty IBuildableDescriptor.Build() => new() - { Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, IgnoreZValue = IgnoreZValueValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Orientation = OrientationValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; + { Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, IgnoreZValue = IgnoreZValueValue, Meta = MetaValue, Orientation = OrientationValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; } public sealed partial class ShapePropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -354,8 +336,6 @@ public ShapePropertyDescriptor() : base() private bool? IgnoreZValueValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.GeoOrientation? OrientationValue { get; set; } @@ -428,12 +408,6 @@ public ShapePropertyDescriptor IgnoreZValue(bool? ignoreZValue = true) return Self; } - public ShapePropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public ShapePropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -529,12 +503,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IgnoreZValueValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -571,5 +539,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } ShapeProperty IBuildableDescriptor.Build() => new() - { Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, IgnoreZValue = IgnoreZValueValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Orientation = OrientationValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; + { Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, IgnoreZValue = IgnoreZValueValue, Meta = MetaValue, Orientation = OrientationValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ShortNumberProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ShortNumberProperty.g.cs index 99bf52c7622..282629a72ca 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ShortNumberProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ShortNumberProperty.g.cs @@ -63,10 +63,6 @@ public sealed partial class ShortNumberProperty : IProperty [JsonPropertyName("index")] public bool? Index { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("meta")] public Dictionary? Meta { get; set; } @@ -133,8 +129,6 @@ public ShortNumberPropertyDescriptor() : base() private bool? IndexValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private double? NullValueValue { get; set; } @@ -221,12 +215,6 @@ public ShortNumberPropertyDescriptor Index(bool? index = true) return Self; } - public ShortNumberPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public ShortNumberPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -352,12 +340,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IndexValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -418,7 +400,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } ShortNumberProperty IBuildableDescriptor.Build() => new() - { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = ScriptValue, Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; + { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, Meta = MetaValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = ScriptValue, Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; } public sealed partial class ShortNumberPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -446,8 +428,6 @@ public ShortNumberPropertyDescriptor() : base() private bool? IndexValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private double? NullValueValue { get; set; } @@ -534,12 +514,6 @@ public ShortNumberPropertyDescriptor Index(bool? index = true) return Self; } - public ShortNumberPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public ShortNumberPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -665,12 +639,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IndexValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -731,5 +699,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } ShortNumberProperty IBuildableDescriptor.Build() => new() - { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = ScriptValue, Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; + { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, Meta = MetaValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = ScriptValue, Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/TextProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/TextProperty.g.cs index 303c8b4dde5..28b61f73597 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/TextProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/TextProperty.g.cs @@ -79,10 +79,6 @@ public sealed partial class TextProperty : IProperty [JsonPropertyName("index_prefixes")] public Elastic.Clients.Elasticsearch.Mapping.TextIndexPrefixes? IndexPrefixes { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("meta")] public Dictionary? Meta { get; set; } @@ -165,8 +161,6 @@ public TextPropertyDescriptor() : base() private Action IndexPrefixesDescriptorAction { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private bool? NormsValue { get; set; } @@ -313,12 +307,6 @@ public TextPropertyDescriptor IndexPrefixes(Action LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public TextPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -488,12 +476,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, IndexPrefixesValue, options); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -602,7 +584,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } TextProperty IBuildableDescriptor.Build() => new() - { Analyzer = AnalyzerValue, Boost = BoostValue, CopyTo = CopyToValue, Dynamic = DynamicValue, EagerGlobalOrdinals = EagerGlobalOrdinalsValue, Fielddata = FielddataValue, FielddataFrequencyFilter = BuildFielddataFrequencyFilter(), Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, IndexOptions = IndexOptionsValue, IndexPhrases = IndexPhrasesValue, IndexPrefixes = BuildIndexPrefixes(), LocalMetadata = LocalMetadataValue, Meta = MetaValue, Norms = NormsValue, PositionIncrementGap = PositionIncrementGapValue, Properties = PropertiesValue, SearchAnalyzer = SearchAnalyzerValue, SearchQuoteAnalyzer = SearchQuoteAnalyzerValue, Similarity = SimilarityValue, Store = StoreValue, TermVector = TermVectorValue }; + { Analyzer = AnalyzerValue, Boost = BoostValue, CopyTo = CopyToValue, Dynamic = DynamicValue, EagerGlobalOrdinals = EagerGlobalOrdinalsValue, Fielddata = FielddataValue, FielddataFrequencyFilter = BuildFielddataFrequencyFilter(), Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, IndexOptions = IndexOptionsValue, IndexPhrases = IndexPhrasesValue, IndexPrefixes = BuildIndexPrefixes(), Meta = MetaValue, Norms = NormsValue, PositionIncrementGap = PositionIncrementGapValue, Properties = PropertiesValue, SearchAnalyzer = SearchAnalyzerValue, SearchQuoteAnalyzer = SearchQuoteAnalyzerValue, Similarity = SimilarityValue, Store = StoreValue, TermVector = TermVectorValue }; } public sealed partial class TextPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -646,8 +628,6 @@ public TextPropertyDescriptor() : base() private Action IndexPrefixesDescriptorAction { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private bool? NormsValue { get; set; } @@ -794,12 +774,6 @@ public TextPropertyDescriptor IndexPrefixes(Action return Self; } - public TextPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public TextPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -969,12 +943,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, IndexPrefixesValue, options); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -1083,5 +1051,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } TextProperty IBuildableDescriptor.Build() => new() - { Analyzer = AnalyzerValue, Boost = BoostValue, CopyTo = CopyToValue, Dynamic = DynamicValue, EagerGlobalOrdinals = EagerGlobalOrdinalsValue, Fielddata = FielddataValue, FielddataFrequencyFilter = BuildFielddataFrequencyFilter(), Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, IndexOptions = IndexOptionsValue, IndexPhrases = IndexPhrasesValue, IndexPrefixes = BuildIndexPrefixes(), LocalMetadata = LocalMetadataValue, Meta = MetaValue, Norms = NormsValue, PositionIncrementGap = PositionIncrementGapValue, Properties = PropertiesValue, SearchAnalyzer = SearchAnalyzerValue, SearchQuoteAnalyzer = SearchQuoteAnalyzerValue, Similarity = SimilarityValue, Store = StoreValue, TermVector = TermVectorValue }; + { Analyzer = AnalyzerValue, Boost = BoostValue, CopyTo = CopyToValue, Dynamic = DynamicValue, EagerGlobalOrdinals = EagerGlobalOrdinalsValue, Fielddata = FielddataValue, FielddataFrequencyFilter = BuildFielddataFrequencyFilter(), Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, IndexOptions = IndexOptionsValue, IndexPhrases = IndexPhrasesValue, IndexPrefixes = BuildIndexPrefixes(), Meta = MetaValue, Norms = NormsValue, PositionIncrementGap = PositionIncrementGapValue, Properties = PropertiesValue, SearchAnalyzer = SearchAnalyzerValue, SearchQuoteAnalyzer = SearchQuoteAnalyzerValue, Similarity = SimilarityValue, Store = StoreValue, TermVector = TermVectorValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/TokenCountProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/TokenCountProperty.g.cs index 5c08ef7e464..09fc1b3c844 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/TokenCountProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/TokenCountProperty.g.cs @@ -63,10 +63,6 @@ public sealed partial class TokenCountProperty : IProperty [JsonPropertyName("index")] public bool? Index { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("meta")] public Dictionary? Meta { get; set; } @@ -117,8 +113,6 @@ public TokenCountPropertyDescriptor() : base() private bool? IndexValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private double? NullValueValue { get; set; } @@ -197,12 +191,6 @@ public TokenCountPropertyDescriptor Index(bool? index = true) return Self; } - public TokenCountPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public TokenCountPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -304,12 +292,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IndexValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -346,7 +328,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } TokenCountProperty IBuildableDescriptor.Build() => new() - { Analyzer = AnalyzerValue, Boost = BoostValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, EnablePositionIncrements = EnablePositionIncrementsValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, NullValue = NullValueValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; + { Analyzer = AnalyzerValue, Boost = BoostValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, EnablePositionIncrements = EnablePositionIncrementsValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, Meta = MetaValue, NullValue = NullValueValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; } public sealed partial class TokenCountPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -374,8 +356,6 @@ public TokenCountPropertyDescriptor() : base() private bool? IndexValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private double? NullValueValue { get; set; } @@ -454,12 +434,6 @@ public TokenCountPropertyDescriptor Index(bool? index = true) return Self; } - public TokenCountPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public TokenCountPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -561,12 +535,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IndexValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -603,5 +571,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } TokenCountProperty IBuildableDescriptor.Build() => new() - { Analyzer = AnalyzerValue, Boost = BoostValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, EnablePositionIncrements = EnablePositionIncrementsValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, NullValue = NullValueValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; + { Analyzer = AnalyzerValue, Boost = BoostValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, EnablePositionIncrements = EnablePositionIncrementsValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Index = IndexValue, Meta = MetaValue, NullValue = NullValueValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/UnsignedLongNumberProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/UnsignedLongNumberProperty.g.cs index 970c7d30b05..66fa179c0c1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/UnsignedLongNumberProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/UnsignedLongNumberProperty.g.cs @@ -63,10 +63,6 @@ public sealed partial class UnsignedLongNumberProperty : IProperty [JsonPropertyName("index")] public bool? Index { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("meta")] public Dictionary? Meta { get; set; } @@ -133,8 +129,6 @@ public UnsignedLongNumberPropertyDescriptor() : base() private bool? IndexValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private long? NullValueValue { get; set; } @@ -221,12 +215,6 @@ public UnsignedLongNumberPropertyDescriptor Index(bool? index = true) return Self; } - public UnsignedLongNumberPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public UnsignedLongNumberPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -352,12 +340,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IndexValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -418,7 +400,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } UnsignedLongNumberProperty IBuildableDescriptor.Build() => new() - { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = ScriptValue, Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; + { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, Meta = MetaValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = ScriptValue, Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; } public sealed partial class UnsignedLongNumberPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -446,8 +428,6 @@ public UnsignedLongNumberPropertyDescriptor() : base() private bool? IndexValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private long? NullValueValue { get; set; } @@ -534,12 +514,6 @@ public UnsignedLongNumberPropertyDescriptor Index(bool? index = true) return Self; } - public UnsignedLongNumberPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public UnsignedLongNumberPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -665,12 +639,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IndexValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -731,5 +699,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } UnsignedLongNumberProperty IBuildableDescriptor.Build() => new() - { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = ScriptValue, Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; + { Boost = BoostValue, Coerce = CoerceValue, CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, Meta = MetaValue, NullValue = NullValueValue, OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = ScriptValue, Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/VersionProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/VersionProperty.g.cs index f1448a21d70..10d9ed74a44 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/VersionProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/VersionProperty.g.cs @@ -47,10 +47,6 @@ public sealed partial class VersionProperty : IProperty [JsonPropertyName("ignore_above")] public int? IgnoreAbove { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("meta")] public Dictionary? Meta { get; set; } @@ -89,8 +85,6 @@ public VersionPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } @@ -143,12 +137,6 @@ public VersionPropertyDescriptor IgnoreAbove(int? ignoreAbove) return Self; } - public VersionPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public VersionPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -220,12 +208,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(IgnoreAboveValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -256,7 +238,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } VersionProperty IBuildableDescriptor.Build() => new() - { CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; + { CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; } public sealed partial class VersionPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -276,8 +258,6 @@ public VersionPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } @@ -330,12 +310,6 @@ public VersionPropertyDescriptor IgnoreAbove(int? ignoreAbove) return Self; } - public VersionPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public VersionPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -407,12 +381,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(IgnoreAboveValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -443,5 +411,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } VersionProperty IBuildableDescriptor.Build() => new() - { CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; + { CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/WildcardProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/WildcardProperty.g.cs index 4ae1366a376..2124c9f449b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/WildcardProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/WildcardProperty.g.cs @@ -47,10 +47,6 @@ public sealed partial class WildcardProperty : IProperty [JsonPropertyName("ignore_above")] public int? IgnoreAbove { get; set; } - [JsonInclude] - [JsonPropertyName("local_metadata")] - public Dictionary? LocalMetadata { get; set; } - [JsonInclude] [JsonPropertyName("meta")] public Dictionary? Meta { get; set; } @@ -93,8 +89,6 @@ public WildcardPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private string? NullValueValue { get; set; } @@ -149,12 +143,6 @@ public WildcardPropertyDescriptor IgnoreAbove(int? ignoreAbove) return Self; } - public WildcardPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public WildcardPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -232,12 +220,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(IgnoreAboveValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -274,7 +256,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } WildcardProperty IBuildableDescriptor.Build() => new() - { CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, NullValue = NullValueValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; + { CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, NullValue = NullValueValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; } public sealed partial class WildcardPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor @@ -294,8 +276,6 @@ public WildcardPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } - private Dictionary? LocalMetadataValue { get; set; } - private Dictionary? MetaValue { get; set; } private string? NullValueValue { get; set; } @@ -350,12 +330,6 @@ public WildcardPropertyDescriptor IgnoreAbove(int? ignoreAbove) return Self; } - public WildcardPropertyDescriptor LocalMetadata(Func, FluentDictionary> selector) - { - LocalMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - public WildcardPropertyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); @@ -433,12 +407,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(IgnoreAboveValue.Value); } - if (LocalMetadataValue is not null) - { - writer.WritePropertyName("local_metadata"); - JsonSerializer.Serialize(writer, LocalMetadataValue, options); - } - if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -475,5 +443,5 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } WildcardProperty IBuildableDescriptor.Build() => new() - { CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, LocalMetadata = LocalMetadataValue, Meta = MetaValue, NullValue = NullValueValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; + { CopyTo = CopyToValue, DocValues = DocValuesValue, Dynamic = DynamicValue, Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, NullValue = NullValueValue, Properties = PropertiesValue, Similarity = SimilarityValue, Store = StoreValue }; } \ No newline at end of file