Specify a terms filter

filter_terms(
  query,
  field,
  terms,
  bool = c("must", "filter", "must_not", "should")
)

Arguments

query

a query_agg() or query_fetch() object

field

field name (see queryable_fields() for all possibilities)

terms

a string or vector of strings to exact match

bool

one of "must", "filter", "must_not", "should" (see here)