Skip to content

It is not possible to set field at function_score random_score #337

Open
@Avariya

Description

@Avariya

According to elasticsearch documentation:

It was possible to set a seed without setting a field, but this has been deprecated as this requires loading fielddata on the _id field which consumes a lot of memory.

https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html#function-random

We need to have optional parameter field at addRandomFunction method, as deprecated case and required field in the future major releases of library.

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