SphinxClient
在线手册:中文  英文

SphinxClient::addQuery

(PECL sphinx >= 0.1.0)

SphinxClient::addQueryAdd query to multi-query batch

说明

public int SphinxClient::addQuery ( string $query [, string $index = "*" [, string $comment = "" ]] )

Adds query with the current settings to multi-query batch. This method doesn't affect current settings (sorting, filtering, grouping etc.) in any way.

参数

query

Query string.

index

An index name (or names).

comment

返回值

Returns an index in an array of results that will be returned by SphinxClient::runQueries call or false on error.

参见


SphinxClient
在线手册:中文  英文
易百教程