Get subset of values that exist for a given search

Is it possible to query for which values of a given set are represented/not represented in the data set? If I have documents that look like:

      "category": "fiction",
      "tags": ["horror", "thriller"]

And I want to query to see which of the following tag values exist for the "fiction" category?