SphinxClient
PHP 手册

SphinxClient::setFilter

(PECL sphinx >= 0.1.0)

SphinxClient::setFilterAdd new integer values set filter

说明

public bool SphinxClient::setFilter ( string $attribute , array $values [, bool $exclude=false ] )

Adds new integer values set filter to the existing list of filters.

参数

attribute

An attribute name.

values

Plain array of integer values.

exclude

If set to TRUE, matching documents are excluded from the result set. Defaults to FALSE.

返回值

如果成功则返回 TRUE,失败则返回 FALSE

参见


SphinxClient
PHP 手册