quickwit-oss / quickwit

Cloud-native search engine for observability. An open-source alternative to Datadog, Elasticsearch, Loki, and Tempo.
https://quickwit.io
Other
8.01k stars 327 forks source link

Actually support the format option in the ES API's RangeQuery #5109

Open fulmicoton opened 3 months ago

fulmicoton commented 3 months ago

the parameter is introduced in #5098, but is noop at the moment.

https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-range-query.html It makes it possible for the client to pass dates in a specific format https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-date-format.html

fulmicoton commented 2 months ago

It can be done by doing the conversion in the elastic search dsl range query (quickwit-query/src/elastic_query_dsl/range_query.rs) and reserializing it into rfc3339 before creating the QueryASt's range query.