Performance and curiosity question on combined filter queries + nested queries

Hello everyone,

More a curiosity question than everything else, is there any difference between:

GET /my_index/_search
{
  "profile": "true", 
  "query": {
    "nested": {
      "path": "projects",
      "query": {
        "bool": {
          "filter": {
            "term": {
              "projects.id": "project-id2"
            }
          }
        }
      }
    }
  }
}

and

GET /my_index/_search
{
  "profile": "true",
  "query": {
    "bool": {
      "filter": {
        "nested": {
          "path": "projects",
          "query": {
            "term": {
              "projects.id": "project-id2"
            }
          }
        }
      }
    }
  }
}

And if yes, what are they ?

Thanks !

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