PHP Class sngrl\SphinxSearch\SphinxSearch

Show file Open project: sngrl/sphinxsearch

Protected Properties

Property Type Description
$_config
$_connection
$_eager_loads
$_index_name
$_raw_mysql_connection
$_search_string
$_time
$_total_count

Public Methods

Method Description
__construct ( )
escapeStringQL ( $string )
excerpt ( $content, $opts = [] )
excerpts ( $contents, $opts = [] )
filter ( $attribute, $values, $exclude = false )
get ( $respect_sort_order = false )
getErrorMessage ( )
getSnippetsQL ( $docs, $index_name, $query, $extra = [] ) : array
getTime ( )
getTotalCount ( )
limit ( $limit, $offset, $max_matches = 1000, $cutoff = 1000 )
query ( )
range ( $attribute, $min, $max, $exclude = false )
search ( $string, $index_name = null )
setFieldWeights ( $weights )
setFilterFloatRange ( $attribute, $min, $max, $exclude = false )
setGeoAnchor ( $attrlat, $attrlong, $lat = null, $long = null )
setGroupBy ( $attribute, $func, $groupsort = '@group desc' )
setMatchMode ( $mode )
setRankingMode ( $mode )
setSelect ( $select )
setSortMode ( $mode, $sortby = null )
with ( )

Private Methods

Method Description
getResultKeyByID ( $id, $result )

Method Details

__construct() public method

public __construct ( )

escapeStringQL() public method

public escapeStringQL ( $string )

excerpt() public method

public excerpt ( $content, $opts = [] )

excerpts() public method

public excerpts ( $contents, $opts = [] )

filter() public method

public filter ( $attribute, $values, $exclude = false )

get() public method

public get ( $respect_sort_order = false )

getErrorMessage() public method

public getErrorMessage ( )

getSnippetsQL() public method

public getSnippetsQL ( $docs, $index_name, $query, $extra = [] ) : array
$docs
$index_name
$query
return array

getTime() public method

public getTime ( )

getTotalCount() public method

public getTotalCount ( )

limit() public method

public limit ( $limit, $offset, $max_matches = 1000, $cutoff = 1000 )

query() public method

public query ( )

range() public method

public range ( $attribute, $min, $max, $exclude = false )

setFieldWeights() public method

public setFieldWeights ( $weights )

setFilterFloatRange() public method

public setFilterFloatRange ( $attribute, $min, $max, $exclude = false )

setGeoAnchor() public method

public setGeoAnchor ( $attrlat, $attrlong, $lat = null, $long = null )

setGroupBy() public method

public setGroupBy ( $attribute, $func, $groupsort = '@group desc' )

setMatchMode() public method

public setMatchMode ( $mode )

setRankingMode() public method

public setRankingMode ( $mode )

setSelect() public method

public setSelect ( $select )

setSortMode() public method

public setSortMode ( $mode, $sortby = null )

with() public method

public with ( )

Property Details

$_config protected property

protected $_config

$_connection protected property

protected $_connection

$_eager_loads protected property

protected $_eager_loads

$_index_name protected property

protected $_index_name

$_raw_mysql_connection protected property

protected $_raw_mysql_connection

$_search_string protected property

protected $_search_string

$_time protected property

protected $_time

$_total_count protected property

protected $_total_count