@@ -44,6 +44,9 @@ public interface IMultiMatchQuery : IQuery
4444 [ JsonProperty ( PropertyName = "boost" ) ]
4545 double ? Boost { get ; set ; }
4646
47+ [ JsonProperty ( PropertyName = "lenient" ) ]
48+ bool ? Lenient { get ; set ; }
49+
4750 [ JsonProperty ( PropertyName = "use_dis_max" ) ]
4851 bool ? UseDisMax { get ; set ; }
4952
@@ -79,6 +82,7 @@ protected override void WrapInContainer(IQueryContainer container)
7982 public int ? MaxExpansions { get ; set ; }
8083 public int ? Slop { get ; set ; }
8184 public double ? Boost { get ; set ; }
85+ public bool ? Lenient { get ; set ; }
8286 public bool ? UseDisMax { get ; set ; }
8387 public double ? TieBreaker { get ; set ; }
8488 public string MinimumShouldMatch { get ; set ; }
@@ -109,6 +113,8 @@ public class MultiMatchQueryDescriptor<T> : IMultiMatchQuery where T : class
109113
110114 double ? IMultiMatchQuery . Boost { get ; set ; }
111115
116+ bool ? IMultiMatchQuery . Lenient { get ; set ; }
117+
112118 bool ? IMultiMatchQuery . UseDisMax { get ; set ; }
113119
114120 double ? IMultiMatchQuery . TieBreaker { get ; set ; }
@@ -193,6 +199,12 @@ public MultiMatchQueryDescriptor<T> Boost(double boost)
193199 ( ( IMultiMatchQuery ) this ) . Boost = boost ;
194200 return this ;
195201 }
202+
203+ public MultiMatchQueryDescriptor < T > Lenient ( bool lenient = true ) {
204+ ( ( IMultiMatchQuery ) this ) . Lenient = lenient ;
205+ return this ;
206+ }
207+
196208 public MultiMatchQueryDescriptor < T > PrefixLength ( int prefixLength )
197209 {
198210 ( ( IMultiMatchQuery ) this ) . PrefixLength = prefixLength ;
0 commit comments