Skip to content

Any way to use minimum_should_match in NEST Match queries? #741

@Aaronaught

Description

@Aaronaught

According to the ElasticSearch documentation, minimum_should_match is supported on all match queries, but does not appear to be supported in NEST.

It seems like I should be able to write something like:

return query.Match(match => match
    .OnField("_all")
    .Query(keywords)
    .MinimumShouldMatch("2<80%")
);

But of course I cannot... the last line isn't in the API for MatchQueryDescriptor<T>.

Shouldn't it be part of that API? Is there some other way to add minimum_should_match to the query?

(P.S. I know it's supported by the NEST API in Boolean and Query String clauses, but that doesn't help me here.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions