Skip to content

MultiMatch OnFieldsWithBoost in NEST 2.x #1819

@Reonekot

Description

@Reonekot

I used to use the OnFieldsWithBoost construct on MultiMatch in NEST 1.7 for query time boosts, but I can't figure out how to get the same result with MultiMatch in NEST 2. What have I missed? :)

Right now my query without boost looks like:

.MultiMatch(m => m
    .Fields(fd => fd.Fields(
        ff => ff.HeadLine,
        ff => ff.LabelAdvice,
        ff => ff.MandatoryText,
        ff => ff.Note,
        ff => ff.Teaser))
    .Type(queryType)
    .Query(searchText)
    .Fuzziness(fuzziness)

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