略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: SphinxClient::setFilter

2024-05-04

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

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/sphinxclient.setfilter.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3