-
Notifications
You must be signed in to change notification settings - Fork 204
Open
Description
In ElasticSearch 7.2, the interval property was deprecated ( https://www.elastic.co/guide/en/elasticsearch/reference/7.2/search-aggregations-bucket-datehistogram-aggregation.html#_calendar_and_fixed_intervals ):
ElasticsearchDSL/src/Aggregation/Bucketing/DateHistogramAggregation.php
Lines 92 to 111 in b4c3c89
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function getArray() | |
| { | |
| if (!$this->getField() || !$this->getInterval()) { | |
| throw new \LogicException('Date histogram aggregation must have field and interval set.'); | |
| } | |
| $out = [ | |
| 'field' => $this->getField(), | |
| 'interval' => $this->getInterval(), | |
| ]; | |
| if (!empty($this->format)) { | |
| $out['format'] = $this->format; | |
| } | |
| return $out; | |
| } |
Either calendar_interval or fixed_interval should be used instead: https://www.elastic.co/guide/en/elasticsearch/reference/8.0/search-aggregations-bucket-datehistogram-aggregation.html#calendar_and_fixed_intervals
Metadata
Metadata
Assignees
Labels
No labels