Freelance PHP programmer India | Freelance web developer india | Web development India | web developer CV india | Compiling PHP and Apache 2 from source on Linux
Sphinx
PHP Manual

The SphinxClient class

Introduction

The SphinxClient class provides object-oriented interface to Sphinx.

Class synopsis

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

Table of Contents


Sphinx
PHP Manual