Skip to content

Commit

Permalink
Aggregations: Make size parsing consistent for strings.
Browse files Browse the repository at this point in the history
Close #6061
  • Loading branch information
wull2think authored and jpountz committed Nov 25, 2014
1 parent f717798 commit c334e8a
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -82,6 +82,8 @@ public void parse(String aggregationName, XContentParser parser, SearchContext c
executionHint = parser.text();
} else if(Aggregator.COLLECT_MODE.match(currentFieldName)){
collectMode = SubAggCollectionMode.parse(parser.text());
} else if (REQUIRED_SIZE_FIELD_NAME.match(currentFieldName)) {
bucketCountThresholds.setRequiredSize(parser.intValue());
} else {
parseSpecial(aggregationName, parser, context, token, currentFieldName);
}
Expand Down

0 comments on commit c334e8a

Please sign in to comment.