We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a88caa7 commit 12811f1Copy full SHA for 12811f1
src/Nest/DSL/Query/MultiMatchQueryDescriptor.cs
@@ -13,7 +13,7 @@ namespace Nest
13
public class MultiMatchQueryDescriptor<T> : IQuery where T : class
14
{
15
[JsonProperty(PropertyName = "type")]
16
- internal virtual string _Type { get { return null; } }
+ internal virtual string _Type { get; set; }
17
18
[JsonProperty(PropertyName = "query")]
19
internal string _Query { get; set; }
@@ -150,5 +150,11 @@ public MultiMatchQueryDescriptor<T> TieBreaker(double tieBreaker)
150
this._TieBreaker = tieBreaker;
151
return this;
152
}
153
+
154
+ public MultiMatchQueryDescriptor<T> Type(TextQueryType type)
155
+ {
156
+ this._Type = type.ToString().ToLower();
157
+ return this;
158
+ }
159
160
0 commit comments