The SphinxClient class
Introduction
The SphinxClient class provides object-oriented interface to Sphinx.
Class synopsis
SphinxClient
class SphinxClient
{
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
)
public array query
( string $query
[, string $index
[, string $comment
]] )
public bool setFilter
( string $attribute
, array $values
[, bool $exclude
] )
public bool setFilterFloatRange
( string $attribute
, float $min
, float $max
[, bool $exclude
] )
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 setLimits
( int $offset
, int $limit
[, int $max
[, int $cutoff
]] )
public bool setRetries
( int $count
[, int $delay
] )
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
|