Method |
Description |
|
addCandidateGenerator ( Elastica\Suggest\CandidateGenerator\AbstractCandidateGenerator $generator ) |
|
|
setAnalyzer ( string $analyzer ) |
|
|
setConfidence ( float $confidence ) |
Set the factor applied to the input phrases score to be used as a threshold for other suggestion candidates. |
|
setGramSize ( integer $size ) |
Set the max size of the n-grams (shingles) in the field. |
|
setHighlight ( string $preTag, string $postTag ) |
Set suggestion highlighting. |
|
setLaplaceSmoothing ( float $alpha = 0.5 ) |
|
|
setLinearInterpolationSmoothing ( float $trigramLambda, float $bigramLambda, float $unigramLambda ) |
|
|
setMaxErrors ( float $max ) |
Set the maximum percentage of the terms considered to be misspellings in order to form a correction. |
|
setRealWordErrorLikelihood ( float $likelihood ) |
Set the likelihood of a term being misspelled even if the term exists in the dictionary. |
|
setSeparator ( string $separator ) |
|
|
setSmoothingModel ( string $model, array $params ) |
|
|
setStupidBackoffSmoothing ( float $discount = 0.4 ) |
|
|
toArray ( ) |
|
|