Aggregations: Make size parsing consistent for strings.

Close #6061
This commit is contained in:
unknown 2014-11-19 21:06:24 -04:00 committed by Adrien Grand
parent 668dbe498a
commit c4e2f63b17
1 changed files with 2 additions and 0 deletions

View File

@ -82,6 +82,8 @@ public abstract class AbstractTermsParametersParser {
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);
}