|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| __construct (ScopeConfigInterface $scopeConfig, ClientResolver $clientResolver=null, EngineResolverInterface $engineResolver=null, $prefix=null) | |
| prepareClientOptions ($options=[]) | |
| getElasticsearchConfigData ($field, $storeId=null) | |
| getSearchConfigData ($field, $storeId=null) | |
| isElasticsearchEnabled () | |
| getIndexPrefix () | |
| getEntityType () | |
Data Fields | |
| const | ENGINE_NAME = 'elasticsearch' |
| const | ELASTICSEARCH_TYPE_DOCUMENT = 'document' |
| const | ELASTICSEARCH_TYPE_DEFAULT = 'product' |
| const | ELASTICSEARCH_DEFAULT_TIMEOUT = 15 |
Protected Attributes | |
| $scopeConfig | |
| __construct | ( | ScopeConfigInterface | $scopeConfig, |
| ClientResolver | $clientResolver = null, |
||
| EngineResolverInterface | $engineResolver = null, |
||
$prefix = null |
|||
| ) |
Constructor
| ScopeConfigInterface | $scopeConfig | |
| ClientResolver | null | $clientResolver | |
| EngineResolverInterface | null | $engineResolver | |
| string | null | $prefix |
Definition at line 74 of file Config.php.
| getElasticsearchConfigData | ( | $field, | |
$storeId = null |
|||
| ) |
Retrieve information from Elasticsearch search engine configuration
| string | $field | |
| int | $storeId |
Definition at line 114 of file Config.php.
| getEntityType | ( | ) |
Get Elasticsearch entity type
Definition at line 161 of file Config.php.
| getIndexPrefix | ( | ) |
Get Elasticsearch index prefix
Definition at line 150 of file Config.php.
| getSearchConfigData | ( | $field, | |
$storeId = null |
|||
| ) |
Retrieve information from search engine configuration
| string | $field | |
| int | null | $storeId |
Definition at line 127 of file Config.php.
| isElasticsearchEnabled | ( | ) |
Return true if third party search engine is used
Definition at line 139 of file Config.php.
| prepareClientOptions | ( | $options = [] | ) |
Return search client options
| array | $options |
Implements ClientOptionsInterface.
Definition at line 91 of file Config.php.
|
protected |
Definition at line 49 of file Config.php.
| const ELASTICSEARCH_DEFAULT_TIMEOUT = 15 |
Default Elasticsearch server timeout
Definition at line 43 of file Config.php.
| const ELASTICSEARCH_TYPE_DEFAULT = 'product' |
Elasticsearch default Entity type
Definition at line 38 of file Config.php.
| const ELASTICSEARCH_TYPE_DOCUMENT = 'document' |
Elasticsearch Entity type
Definition at line 33 of file Config.php.
| const ENGINE_NAME = 'elasticsearch' |
Search engine name
Definition at line 26 of file Config.php.