PHP Класс Elastica\Suggest\AbstractSuggest

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

Защищенные свойства (Protected)

Свойство Тип Описание
$_name the name of this suggestion

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

Метод Описание
__construct ( string $name, string $field )
getName ( ) : string Retrieve the name of this suggestion.
setField ( string $field )
setName ( string $name ) Sets the name of the suggest. It is automatically set by the constructor.
setPrefix ( $prefix ) Suggest prefix must be set either globally or per suggestion.
setRegex ( $regex ) Suggest regex must be set either globally or per suggestion.
setRegexOptions ( array $value ) Expects one of the next params: max_determinized_states - defaults to 10000, flags are ALL (default), ANYSTRING, COMPLEMENT, EMPTY, INTERSECTION, INTERVAL, or NONE.
setShardSize ( integer $size )
setSize ( integer $size )
setText ( string $text ) Suggest text must be set either globally or per suggestion.

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

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

public __construct ( string $name, string $field )
$name string
$field string

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

Retrieve the name of this suggestion.
public getName ( ) : string
Результат string

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

public setField ( string $field )
$field string

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

Sets the name of the suggest. It is automatically set by the constructor.
public setName ( string $name )
$name string The name of the suggest

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

Suggest prefix must be set either globally or per suggestion.
public setPrefix ( $prefix )

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

Suggest regex must be set either globally or per suggestion.
public setRegex ( $regex )

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

Expects one of the next params: max_determinized_states - defaults to 10000, flags are ALL (default), ANYSTRING, COMPLEMENT, EMPTY, INTERSECTION, INTERVAL, or NONE.
public setRegexOptions ( array $value )
$value array

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

public setShardSize ( integer $size )
$size integer maximum number of suggestions to be retrieved from each shard

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

public setSize ( integer $size )
$size integer

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

Suggest text must be set either globally or per suggestion.
public setText ( string $text )
$text string

Описание свойств

$_name защищенное свойство

the name of this suggestion
protected $_name