Sphinx
PHP Manual

SphinxClient クラス

導入

SphinxClient クラスは、Sphinx へのオブジェクト指向のインターフェイスを提供します。

クラス概要

SphinxClient
SphinxClient {
/* メソッド */
public int SphinxClient::addQuery ( string $query [, string $index [, string $comment ]] )
public array SphinxClient::buildExcerpts ( array $docs , string $index , string $words [, array $opts ] )
public array SphinxClient::buildKeywords ( string $query , string $index , bool $hits )
public string SphinxClient::escapeString ( string $string )
public string SphinxClient::getLastError ( void )
public string SphinxClient::getLastWarning ( void )
public array SphinxClient::query ( string $query [, string $index [, string $comment ]] )
public void SphinxClient::resetFilters ( void )
public void SphinxClient::resetGroupBy ( void )
public array SphinxClient::runQueries ( void )
public bool SphinxClient::setArrayResult ( bool $array_result )
public bool SphinxClient::setConnectTimeout ( float $timeout )
public bool SphinxClient::setFieldWeights ( array $weights )
public bool SphinxClient::setFilter ( string $attribute , array $values [, bool $exclude ] )
public bool SphinxClient::setFilterFloatRange ( string $attribute , float $min , float $max [, bool $exclude ] )
public bool SphinxClient::setFilterRange ( string $attribute , int $min , int $max [, bool $exclude ] )
public bool SphinxClient::setGeoAnchor ( string $attrlat , string $attrlong , float $latitude , float $longitude )
public bool SphinxClient::setGroupBy ( string $attribute , int $func [, string $groupsort ] )
public bool SphinxClient::setGroupDistinct ( string $attribute )
public bool SphinxClient::setIDRange ( int $min , int $max )
public bool SphinxClient::setIndexWeights ( array $weights )
public bool SphinxClient::setLimits ( int $offset , int $limit [, int $max [, int $cutoff ]] )
public bool SphinxClient::setMatchMode ( int $mode )
public bool SphinxClient::setMaxQueryTime ( int $qtime )
public bool SphinxClient::setRankingMode ( int $ranker )
public bool SphinxClient::setRetries ( int $count [, int $delay ] )
public bool SphinxClient::setServer ( string $server , int $port )
public bool SphinxClient::setSortMode ( int $mode [, string $sortby ] )
public int SphinxClient::updateAttributes ( string $index , array $attributes , array $values )
}

目次


Sphinx
PHP Manual