Determine if a field with a certain name is filtered by the search query or on the index This is the equivalent of saying "show me the results that do ONLY contain this value"
Signature
protected function isFieldFiltered(string
$field,
SearchQuery
$query )
Parameters
$field
—
string
name of the field being filtered
$query
—
object
currently being executed
Returns
bool
true if $field is being filtered, false if it is not being filtered