diff --git a/src/Nest/Ingest/Processors/SplitProcessor.cs b/src/Nest/Ingest/Processors/SplitProcessor.cs index d7be4ed4d2d..05f06cf125e 100644 --- a/src/Nest/Ingest/Processors/SplitProcessor.cs +++ b/src/Nest/Ingest/Processors/SplitProcessor.cs @@ -35,6 +35,14 @@ public interface ISplitProcessor : IProcessor /// [DataMember(Name = "target_field")] Field TargetField { get; set; } + + /// + /// Preserves empty trailing fields, if any. + /// + /// Available in Elasticsearch 7.6.0+. + /// + [DataMember(Name = "preserve_trailing")] + bool? PreserveTrailing { get; set; } } /// @@ -51,6 +59,9 @@ public class SplitProcessor : ProcessorBase, ISplitProcessor /// public Field TargetField { get; set; } + + /// + public bool? PreserveTrailing { get; set; } protected override string Name => "split"; } @@ -65,6 +76,7 @@ public class SplitProcessorDescriptor bool? ISplitProcessor.IgnoreMissing { get; set; } string ISplitProcessor.Separator { get; set; } Field ISplitProcessor.TargetField { get; set; } + bool? ISplitProcessor.PreserveTrailing { get; set; } /// public SplitProcessorDescriptor Field(Field field) => Assign(field, (a, v) => a.Field = v); @@ -85,5 +97,8 @@ public SplitProcessorDescriptor TargetField(Expression> objec /// public SplitProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) => Assign(ignoreMissing, (a, v) => a.IgnoreMissing = v); + + /// + public SplitProcessorDescriptor PreserveTrailing(bool? preserveTrailing = true) => Assign(preserveTrailing, (a, v) => a.PreserveTrailing = v); } }