PHP Класс Elastica\Query\Prefix

Наследование: extends AbstractQuery
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( array $prefix = [] ) Constructs the Prefix query object.
setPrefix ( string $key, string | array $value, float $boost = 1 ) Adds a prefix to the prefix query.
setRawPrefix ( array $prefix ) setRawPrefix can be used instead of setPrefix if some more special values for a prefix have to be set.

Описание методов

__construct() публичный Метод

Constructs the Prefix query object.
public __construct ( array $prefix = [] )
$prefix array OPTIONAL Calls setRawPrefix with the given $prefix array

setPrefix() публичный Метод

Adds a prefix to the prefix query.
public setPrefix ( string $key, string | array $value, float $boost = 1 )
$key string Key to query
$value string | array Values(s) for the query. Boost can be set with array
$boost float OPTIONAL Boost value (default = 1.0)

setRawPrefix() публичный Метод

setRawPrefix can be used instead of setPrefix if some more special values for a prefix have to be set.
public setRawPrefix ( array $prefix )
$prefix array Prefix array