SphinxClient::setFilter
SphinxClient::setFilter
(PECL sphinx >= 0.1.0)
SphinxClient::setFilter — Add new integer values set filter
Description
public bool SphinxClient::setFilter ( string $attribute , array $values [, bool $exclude = false ] )
Adds new integer values set filter to the existing list of filters.
Parameters
attribute
An attribute name.
values
Plain array of integer values.
exclude
If set to TRUE
, matching documents are excluded from the result set.
Return Values
Returns TRUE
on success or FALSE
on failure.
See Also
- SphinxClient::setFilterFloatRange
- SphinxClient::setFilterRange
- SphinxClient::resetFilters
← SphinxClient::setFieldWeights
SphinxClient::setFilterFloatRange →
© 1997–2017 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.