SphinxClient 类
(PECL sphinx >= 0.1.0)
简介
SphinxClient 为 Sphinx 提供了面向对象的接口.
类摘要
SphinxClient
{
/* 方法 */
public setFilterFloatRange
( string
$attribute
, float $min
, float $max
[, bool $exclude
= FALSE
] ) : bool
public setGeoAnchor
( string
$attrlat
, string $attrlong
, float $latitude
, float $longitude
) : bool
public updateAttributes
( string
}$index
, array $attributes
, array $values
[, bool $mva
= FALSE
] ) : intTable of Contents
- SphinxClient::addQuery — Add query to multi-query batch
- SphinxClient::buildExcerpts — Build text snippets
- SphinxClient::buildKeywords — Extract keywords from query
- SphinxClient::close — 关闭先前打开的持久连接
- SphinxClient::__construct — Create a new SphinxClient object
- SphinxClient::escapeString — Escape special characters
- SphinxClient::getLastError — Get the last error message
- SphinxClient::getLastWarning — Get the last warning
- SphinxClient::open — 建立到搜索服务端的持久连接
- SphinxClient::query — 执行搜索查询
- SphinxClient::resetFilters — Clear all filters
- SphinxClient::resetGroupBy — Clear all group-by settings
- SphinxClient::runQueries — Run a batch of search queries
- SphinxClient::setArrayResult — 控制搜索结果集的返回格式
- SphinxClient::setConnectTimeout — Set connection timeout
- SphinxClient::setFieldWeights — Set field weights
- SphinxClient::setFilter — 增加整数值过滤器
- SphinxClient::setFilterFloatRange — Add new float range filter
- SphinxClient::setFilterRange — Add new integer range filter
- SphinxClient::setGeoAnchor — Set anchor point for a geosphere distance calculations
- SphinxClient::setGroupBy — Set grouping attribute
- SphinxClient::setGroupDistinct — Set attribute name for per-group distinct values count calculations
- SphinxClient::setIDRange — Set a range of accepted document IDs
- SphinxClient::setIndexWeights — Set per-index weights
- SphinxClient::setLimits — 设置返回结果集偏移量和数目
- SphinxClient::setMatchMode — 设置全文查询的匹配模式
- SphinxClient::setMaxQueryTime — Set maximum query time
- SphinxClient::setOverride — Sets temporary per-document attribute value overrides
- SphinxClient::setRankingMode — Set ranking mode
- SphinxClient::setRetries — Set retry count and delay
- SphinxClient::setSelect — Set select clause
- SphinxClient::setServer — 设置searchd的主机名和TCP端口
- SphinxClient::setSortMode — Set matches sorting mode
- SphinxClient::status — Queries searchd status
- SphinxClient::updateAttributes — Update document attributes