Skip to content

Commit 9426456

Browse files
mrkm4ntrbenwtrentpmpailis
authored
Add missing getters required to reconstruct FunctionScoreQuery (#137656)
Co-authored-by: Benjamin Trent <ben.w.trent@gmail.com> Co-authored-by: Panagiotis Bailis <pmpailis@gmail.com>
1 parent 391de08 commit 9426456

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

server/src/main/java/org/elasticsearch/common/lucene/search/function/FunctionScoreQuery.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,14 @@ public CombineFunction getCombineFunction() {
197197
return combineFunction;
198198
}
199199

200+
public ScoreMode getScoreMode() {
201+
return scoreMode;
202+
}
203+
204+
public Float getMaxBoost() {
205+
return maxBoost;
206+
}
207+
200208
@Override
201209
public void visit(QueryVisitor visitor) {
202210
// Highlighters must visit the child query to extract terms

0 commit comments

Comments
 (0)