vinted / elasticsearch-dsl-rs

Strongly typed Elasticsearch DSL written in Rust
Apache License 2.0
201 stars 18 forks source link

Aggregation is complex #238

Closed FrederickFrance closed 1 year ago

FrederickFrance commented 1 year ago

Hi

Aggregations are very blurred in my mind.

I'm trying to do :

 "aggs": {
    "timeline": {
      "date_histogram": {
        "field": "audit_date",
        "calendar_interval": "month",
        "min_doc_count": 1,
        "time_zone": "+02:00"
      }
    }
  }

But I don't understand how to do :cry:

Regards

buinauskas commented 1 year ago

Hi, DSL does not yet support all of the aggs, I have minimal time supporting the DSL and mostly add them on demand. I'll try implementing this as well.