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 6cd08fe commit 6fbc4e4
Showing 1 changed file with 1 addition and 1 deletion.
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 6fbc4e4

Please sign in to comment.