Hi,

I have several aggregations each of which have their own inner 
aggregations. It seems that the 'min_document_doc' does not apply when 
their containing aggregation is itself empty. I presumed that because both 
level of aggregations use 'min_document_doc' there would be buckets for the 
inner agg as well.

Can somebody enlighten me on why ES cannot do this, sort of a technical 
insight would be appreciated.

Thanks.


Here is a snippet of my query:
...
  "aggregations": {
    "totalCount": {
      "global": {}
    },
    "categories-missing": {
      "terms": {
        "field": "categories.missing",
        "size": 0,
        "min_doc_count": 0,
        "order": {
          "_term": "asc"
        }
      }
    },
    "datasetId": {
      "terms": {
        "field": "datasetId",
        "size": 0,
        "min_doc_count": 0,
        "order": {
          "_term": "asc"
        }
      },
      "aggregations": {
        "attributes-Default": {
          "terms": {
            "field": "attributes.Default",
            "size": 0,
            "min_doc_count": 0,
            "order": {
              "_term": "asc"
            }
          }
        },
        "attributes-Administrative_information": {
          "terms": {
            "field": "attributes.Administrative_information",
            "size": 0,
            "min_doc_count": 0,
            "order": {
              "_term": "asc"
            }
          }
        },
...


-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/d00b5831-351e-4f36-9197-9d56928667eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to