Skip to content
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

Handle buckets without key or key_as_string in dict #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nerdfirefighter
Copy link

Added functionality to allow for sub buckets that don't have key or key_as_string fields but are just a dict object that has a doc_count or value in it.

Example Agg search:

Example bucket this is needed for:

"aggregations" : { "L1" : { "buckets" : [ { "key" : "L1.1", "doc_count" : 10, "L2" : { "doc_count_error_upper_bound" : 0, "sum_other_doc_count" : 0, "buckets" : [ { "key" : "L1.1L2.1", "doc_count" : 20, "L3" : { "buckets" : { "L1.1L2.1L3.1" : { "doc_count" : 15 } } } }, { "key" : "L1.1L2.1L3.2", "doc_count" : 5, "L3" : { "buckets" : { "L1.1L2.1L3.2L4.1" : { "doc_count" : 8 } } } } ] } },

Added functionality to allow for sub buckets that don't have key or key_as_string fields but are just a dict object that has a doc_count in it.
Needed for very nested aggs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant