PHP Class Smile\ElasticsuiteThesaurus\Model\ResourceModel\Indexer\Thesaurus

Author: Aurelien FOUCRET ([email protected])
Inheritance: extends Smile\ElasticsuiteThesaurus\Model\ResourceModel\Thesaurus
Show file Open project: smile-sa/elasticsuite Class Usage Examples

Public Methods

Method Description
getExpansions ( integer $storeId ) : string[] Build a list of expansions into the Lucene format (foo => bar).
getSynonyms ( integer $storeId ) : string[] Build a list of synonyms into the Lucene format (foo,bar).

Private Methods

Method Description
getBaseSelect ( integer $storeId, string $type ) : Magento\Framework\DB\Select Base select for thesaurus terms select by store id.

Method Details

getExpansions() public method

Build a list of expansions into the Lucene format (foo => bar).
public getExpansions ( integer $storeId ) : string[]
$storeId integer Store id.
return string[]

getSynonyms() public method

Build a list of synonyms into the Lucene format (foo,bar).
public getSynonyms ( integer $storeId ) : string[]
$storeId integer Store id.
return string[]