(No version information available, might only be in SVN)
Introduction
La classe SphinxClient fournit une interface orientée objet avec
Sphinx.
Synopsis de la classe
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 bool close
(
void
)
public bool open
(
void
)
public array query
(
string $query
[,
string $index
= "*"
[,
string $comment
= ""
]] )
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
= false
] )
public bool setGeoAnchor
(
string $attrlat
,
string $attrlong
,
float $latitude
,
float $longitude
)
public bool setGroupBy
(
string $attribute
,
int $func
[,
string $groupsort
= "@group desc"
] )
public bool setLimits
(
int $offset
,
int $limit
[,
int $max_matches
= 0
[,
int $cutoff
= 0
]] )
public bool setOverride
(
string $attribute
,
int $type
,
array $values
)
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
[,
bool $mva
= false
] )
}