Properties

$_host

$_host : 

Type

$_port

$_port : 

Type

$_offset

$_offset : 

Type

$_limit

$_limit : 

Type

$_mode

$_mode : 

Type

$_weights

$_weights : 

Type

$_sort

$_sort : 

Type

$_sortby

$_sortby : 

Type

$_min_id

$_min_id : 

Type

$_max_id

$_max_id : 

Type

$_filters

$_filters : 

Type

$_groupby

$_groupby : 

Type

$_groupfunc

$_groupfunc : 

Type

$_groupsort

$_groupsort : 

Type

$_groupdistinct

$_groupdistinct : 

Type

$_maxmatches

$_maxmatches : 

Type

$_cutoff

$_cutoff : 

Type

$_retrycount

$_retrycount : 

Type

$_retrydelay

$_retrydelay : 

Type

$_anchor

$_anchor : 

Type

$_indexweights

$_indexweights : 

Type

$_ranker

$_ranker : 

Type

$_maxquerytime

$_maxquerytime : 

Type

$_fieldweights

$_fieldweights : 

Type

$_overrides

$_overrides : 

Type

$_select

$_select : 

Type

$_error

$_error : 

Type

$_warning

$_warning : 

Type

$_connerror

$_connerror : 

Type

$_reqs

$_reqs : 

Type

$_mbenc

$_mbenc : 

Type

$_arrayresult

$_arrayresult : 

Type

$_timeout

$_timeout : 

Type

Methods

SphinxClient()

SphinxClient() 

__destruct()

__destruct() 

GetLastError()

GetLastError() 

GetLastWarning()

GetLastWarning() 

IsConnectError()

IsConnectError() 

SetServer()

SetServer(  $host,   $port) 

Parameters

$host
$port

SetConnectTimeout()

SetConnectTimeout(  $timeout) 

Parameters

$timeout

_Send()

_Send(  $handle,   $data,   $length) 

Parameters

$handle
$data
$length

_MBPush()

_MBPush() 

_MBPop()

_MBPop() 

_Connect()

_Connect() 

_GetResponse()

_GetResponse(  $fp,   $client_ver) 

Parameters

$fp
$client_ver

SetLimits()

SetLimits(  $offset,   $limit,   $max,   $cutoff) 

Parameters

$offset
$limit
$max
$cutoff

SetMaxQueryTime()

SetMaxQueryTime(  $max) 

Parameters

$max

SetMatchMode()

SetMatchMode(  $mode) 

Parameters

$mode

SetRankingMode()

SetRankingMode(  $ranker) 

Parameters

$ranker

SetSortMode()

SetSortMode(  $mode,   $sortby = "") 

Parameters

$mode
$sortby

SetWeights()

SetWeights(  $weights) 

Parameters

$weights

SetFieldWeights()

SetFieldWeights(  $weights) 

Parameters

$weights

SetIndexWeights()

SetIndexWeights(  $weights) 

Parameters

$weights

SetIDRange()

SetIDRange(  $min,   $max) 

Parameters

$min
$max

SetFilter()

SetFilter(  $attribute,   $values,   $exclude = false) 

Parameters

$attribute
$values
$exclude

SetFilterRange()

SetFilterRange(  $attribute,   $min,   $max,   $exclude = false) 

Parameters

$attribute
$min
$max
$exclude

SetFilterFloatRange()

SetFilterFloatRange(  $attribute,   $min,   $max,   $exclude = false) 

Parameters

$attribute
$min
$max
$exclude

SetGeoAnchor()

SetGeoAnchor(  $attrlat,   $attrlong,   $lat,   $long) 

Parameters

$attrlat
$attrlong
$lat
$long

SetGroupBy()

SetGroupBy(  $attribute,   $func,   $groupsort = "@group desc") 

Parameters

$attribute
$func
$groupsort

SetGroupDistinct()

SetGroupDistinct(  $attribute) 

Parameters

$attribute

SetRetries()

SetRetries(  $count,   $delay) 

Parameters

$count
$delay

SetArrayResult()

SetArrayResult(  $arrayresult) 

Parameters

$arrayresult

SetOverride()

SetOverride(  $attrname,   $attrtype,   $values) 

Parameters

$attrname
$attrtype
$values

SetSelect()

SetSelect(  $select) 

Parameters

$select

ResetFilters()

ResetFilters() 

ResetGroupBy()

ResetGroupBy() 

ResetOverrides()

ResetOverrides() 

Query()

Query(  $query,   $index = "*",   $comment = "") 

Parameters

$query
$index
$comment

_PackFloat()

_PackFloat(  $f) 

Parameters

$f

AddQuery()

AddQuery(  $query,   $index = "*",   $comment = "") 

Parameters

$query
$index
$comment

RunQueries()

RunQueries() 

_ParseSearchResponse()

_ParseSearchResponse(  $response,   $nreqs) 

Parameters

$response
$nreqs

BuildExcerpts()

BuildExcerpts(  $docs,   $index,   $words,   $opts = array()) 

Parameters

$docs
$index
$words
$opts

BuildKeywords()

BuildKeywords(  $query,   $index,   $hits) 

Parameters

$query
$index
$hits

EscapeString()

EscapeString(  $string) 

Parameters

$string

UpdateAttributes()

UpdateAttributes(  $index,   $attrs,   $values,   $mva = false) 

Parameters

$index
$attrs
$values
$mva

Open()

Open() 

Close()

Close() 

Status()

Status()