SphinxClient 类
(PECL sphinx >= 0.1.0)
简介
SphinxClient 为 Sphinx 提供了面向对象的接口.
类摘要
SphinxClient
{
public addQuery
(
string $query
[,
string $index
= "*"
[,
string $comment
= ""
]] ) :
int
public buildExcerpts
(
array $docs
,
string $index
,
string $words
[,
array $opts
] ) :
array
public buildKeywords
(
string $query
,
string $index
,
bool $hits
) :
array
public close
(
void
) :
bool
public open
(
void
) :
bool
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 status
(
void
) :
array
public updateAttributes
(
string $index
,
array $attributes
,
array $values
[,
bool $mva
= FALSE
] ) :
int
}
Table of Contents
There are no user contributed notes for this page.
官方地址:https://www.php.net/manual/en/class.sphinxclient.php