Java API - cannot use aggregation interval

AggregationBuilder aggregationBuilder = AggregationBuilders.dateHistogram("hourly_aggs")
                            .field("recv_time")
                            .fixedInterval(DateHistogramInterval.HOUR);

When i run above java code, it throws exception.
The content of log is

[date_histogram] unknown field [calendar_interval], parser not found
I understood this as 'dateHistogram has not parser for fixedInterval type'

Is it a kind of bug?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.