PHP 클래스 Elastica\Suggest\AbstractSuggest

상속: extends Elastica\Param
파일 보기 프로젝트 열기: ruflin/Elastica 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_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