Property | Type | Description | |
---|---|---|---|
$categoryCollectionFactory | Smile\ElasticsuiteCatalog\Model\ResourceModel\Category\Fulltext\CollectionFactory | ||
$configurationHelper | |||
$itemFactory | Autocomplete result item factory | ||
$queryFactory | Magento\Search\Model\QueryFactory | Query factory | |
$termDataProvider |
Method | Description | |
---|---|---|
__construct ( |
Constructor. | |
getItems ( ) | {@inheritDoc} | |
getType ( ) : string |
Method | Description | |
---|---|---|
getCategoryCollection ( ) : |
Suggested categories collection. | |
getResultsPageSize ( ) : integer | Retrieve number of categories to display in autocomplete results | |
getSuggestedTerms ( ) : array | List of search terms suggested by the search terms data provider. |
public __construct ( |
||
$itemFactory | Suggest item factory. | |
$queryFactory | Magento\Search\Model\QueryFactory | Search query factory. |
$termDataProvider | Search terms suggester. | |
$categoryCollectionFactory | Smile\ElasticsuiteCatalog\Model\ResourceModel\Category\Fulltext\CollectionFactory | Category collection factory. |
$configurationHelper | Autocomplete configuration helper. | |
$type | string | Autocomplete provider type. |
protected CollectionFactory,Smile\ElasticsuiteCatalog\Model\ResourceModel\Category\Fulltext $categoryCollectionFactory | ||
return | Smile\ElasticsuiteCatalog\Model\ResourceModel\Category\Fulltext\CollectionFactory |
protected Autocomplete,Smile\ElasticsuiteCatalog\Helper $configurationHelper | ||
return |
protected ItemFactory,Smile\ElasticsuiteCatalog\Model\Autocomplete\Category $itemFactory | ||
return |
protected QueryFactory,Magento\Search\Model $queryFactory | ||
return | Magento\Search\Model\QueryFactory |