PHP Interface Smile\ElasticsuiteCore\Api\Search\SpellcheckerInterface

Author: Aurelien FOUCRET ([email protected])
Show file Open project: smile-sa/elasticsuite

Public Methods

Method Description
getSpellingType ( Smile\ElasticsuiteCore\Api\Search\Spellchecker\RequestInterface $request ) : integer Returns the type of spelling of a fultext query :

Method Details

getSpellingType() public method

- SPELLING_TYPE_EXACT : All terms of the text query exist and are exactly spelled. - SPELLING_TYPE_MOST_EXACT : All of the text query terms exist. Some are types using an analyzed form. - SPELLING_TYPE_MOST_FUZZY : At least one term of the text query was exists in the index. - SPELLING_TYPE_FUZZY : All terms of the text query was mispelled. - SPELLING_TYPE_PURE_STOPWORDS : All terms of the text query exist and are stopwords (a, the, ...).
public getSpellingType ( Smile\ElasticsuiteCore\Api\Search\Spellchecker\RequestInterface $request ) : integer
$request Smile\ElasticsuiteCore\Api\Search\Spellchecker\RequestInterface Spellchecking query.
return integer