SphinxClient::setConnectTimeout

(PECL sphinx >= 0.1.0) Set connection timeout public bool SphinxClient::setConnectTimeout ( float $timeout ) Sets connection timeout (in seconds) for searchd connection. Parameters: timeout Timeout in seconds. Returns: Returns TRUE on success or FALSE on failure. See also:

SphinxClient::setArrayResult

(PECL sphinx >= 0.1.0) Change the format of result set array public bool SphinxClient::setArrayResult ( bool $array_result = false ) Controls the format of search results set arrays (whether matches should be returned as an array or a hash). Parameters: array_result If array_result is FALSE, matches are returned as a hash with document IDs as keys, and other informati

SphinxClient::runQueries

(PECL sphinx >= 0.1.0) Run a batch of search queries public array SphinxClient::runQueries ( void ) Connects to searchd, runs a batch of all queries added using SphinxClient::addQuery, obtains and returns the result sets. Returns: Returns FALSE on failure and array of result sets on success. See also: SphinxC

SphinxClient::resetGroupBy

(PECL sphinx >= 0.1.0) Clear all group-by settings public void SphinxClient::resetGroupBy ( void ) Clears all currently group-by settings, and disables group-by. This call is normally required only when using multi-queries. Returns: No value is returned. See also: SphinxClient::resetGroupBy -

SphinxClient::resetFilters

(PECL sphinx >= 0.1.0) Clear all filters public void SphinxClient::resetFilters ( void ) Clears all currently set filters. This call is normally required when using multi-queries. You might want to set different filters for different queries in the batch. To do that, you should call SphinxClient::resetFilters() and add new filters using the respective calls. Returns: No value is returned.

SphinxClient::query

(PECL sphinx >= 0.1.0) Execute search query public array SphinxClient::query ( string $query [, string $index = "*" [, string $comment = "" ]] ) Connects to searchd server, runs the given search query with the current settings, obtains and returns the result set. Parameters: query Query string. index An index name (or names).

SphinxClient::open

(PECL sphinx >= 1.0.3) Opens persistent connection to the server public bool SphinxClient::open ( void ) Opens persistent connection to the server. Returns: Returns TRUE on success or FALSE on failure. Changelog: 1.0.3 Added SphinxClient::open(), available only if compiled with libsphinxclient >= 0.9.9.

SphinxClient::getLastWarning

(PECL sphinx >= 0.1.0) Get the last warning public string SphinxClient::getLastWarning ( void ) Returns last warning message. If there were no warnings during the previous API call, empty string is returned. This method doesn't reset the warning, so you can safely call it several times. Returns: Returns the last warning message or an empty string if there were no warnings.

SphinxClient::getLastError

(PECL sphinx >= 0.1.0) Get the last error message public string SphinxClient::getLastError ( void ) Returns string with the last error message. If there were no errors during the previous API call, empty string is returned. This method doesn't reset the error message, so you can safely call it several times. Returns: Returns the last error message or an empty string if there were no errors.

SphinxClient::escapeString

(PECL sphinx >= 0.1.0) Escape special characters public string SphinxClient::escapeString ( string $string ) Escapes characters that are treated as special operators by the query language parser. Parameters: string String to escape. Returns: Returns escaped string.