Property | Type | Description | |
---|---|---|---|
$_name | the name of this suggestion |
Method | Description | |
---|---|---|
__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. |
public __construct ( string $name, string $field ) | ||
$name | string | |
$field | string |
public setPrefix ( $prefix ) |
public setRegex ( $regex ) |
public setRegexOptions ( array $value ) | ||
$value | array |
public setShardSize ( integer $size ) | ||
$size | integer | maximum number of suggestions to be retrieved from each shard |