Skip to content

"BaseQuery" class : the "build" method does not apply to the "runtimeFields" field #2567

Closed
@pierre-mazieres-semarchy

Description

On last 5.1.0 version,
In the "org.springframework.data.elasticsearch.core.query" package,
There is the "BaseQuery" class.

This class has a field named "runtimeFields".
protected final List<RuntimeField> runtimeFields = new ArrayList<>()

There also is a constructor method from the builder class.
public <Q extends BaseQuery, B extends BaseQueryBuilder<Q, B>> BaseQuery(BaseQueryBuilder<Q, B> builder)
This constructor does not set the "runtimeFields" field

So I propose to update constructor by adding this code line :
this.runtimeFields = builder.getRuntimeFields()

For information, I created a pull-request
#2567

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions