You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello there, first of all – thanks for all people contributing to this package.
Declaring documents and setting up faceted search works really, really nicely.
--
When experimenting with the FacetedSearch class and DateHistogramFacet, my development backend started complaining:
ElasticsearchDeprecationWarning: [interval] on [date_histogram] is deprecated, use [fixed_interval] or [calendar_interval] in the future.
warnings.warn(message, category=ElasticsearchDeprecationWarning)
I'm using version 7.9.1 of ElasticSearch OSS edition.
Combined interval field is deprecated
[7.2] Deprecated in 7.2. interval field is deprecated Historically both calendar and fixed intervals were configured in a single interval field, which led to confusing semantics. Specifying 1d would be assumed as a calendar-aware time, whereas 2d would be interpreted as fixed time. To get "one day" of fixed time, the user would need to specify the next smaller unit (in this case, 24h).
This combined behavior was often unknown to users, and even when knowledgeable about the behavior it was difficult to use and confusing.
This behavior has been deprecated in favor of two new, explicit fields: calendar_interval and fixed_interval.
By forcing a choice between calendar and intervals up front, the semantics of the interval are clear to the user immediately and there is no ambiguity. The old interval field will be removed in the future.
The text was updated successfully, but these errors were encountered:
julianklotz
changed the title
Deprecated Facet: Using DateHistogramFacet with intervals seems to be deprecated
Deprecated: Using DateHistogramFacet with intervals seems to be deprecated
Dec 3, 2020
Hello there, first of all – thanks for all people contributing to this package.
Declaring documents and setting up faceted search works really, really nicely.
--
When experimenting with the
FacetedSearch
class andDateHistogramFacet
, my development backend started complaining:I'm using version 7.9.1 of ElasticSearch OSS edition.
Docs:
https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-datehistogram-aggregation.html
The text was updated successfully, but these errors were encountered: