PHP 클래스 Smile\ElasticsuiteCore\Search\Adapter\Elasticsuite\Spellchecker

This implementation rely on the ES term vectors API.
저자: Aurelien FOUCRET ([email protected])
상속: implements Smile\ElasticsuiteCore\Api\Search\SpellcheckerInterface
파일 보기 프로젝트 열기: smile-sa/elasticsuite

공개 메소드들

메소드 설명
__construct ( Smile\ElasticsuiteCore\Api\Client\ClientFactoryInterface $clientFactory, Cache $cacheHelper ) Constructor.
getSpellingType ( Smile\ElasticsuiteCore\Api\Search\Spellchecker\RequestInterface $request ) {@inheritDoc}

비공개 메소드들

메소드 설명
extractTermStatsByPoisition ( array $termVectors ) : array Extract term stats by position from a term vectors query response.
getAnalyzer ( string $propertyName ) : string Extract analayser from a mapping property name.
getCacheKey ( Smile\ElasticsuiteCore\Api\Search\Spellchecker\RequestInterface $request ) : string Compute an unique caching key for the spellcheck request.
getCutoffrequencyLimit ( Smile\ElasticsuiteCore\Api\Search\Spellchecker\RequestInterface $request ) : integer Count document into the index and then multiply it by the request cutoff frequency to compute an absolute cutoff frequency limit (max numbre of doc).
getTermVectors ( Smile\ElasticsuiteCore\Api\Search\Spellchecker\RequestInterface $request ) : array Run a term vectors query against the index and return the result.
loadSpellingType ( Smile\ElasticsuiteCore\Api\Search\Spellchecker\RequestInterface $request ) : integer Compute the spelling time using the engine.
parseTermVectors ( array $termVectors, integer $cutoffFrequencyLimit ) : array Parse the terms vectors to extract stats on the query.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Smile\ElasticsuiteCore\Api\Client\ClientFactoryInterface $clientFactory, Cache $cacheHelper )
$clientFactory Smile\ElasticsuiteCore\Api\Client\ClientFactoryInterface ES Client Factory.
$cacheHelper Smile\ElasticsuiteCore\Helper\Cache ES cache helper.

getSpellingType() 공개 메소드

{@inheritDoc}
public getSpellingType ( Smile\ElasticsuiteCore\Api\Search\Spellchecker\RequestInterface $request )
$request Smile\ElasticsuiteCore\Api\Search\Spellchecker\RequestInterface