public function reindex($storeId, $synonyms, $expansions)
    {
        $indexIdentifier = ThesaurusIndex::INDEX_IDENTIER;
        $indexName       = $this->indexSettingsHelper->createIndexNameFromIdentifier($indexIdentifier, $storeId);
        $indexAlias      = $this->indexSettingsHelper->getIndexAliasFromIdentifier($indexIdentifier, $storeId);
        $indexSettings   = ['settings' => $this->getIndexSettings($synonyms, $expansions)];
        $this->client->createIndex($indexName, $indexSettings);
        $this->indexManager->proceedIndexInstall($indexName, $indexAlias);
        $this->cacheHelper->cleanIndexCache(ThesaurusIndex::INDEX_IDENTIER, $storeId);
    }
public function reindex($storeId, $synonyms, $expansions)
    {
        $indexIdentifier = ThesaurusIndex::INDEX_IDENTIER;
        $indexName       = $this->indexSettingsHelper->createIndexNameFromIdentifier($indexIdentifier, $storeId);
        $indexAlias      = $this->indexSettingsHelper->getIndexAliasFromIdentifier($indexIdentifier, $storeId);
        $indexSettings   = ['settings' => $this->getIndexSettings($synonyms, $expansions)];
        $this->client->createIndex($indexName, $indexSettings);
        $this->indexManager->proceedIndexInstall($indexName, $indexAlias);
        $this->cacheHelper->cleanIndexCache(ThesaurusIndex::INDEX_IDENTIER, $storeId);
    }
public function reindex ( $ storeId , $ synonyms , $ expansions ) { $ indexIdentifier = ThesaurusIndex :: INDEX_IDENTIER ; $ indexName = $ this -> indexSettingsHelper -> createIndexNameFromIdentifier ( $ indexIdentifier , $ storeId ) ; $ indexAlias = $ this -> indexSettingsHelper -> getIndexAliasFromIdentifier ( $ indexIdentifier , $ storeId ) ; $ indexSettings = [ 'settings' => $ this -> getIndexSettings ( $ synonyms , $ expansions ) ] ; $ this -> client -> createIndex ( $ indexName , $ indexSettings ) ; $ this -> indexManager -> proceedIndexInstall ( $ indexName , $ indexAlias ) ; $ this -> cacheHelper -> cleanIndexCache ( ThesaurusIndex :: INDEX_IDENTIER , $ storeId ) ; }
Create the synonyms index for a store id.

@param integer  $storeId    Store id.
@param string[] $synonyms   Raw synonyms list.
@param string[] $expansions Raw expansions list.

@return void
Create the synonyms index for a store id .