@@ -50,6 +50,9 @@ public interface IMultiMatchQuery : IQuery
5050 [ JsonProperty ( PropertyName = "tie_breaker" ) ]
5151 double ? TieBreaker { get ; set ; }
5252
53+ [ JsonProperty ( PropertyName = "minimum_should_match" ) ]
54+ string MinimumShouldMatch { get ; set ; }
55+
5356 [ JsonProperty ( PropertyName = "operator" ) ]
5457 [ JsonConverter ( typeof ( StringEnumConverter ) ) ]
5558 Operator ? Operator { get ; set ; }
@@ -78,6 +81,7 @@ protected override void WrapInContainer(IQueryContainer container)
7881 public double ? Boost { get ; set ; }
7982 public bool ? UseDisMax { get ; set ; }
8083 public double ? TieBreaker { get ; set ; }
84+ public string MinimumShouldMatch { get ; set ; }
8185 public Operator ? Operator { get ; set ; }
8286 public IEnumerable < PropertyPathMarker > Fields { get ; set ; }
8387 }
@@ -109,6 +113,8 @@ public class MultiMatchQueryDescriptor<T> : IMultiMatchQuery where T : class
109113
110114 double ? IMultiMatchQuery . TieBreaker { get ; set ; }
111115
116+ string IMultiMatchQuery . MinimumShouldMatch { get ; set ; }
117+
112118 Operator ? IMultiMatchQuery . Operator { get ; set ; }
113119
114120 IEnumerable < PropertyPathMarker > IMultiMatchQuery . Fields { get ; set ; }
@@ -153,6 +159,7 @@ public MultiMatchQueryDescriptor<T> Query(string query)
153159 ( ( IMultiMatchQuery ) this ) . Query = query ;
154160 return this ;
155161 }
162+
156163 public MultiMatchQueryDescriptor < T > Analyzer ( string analyzer )
157164 {
158165 ( ( IMultiMatchQuery ) this ) . Analyzer = analyzer ;
@@ -169,6 +176,12 @@ public MultiMatchQueryDescriptor<T> CutoffFrequency(double cutoffFrequency)
169176 return this ;
170177 }
171178
179+ public MultiMatchQueryDescriptor < T > MinimumShouldMatch ( string minimumShouldMatch )
180+ {
181+ ( ( IMultiMatchQuery ) this ) . MinimumShouldMatch = minimumShouldMatch ;
182+ return this ;
183+ }
184+
172185 public MultiMatchQueryDescriptor < T > Rewrite ( RewriteMultiTerm rewrite )
173186 {
174187 ( ( IMultiMatchQuery ) this ) . Rewrite = rewrite ;
0 commit comments