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
Thank you for you feedback, this is a really interesting use case.
To answer you question, yes, the typedapi is definitely planned for further improvements!
One way we could make this easier would be to generate some quick access method on the search request builder for query and aggregations, so that you wouldn't have to go deep to add one of those. Another improvement would be to add a single setter for maps and slices which would allow for simpler usage on the likes of filter.
For now, I'm linking this to #526 for future reference and closing this issue.
I tried to assemble 'search.Request' using 'typedapi', but it's a little difficult and troublesome to use, hope it will be better in the future
// {"aggregations":{"composite":{"aggregations":{"ad":{"aggregations":{"ad_sum":{"sum":{"field":"ad_revenue"}}},"filter":{"query_string":{"query":"LogType:AdRev"}}},"iap":{"aggregations":{"count":{"cardinality":{"field":"uuid"}},"sum":{"sum":{"field":"price"}}},"filter":{"query_string":{"query":"LogType:iapLog"}}}},"composite":{"sources":[{"regDay":{"date_histogram":{"calendar_interval":"day","field":"register_time","time_zone":"UTC"}}},{"ad_id":{"terms":{"field":"ad_id","missing_bucket":true}}}]}}},"query":{"bool":{"filter":[{"query_string":{"query":"*"}},{"range":{"@timestamp":{"gte":1665331200,"lt":1665590400}}}]}}}
This is an example of using olivere/elastic
The text was updated successfully, but these errors were encountered: