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
filtering aggregations #5458
Comments
@jxstanford This is a known limitation of |
Is this considered a bug? It's certainly unexpected behavior that the terms aggregation will match terms that don't match the query filter when you set min_doc_count=0. At the very least, this should be (better) documented here: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation.html#_minimum_document_count |
Is there an alternative way to retrieve aggregations with a For example: we have a use case with documents (products) in an ES index. Each product has a locale ("nl_be", "fr_fr", ...). When searching for all
This results in There probably is a very good reason why this Thanks in advance! |
this is my query below: IP: 52.8.97.179:9200 |
this is the result output: but i need to display all the missing or null values on date 02-23-2016 AND 02-24-2016, { |
@snkiran You will have a better chance to get an answer on discuss.elastic.co. |
help me some one as soon |
When doing a nested aggregation against a specific doc type, and with a filter of a specific doc type, the results still return unfiltered results. Here's an example:
I get buckets with entries matching hosts that do not show up in this doc type. For example, I have only 3 values for host in this doc type [compute-4, compute-2, compute-3], but I will get buckets back with hosts from other doc types like:
I believe that the extra hosts should be picked up by the aggregation filter if not by the URL path.
The text was updated successfully, but these errors were encountered: