Adding a filter using a field with $contains

Can we use the $contains for the adding a filter using a filed?
Currently, other than $eq, an error will occur when saving the configuration.
Such as,

{
 "actionType": "ADD_FILTER",
 "verticals": [
   "locations",
   "events"
 ],
 "filter": {
   "c_brand": {
     "$contains": "BrandName"
   }
 }
}
1 Like

Hi Nobu,

The Answers search configuration currently only supports $eq, $le, $lt, $gt, and $ge, $between, and $near. You can read more about these matchers in this developer doc. To use contains, you can save an advanced filter and use that in your query rule.

1 Like