Closed
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