Skip to content

[Feature] Elastic 8 - MatchAll won't accept passing nothing #8191

Closed
@DR9885

Description

@DR9885

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions