Skip to content

Setting function score weight returns an error #1071

@jjfalling

Description

@jjfalling

When attempting to set the function score weight visual studio gives the following error:

'Nest.FunctionScoreQueryDescriptor<ConsoleApplication2.PersonExtended>' does not contain a definition for 'Weight' and no extension method 'Weight' accepting a first argument of type 'Nest.FunctionScoreQueryDescriptor<ConsoleApplication2.PersonExtended>' could be found (are you missing a using directive or an assembly reference?)

The relevant bit of the query:

        .Query(qd => qd
        .Bool(bq => bq
        .Should(shd1 => shd1
        .FunctionScore(bf => bf
        .Weight(100.0)

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