Understanding Bool and Nested Query

I want to understand both the queries how they are different

"query": {
    "nested": {
      "path": "addresses",
      "query": {
        "bool": {
          "must_not": [
            {
              "exists": {
                "field": "addresses"
              }
            }
          ]
        }
      }
    }
  }
"query": {
    "bool": {
      "must_not": [
        {
          "nested": {
            "path": "addresses",
            "query": {
              "exists": {
                "field": "addresses"
              }
            }
          }
        }
      ]
    }
  }

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