If you are receiving the error "The filters should be facet filters", this is being caused by filters being returned with numerical operators such as =, <, >, <= and >=. This is likely a result of a known issue with the rangeSlider
, ratingMenu
, and rangeInput
widgets used in InstantSearch.js.
Currently, the Insights API only accepts filters
that are in the format of facetFilters
i.e.[attribute:value]
.
By default, the rangeSlider
and rangeInput
widgets use the sendEvent
function with numericFilters
, which results in this error.
This won't have any impact on your analytics or related features, but these events will not be recorded, and for the moment, it is not possible to use analytics events with these widgets.