Filter percolators before percolation query

To clarify, an example query would be

{
  "doc": {
    "created_at": "2010-10-10T00:00:00",
    "message": "some text"
  },
  "filter": {
    "term": {
      "percolator_group_name": "category"
    }
  }
}

that way we could percolate only categories (and not all other percolate groups like, for example tags). The percolator group name would be just a non-analyzed string (in 2.4) field in the .percolator index. I can still put in the extra field in 5.x (as keyword type) but I can't seem to find the filter option as shown in the query above to filter for only specific percolators