Clase SphinxClient
(PECL sphinx >= 0.1.0)
Introducción
La clase SphinxClient proporciona un interfaz orientado a objetos para Sphinx.
Sinopsis de la Clase
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
}
Tabla de contenidos
There are no user contributed notes for this page.