Skip to content

Commit 94d23a1

Browse files
pierre-mazieres-semarchysothawo
authored andcommitted
"BaseQuery" class : the "build" method does not apply to the "runtimeFields" field.
Original Pull Request #2568 Closes #2567 (cherry picked from commit 7b527c4) # Conflicts: # src/main/java/org/springframework/data/elasticsearch/core/query/BaseQuery.java
1 parent 13b4d62 commit 94d23a1

File tree

1 file changed

+8
-0
lines changed
  • src/main/java/org/springframework/data/elasticsearch/core/query

1 file changed

+8
-0
lines changed

src/main/java/org/springframework/data/elasticsearch/core/query/BaseQuery.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,14 @@ public <Q extends BaseQuery, B extends BaseQueryBuilder<Q, B>> BaseQuery(BaseQue
105105
this.requestCache = builder.getRequestCache();
106106
this.idsWithRouting = builder.getIdsWithRouting();
107107
this.pointInTime = builder.getPointInTime();
108+
this.runtimeFields = builder.getRuntimeFields();
109+
}
110+
111+
/**
112+
* @since 5.1
113+
*/
114+
public void setSort(@Nullable Sort sort) {
115+
this.sort = sort;
108116
}
109117

110118
@Override

0 commit comments

Comments
 (0)