sphinx\Query $snippetOptions

$snippetOptions public property Query options for the call snippet. public array $snippetOptions = null

sphinx\Query $snippetCallback

$snippetCallback public property PHP callback, which should be used to fetch source data for the snippets. Such callback will receive array of query result rows as an argument and must return the array of snippet source strings in the order, which match one of incoming rows. For example: $query = new Query(); $query->from('idx_item') ->match('pencil') ->snippetCallback(function ($rows) { $result = []; foreach ($rows as $row) { $result[] = file_ge

sphinx\Query $showMeta

$showMeta public property Whether to automatically perform 'SHOW META' query against main one. You may set this value to be string or yii\db\Expression instance, in this case its value will be used as 'LIKE' condition for 'SHOW META' statement. You need to use search() method in order to fetch 'meta' results. public boolean|string|yii\db\Expression $showMeta = null

sphinx\Query $options

$options public property Per-query options in format: optionName => optionValue They will compose OPTION clause. This is a Sphinx specific extension that lets you control a number of per-query options. public array $options = null

sphinx\Query $match

$match public property Text, which should be searched in fulltext mode. This value will be composed into MATCH operator inside the WHERE clause. Note: this value will be processed by yii\sphinx\Connection::escapeMatchValue(), if you need to compose complex match condition use yii\db\Expression, see match() for details. public string|yii\db\Expression $match = null

sphinx\Query $groupLimit

$groupLimit public property (available since version 2.0.6) Groups limit: to return (no more than) N top matches for each group. This option will take effect only if groupBy() is set. public integer $groupLimit = null

sphinx\Query $facets

$facets public property Facet search specifications. For example: [ 'group_id', 'brand_id' => [ 'order' => ['COUNT(*)' => SORT_ASC], ], 'price' => [ 'select' => 'INTERVAL(price,200,400,600,800) AS price', 'order' => ['FACET()' => SORT_ASC], ], 'name_in_json' => [ 'select' => [new Expression('json_attr.name AS name_in_json')], ], ] You need to use search() method in order to fetch facet results. Note: if

sphinx\Query $connection

$connection public property Sphinx connection instance public yii\sphinx\Connection getConnection ( )public $this setConnection ( $connection )

sphinx\MatchExpression __construct()

__construct() public method Constructor. public void __construct ( $match = null, $params = [], $config = [] )$match string The MATCH expression $params array Expression parameters. $config array Name-value pairs that will be used to initialize the object properties

sphinx\MatchExpression params()

params() public method Sets the parameters to be parsed into the query. See also addParams(). public $this params ( $params )$params array List of expression parameter values indexed by parameter placeholders. For example, [':name' => 'Dan', ':age' => 31]. return $this The expression object itself