Skip to content

Commit 12811f1

Browse files
committed
Added Type method to MultiMatchQueryDescriptor
1 parent a88caa7 commit 12811f1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Nest/DSL/Query/MultiMatchQueryDescriptor.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace Nest
1313
public class MultiMatchQueryDescriptor<T> : IQuery where T : class
1414
{
1515
[JsonProperty(PropertyName = "type")]
16-
internal virtual string _Type { get { return null; } }
16+
internal virtual string _Type { get; set; }
1717

1818
[JsonProperty(PropertyName = "query")]
1919
internal string _Query { get; set; }
@@ -150,5 +150,11 @@ public MultiMatchQueryDescriptor<T> TieBreaker(double tieBreaker)
150150
this._TieBreaker = tieBreaker;
151151
return this;
152152
}
153+
154+
public MultiMatchQueryDescriptor<T> Type(TextQueryType type)
155+
{
156+
this._Type = type.ToString().ToLower();
157+
return this;
158+
}
153159
}
154160
}

0 commit comments

Comments
 (0)