You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
MatchAll requires a configuration to be passed, but most cases developers will pass nothing.
Setting boost is not needed, and neither is naming the query. Which it requires one of these to be set.
f.MatchAll(m => m.QueryName(""))
f.MatchAll(m => m.Boost(0))
Describe the solution you'd like
var result = await _client.SearchAsync<int>(x => x.Index("")
.Query(q =>
q.Bool(b =>
b.Filter(f =>
f.MatchAll()
)
)
), ct);
Describe alternatives you've considered
None.
Additional context
None
The text was updated successfully, but these errors were encountered:
This was as well mentioned in #8150 as far as I remember. I'll keep your dedicated issue open anyways to allow for upvotes.
The same applies to MatchNone and probably some other objects with only optional properties. I'll for now solve it only for these 2 candidates and later one encode that pattern in the code generator so that all of these classes with just optional properties will get an overload that does not require to pass a lambda.
Btw.: A slightly better workaround might be this one:
Is your feature request related to a problem? Please describe.
MatchAll requires a configuration to be passed, but most cases developers will pass nothing.
Setting boost is not needed, and neither is naming the query. Which it requires one of these to be set.
f.MatchAll(m => m.QueryName(""))
f.MatchAll(m => m.Boost(0))
Describe the solution you'd like
Describe alternatives you've considered
None.
Additional context
None
The text was updated successfully, but these errors were encountered: