setFilterPromotes method
FilterPromotes
Whether promoted results should match the filters of the current search, except for geographic filters.
This is a global switch that affects all Rules.
Usage notes:
- When true, promoted results will be restricted to match the filters of the current search, except for geographic filters.
- When false, the promoted results will show up regardless of the filters.
- This parameter only applies to non-geographic filters; ie. geographic filters are ignored and promoted hits may not match them.
Source: Learn more
Implementation
AlgoliaQuery setFilterPromotes({bool enabled = false}) {
assert(!_parameters.containsKey('filterPromotes'));
return _copyWithParameters(<String, dynamic>{'filterPromotes': enabled});
}