Skip to content

Commit

Permalink
Merge pull request #544 from gisaia/fix/datehistogram_interval
Browse files Browse the repository at this point in the history
keep using combined datehistogram interval
  • Loading branch information
MohamedHamouGisaia authored Nov 7, 2019
2 parents 84b1ed9 + 81a396d commit e2911b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ private DateHistogramAggregationBuilder buildDateHistogramAggregation(Aggregatio
default:
throw new InvalidParameterException(INVALID_DATE_UNIT);
}
dateHistogramAggregationBuilder = dateHistogramAggregationBuilder.calendarInterval(intervalUnit);
dateHistogramAggregationBuilder = dateHistogramAggregationBuilder.dateHistogramInterval(intervalUnit);
//get the field, format, collect_field, collect_fct, order, on
dateHistogramAggregationBuilder = (DateHistogramAggregationBuilder) setAggregationParameters(aggregationModel, dateHistogramAggregationBuilder);
dateHistogramAggregationBuilder = (DateHistogramAggregationBuilder) setHitsToFetch(aggregationModel, dateHistogramAggregationBuilder);
Expand Down

0 comments on commit e2911b2

Please sign in to comment.