SphinxClient::addQuery

(PECL sphinx >= 0.1.0)
Add 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.

Parameters:
query

Query string.

index

An index name (or names).

comment

An index name (or names).

Returns:

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

See also:

SphinxClient::runQueries -

SphinxClient::query -

doc_php
2016-02-24 16:11:55
Comments
Leave a Comment

Please login to continue.