PHP Класс Smile\ElasticsuiteThesaurus\Model\Indexer\IndexHandler

Автор: Aurelien FOUCRET ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( Smile\ElasticsuiteCore\Api\Client\ClientFactoryInterface $clientFactory, Smile\ElasticsuiteCore\Api\Index\IndexOperationInterface $indexManager, IndexSettings $indexSettingsHelper, Cache $cacheHelper ) Constructor.
reindex ( integer $storeId, string[] $synonyms, string[] $expansions ) : void Create the synonyms index for a store id.

Приватные методы

Метод Описание
addAnalyzerSettings ( array $settings, string $type, string[] $values ) : array Append an analyzer for a thesaurus to existing settings.
getIndexSettings ( string[] $synonyms, string[] $expansions ) : array Returns index settings.
prepareSynonymFilterData ( string[] $rows ) : string[] Prepare the thesaurus data to be saved.

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( Smile\ElasticsuiteCore\Api\Client\ClientFactoryInterface $clientFactory, Smile\ElasticsuiteCore\Api\Index\IndexOperationInterface $indexManager, IndexSettings $indexSettingsHelper, Cache $cacheHelper )
$clientFactory Smile\ElasticsuiteCore\Api\Client\ClientFactoryInterface ES Client factory.
$indexManager Smile\ElasticsuiteCore\Api\Index\IndexOperationInterface ES index management tool
$indexSettingsHelper Smile\ElasticsuiteCore\Helper\IndexSettings Index settings helper.
$cacheHelper Smile\ElasticsuiteCore\Helper\Cache ES caching helper.

reindex() публичный Метод

Create the synonyms index for a store id.
public reindex ( integer $storeId, string[] $synonyms, string[] $expansions ) : void
$storeId integer Store id.
$synonyms string[] Raw synonyms list.
$expansions string[] Raw expansions list.
Результат void