SphinxClient::updateAttributes

(PECL sphinx >= 0.1.0) Update document attributes public int SphinxClient::updateAttributes ( string $index, array $attributes, array $values [, bool $mva = false ] ) Instantly updates given attribute values in given documents. Parameters: index Name of the index (or indexes) to be updated. attributes Array of attribute names, listi

SphinxClient::status

(PECL sphinx >= 1.0.3) Queries searchd status public array SphinxClient::status ( void ) Queries searchd status, and returns an array of status variable name and value pairs. Returns: Returns an associative array of search server statistics or FALSE on failure. Changelog: 1.0.3 Added SphinxClient::status(), available only if compiled with

SphinxClient::setSortMode

(PECL sphinx >= 0.1.0) Set matches sorting mode public bool SphinxClient::setSortMode ( int $mode [, string $sortby ] ) Sets matches sorting mode. See available modes below. Sorting modes Constant Description SPH_SORT_RELEVANCE Sort by relevance in descending order (best matches first). SPH_SORT_ATTR_DESC Sort by an attribute in descending order (bigger attribute values first). SPH_SORT_ATTR_ASC Sort by an attribute in a

SphinxClient::setServer

(PECL sphinx >= 0.1.0) Set searchd host and port public bool SphinxClient::setServer ( string $server, int $port ) Sets searchd host name and TCP port. All subsequent requests will use the new host and port settings. Default host and port are 'localhost' and 3312, respectively. Parameters: server IP or hostname. port Port number.

SphinxClient::setSelect

(PECL sphinx >= 1.0.1) Set select clause public bool SphinxClient::setSelect ( string $clause ) Sets the select clause, listing specific attributes to fetch, and expressions to compute and fetch. Parameters: clause SQL-like clause. Returns: Returns TRUE on success or FALSE on failure. Changelog:

SphinxClient::setRetries

(PECL sphinx >= 0.1.0) Set retry count and delay public bool SphinxClient::setRetries ( int $count [, int $delay = 0 ] ) Sets distributed retry count and delay. On temporary failures searchd will attempt up to count retries per agent. delay is the delay between the retries, in milliseconds. Retries are disabled by default. Note that this call will not make the API itself retry on temporary failure; it only tells search

SphinxClient::setRankingMode

(PECL sphinx >= 0.1.0) Set ranking mode public bool SphinxClient::setRankingMode ( int $ranker ) Sets ranking mode. Only available in SPH_MATCH_EXTENDED2 matching mode. Ranking modes Constant Description SPH_RANK_PROXIMITY_BM25 Default ranking mode which uses both proximity and BM25 ranking. SPH_RANK_BM25 Statistical ranking mode which uses BM25 ranking only (similar to most of other full-text engines). This mode is fast

SphinxClient::setOverride

(PECL sphinx >= 1.0.3) Sets temporary per-document attribute value overrides public bool SphinxClient::setOverride ( string $attribute, int $type, array $values ) Sets temporary (per-query) per-document attribute value overrides. Override feature lets you "temporary" update attribute values for some documents within a single query, leaving all other queries unaffected. This might be useful for personalized data

SphinxClient::setMaxQueryTime

(PECL sphinx >= 0.1.0) Set maximum query time public bool SphinxClient::setMaxQueryTime ( int $qtime ) Sets maximum search query time. Parameters: qtime Maximum query time, in milliseconds. It must be a non-negative integer. Default value is 0, i.e. no limit. Returns: Returns TRUE on success or FALSE on failure.

SphinxClient::setMatchMode

(PECL sphinx >= 0.1.0) Set full-text query matching mode public bool SphinxClient::setMatchMode ( int $mode ) Sets full-text query matching mode. mode is one of the constants listed below. Match modes Constant Description SPH_MATCH_ALL Match all query words (default mode). SPH_MATCH_ANY Match any of query words. SPH_MATCH_PHRASE Match query as a phrase, requiring perfect match. SPH_MATCH_BOOLEAN Match query as a boolean