Skip to content

Decay functions should allow to specify a value in case a field is missing  #18892

@FlorianWilhelm

Description

@FlorianWilhelm

Describe the feature:

When using a decay function in a function_score the documentation says in the offical documentation: "If the numeric field is missing in the document, the function will return 1." In many cases this is not intended since documents missing the field are scored with the highest possible value.

Similar to field_value_factor decay functions should provide a missing parameter allowing to define the score in case the field is missing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions