SphinxClient::setFilter
(PECL sphinx >= 0.1.0)
SphinxClient::setFilter — 增加整数值过滤器
说明
public SphinxClient::setFilter
( string
$attribute
, array $values
[, bool $exclude = false
] ) : bool在已有的过滤器列表中添加新的过滤器.
参数
-
attribute -
属性名称.
-
values -
整数值数组.
-
exclude -
如果设置为
TRUE, 则匹配该过滤规则的文档会被排除在结果之外.
返回值
成功时返回 TRUE, 或者在失败时返回 FALSE。