@@ -7,6 +7,9 @@ namespace Nest
77 /// </summary>
88 public interface IPatternReplaceCharFilter : ICharFilter
99 {
10+ [ DataMember ( Name = "flags" ) ]
11+ string Flags { get ; set ; }
12+
1013 [ DataMember ( Name = "pattern" ) ]
1114 string Pattern { get ; set ; }
1215
@@ -19,6 +22,9 @@ public class PatternReplaceCharFilter : CharFilterBase, IPatternReplaceCharFilte
1922 {
2023 public PatternReplaceCharFilter ( ) : base ( "pattern_replace" ) { }
2124
25+ /// <inheritdoc />
26+ public string Flags { get ; set ; }
27+
2228 /// <inheritdoc />
2329 public string Pattern { get ; set ; }
2430
@@ -31,9 +37,15 @@ public class PatternReplaceCharFilterDescriptor
3137 : CharFilterDescriptorBase < PatternReplaceCharFilterDescriptor , IPatternReplaceCharFilter > , IPatternReplaceCharFilter
3238 {
3339 protected override string Type => "pattern_replace" ;
40+
41+ string IPatternReplaceCharFilter . Flags { get ; set ; }
3442 string IPatternReplaceCharFilter . Pattern { get ; set ; }
3543 string IPatternReplaceCharFilter . Replacement { get ; set ; }
3644
45+ /// <inheritdoc />
46+ public PatternReplaceCharFilterDescriptor Flags ( string flags ) =>
47+ Assign ( flags , ( a , v ) => a . Flags = v ) ;
48+
3749 /// <inheritdoc />
3850 public PatternReplaceCharFilterDescriptor Pattern ( string pattern ) =>
3951 Assign ( pattern , ( a , v ) => a . Pattern = v ) ;
0 commit comments