The SphinxClient class
(PECL sphinx >= 0.1.0)
Introducere
The SphinxClient class provides object-oriented interface to Sphinx.
Sinopsisul clasei
SphinxClient
{
public addQuery
(
string $query
,
string $index
= "*"
,
string $comment
= ""
) :
int
public buildExcerpts
(
array $docs
,
string $index
,
string $words
,
array $opts
= ?
) :
array|false
public buildKeywords
(
string $query
,
string $index
,
bool $hits
) :
array
public query
(
string $query
,
string $index
= "*"
,
string $comment
= ""
) :
array
public setFilter
(
string $attribute
,
array $values
,
bool $exclude
= false
) :
bool
public setFilterFloatRange
(
string $attribute
,
float $min
,
float $max
,
bool $exclude
= false
) :
bool
public setFilterRange
(
string $attribute
,
int $min
,
int $max
,
bool $exclude
= false
) :
bool
public setGeoAnchor
(
string $attrlat
,
string $attrlong
,
float $latitude
,
float $longitude
) :
bool
public setGroupBy
(
string $attribute
,
int $func
,
string $groupsort
= "@group desc"
) :
bool
public setLimits
(
int $offset
,
int $limit
,
int $max_matches
= 0
,
int $cutoff
= 0
) :
bool
public setOverride
(
string $attribute
,
int $type
,
array $values
) :
bool
public setRetries
(
int $count
,
int $delay
= 0
) :
bool
public setServer
(
string $server
,
int $port
) :
bool
public setSortMode
(
int $mode
,
string $sortby
= ?
) :
bool
public updateAttributes
(
string $index
,
array $attributes
,
array $values
,
bool $mva
= false
) :
int
}
Cuprins
There are no user contributed notes for this page.