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
es_search() : aggregation query crashes if empty bins #58
Comments
Thanks for opening this up @jvondollen . I have one followup question...what type of Each aggregation result has a slightly different format, so if you can provide that it would help us narrow down the issue. The fact that you got |
This involves some multilevel nested sums aggregated over different terms. It also involves a reverse_nested aggregation. I'm not sure what exactly you men by "type" of aggs, but the query structure is something of the form:
|
Oh sorry. By type I mean e.g. Also I'm sure that we don't have a test for One other question...what version of ES are you on? We test |
Ah, this makes sense since most of my aggregations involve |
Ok cool, that helps! @jvondollen and I talked over email and it revealed something valuable. Sounds like his query was returning 0 results, and the error he got was because of that. I propose that in that situation, it would be more natural to throw a warning and return an empty
It would be real annoying if you had 100 queries and couldn't get your result because one of them returned no results. I prefer an empty This thread revealed another problem...we have no tests for |
To close this issue:
|
Going to close this one, as I think it is addressed by the changes in #70 #59 is still open and we don't currently have support for reverse-nested stuff. @jvondollen if you have the time we'd love your help in addressing that issue! I'm not really familiar with reverse_nested stuff. |
I'm having issues getting aggregate searches working. I use the exact aggregate query within the elastic site search and get results fine, but when I run it via the es_search() function, I get an error about missing data:
Error in log_fatal(msg) :
The column given to unpack_nested_data had no data in it.
I understand that there are empty buckets in the aggregation that are affecting the "unpack_nested_data" function. However, this isn't a problem when the aggregation results are written to a file and the read back in and parsed with "chomp_aggs".
The text was updated successfully, but these errors were encountered: