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?

    [
      "fiction",
      "thriller",
      "romance",
      "sci-fi",
      "action",
      "adventure
    ]

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