2nd Level Nested aggregation incorrect doc_count

Hello,

Can anyone point me to why the doc_count on my 2nd nested aggregation is not correct?
The count on the first aggregation is accurate but the 2nd isnt.

{
  "size": 0,
  "_source": false,
  "query": {
    "match_all": {}
  },
  "aggs": {
    "products": {
      "nested": {
        "path": "productsImpacted"
      },
      "aggs": {
        "field1": {
          "terms": {
            "field": "productsImpacted.product.keyword",
            "size": 1000
          },
            "aggs": {
              "resellers": {
                "nested": {
                  "path": "requestType"
                },
                "aggs": {
                  "field2": {
                    "terms": {
                      "field": "requestType.type.keyword",
                      "size": 1000
                    }
                  }
                }
              }
            }
        }
      }
    }
  }
}

ElasticVersion: 7.10.1

Thanks

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.