{
  "bool": {
    "must": {
      "exists": { "field": "path" }
    },
    "must_not": {
      "exists": { "field": "hash" }
    }
  }
}