-
Notifications
You must be signed in to change notification settings - Fork 736
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Aggregation: Ability to add metadata #1677
Comments
Just learned a new feature in ES, thanks! My guess would be that Happy to get native support for it, interested to contribute 😇 |
I tried The following code:
Generates the following query:
Which generates the following response:
The I've locally implemented |
I've made a pull request (#1678) towards the Disclaimer: I could not get the docker environment running properly for the tests to complete (neither when trying the same commit rebased to the master branch). It kept waiting on the ElasticSearch server to be ready, which it never became. The |
@leflings Thank you! Yes, I would prefer to have it in master first and backport it from there if possible. |
ElasticSearch allows metadata to be set on an aggregation that will be returned as-is with the aggregation result. See https://www.elastic.co/guide/en/elasticsearch/reference/6.8/agg-metadata.html Using `setParam` generates invalid query, hence these additions. See #1677
Great, thanks. Already merged. Do you want to open the backport PR from there? |
Hi
First of all, thank you for a very nice library, which I've enjoyed using (with/through FOSElasticaBundle)
ElasticSearch has the ability to add metadata to aggregations, a feature I've found to be wanting while making a faceted search solution.
Is it possible to emulate this with the current API (I'm using version 6.1.1)?
If not, could this be added to the Aggregation API? Hopefully in a way where it lands in a 6.X version (the bundle doesn't yet support versions 7.X)
The text was updated successfully, but these errors were encountered: