Skip to content

Commit

Permalink
Also support sum as score_mode option for the nested query.
Browse files Browse the repository at this point in the history
Relates to #3026
  • Loading branch information
martijnvg committed May 13, 2013
1 parent 6eaad25 commit 3c58176
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public Query parse(QueryParseContext parseContext) throws IOException, QueryPars
scoreMode = ScoreMode.Avg;
} else if ("max".equals(sScoreMode)) {
scoreMode = ScoreMode.Max;
} else if ("total".equals(sScoreMode)) {
} else if ("total".equals(sScoreMode) || "sum".equals(sScoreMode)) {
scoreMode = ScoreMode.Total;
} else if ("none".equals(sScoreMode)) {
scoreMode = ScoreMode.None;
Expand Down

0 comments on commit 3c58176

Please sign in to comment.