Skip to content

Commit cc67ac4

Browse files
committed
Merge pull request #889 from Tasteful/fix/static-wildcard-descriptor
Add static method for Query.Wildcard based on descriptor
2 parents 3739a2a + 6b68859 commit cc67ac4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Nest/Domain/DSL/Query.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,11 @@ public static QueryContainer Wildcard(Expression<Func<T, object>> fieldDescripto
270270
return new QueryDescriptor<T>().Wildcard(fieldDescriptor, value, Boost);
271271
}
272272

273+
public static QueryContainer Wildcard(Action<WildcardQueryDescriptor<T>> selector)
274+
{
275+
return new QueryDescriptor<T>().Wildcard(selector);
276+
}
277+
273278
public static QueryContainer Wildcard(string field, string value, double? Boost = null)
274279
{
275280
return new QueryDescriptor<T>().Wildcard(field, value, Boost);

0 commit comments

Comments
 (0)