'Limitation of filters aggregation amount

I would like to use filters aggregation. Let's assume that my request looks like following:

{
  "size": 0,
  "aggs": {
    "messages": {
      "filters": {
        "filters": {
          "word1": {
            "match": {
              "body": "word1"
            }
          },
          "word2": {
            "match": {
              "body": "word2"
            }
          }
        }
      }
    }
  }
}

In this case I mentioned 2 aggregations. How many filters aggregation can I use? 5, 10, 100, 500? Is it some limitation?

Thanks a lot for the answers!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source