SilverStripe\Elastica\ElasticaSearcher::addFilter
Add a filter to the current query in the form of a key/value pair.
Signature
public function addFilter(string
$field,
string|bool|int
$value )
Parameters
$field
— string- the name of the indexed field to filter on
$value
— object- the value of the indexed field to filter on