-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Nest 1.0.2 Aggregations - issue supporting different aggrgation types #931
Comments
Head scratcher indeed. This is definitely a bug and should be supported. Looks like the problem lies in AggregationConverter.GetNestedAggregations(). When there are multiple nested aggregations on the same level, like in your example, only the first is getting parsed and the rest are skipped. Need to think of a good solution here, but it's a little tricky. Great catch and thanks for reporting this! Stay tuned for a fix... |
Thanks for the reply. I am sure a lot of other folks are going to really Doug On Thu, Sep 11, 2014 at 2:37 PM, Greg Marzouka [email protected]
Doug Nelson |
Hi @djnelson9715 I think i captured where it went wrong, the percentiles aggregation response parser did not fully read the json stream to its subset completion causing adjacent aggregation not to be parsed correctly. Huge 👍 for reporting! |
So this has been a bit of a head scratcher
I should expect to see two aggregations for each search term, the "pageRankStats", "pageRankMedian".
Using the following code to access the results
what I am finding is stats is null and median is populated as expected. If however, I can the second aggregation to be a stats aggregation then I am able to access both aggregation results.
Is this not supported?
Thanks in advance
Doug
The text was updated successfully, but these errors were encountered: