PHP 클래스 Smile\ElasticsuiteCore\Helper\IndexSettings

저자: Aurelien FOUCRET ([email protected])
상속: extends AbstractConfiguration
파일 보기 프로젝트 열기: smile-sa/elasticsuite 1 사용 예제들

공개 메소드들

메소드 설명
createIndexNameFromIdentifier ( string $indexIdentifier, integer | string | Magento\Store\Api\Data\StoreInterface $store ) : string Create a new index for an identifier (eg. catalog_product) by store including current date.
getBatchIndexingSize ( ) : integer Get number the batch indexing size from the configuration.
getIndexAliasFromIdentifier ( string $indexIdentifier, integer | string | Magento\Store\Api\Data\StoreInterface $store ) : string Returns the index alias for an identifier (eg. catalog_product) by store.
getLanguageCode ( integer | string | Magento\Store\Api\Data\StoreInterface $store ) : string Return the locale code (eg.: "en") for a store.
getLocaleCode ( integer | string | Magento\Store\Api\Data\StoreInterface $store ) : string Return the locale code (eg.: "en_US") for a store.
getNumberOfReplicas ( ) : integer Get number of replicas from the configuration.
getNumberOfShards ( ) : integer Get number of shards from the configuration.

비공개 메소드들

메소드 설명
getIndexAlias ( ) : string Get the index alias from the configurarion.
getIndicesSettingsConfigParam ( string $configField ) : mixed Read config under the path smile_elasticsuite_core_base_settings/indices_settings.
getStore ( integer | string | Magento\Store\Api\Data\StoreInterface $store ) : Magento\Store\Api\Data\StoreInterface Ensure store is an object or load it from it's id / identifier.
getStoreCode ( Magento\Store\Api\Data\StoreInterface | integer $store ) : string Retrieve the store code from object or store id.

메소드 상세

createIndexNameFromIdentifier() 공개 메소드

Create a new index for an identifier (eg. catalog_product) by store including current date.
public createIndexNameFromIdentifier ( string $indexIdentifier, integer | string | Magento\Store\Api\Data\StoreInterface $store ) : string
$indexIdentifier string Index identifier.
$store integer | string | Magento\Store\Api\Data\StoreInterface The store.
리턴 string

getBatchIndexingSize() 공개 메소드

Get number the batch indexing size from the configuration.
public getBatchIndexingSize ( ) : integer
리턴 integer

getIndexAliasFromIdentifier() 공개 메소드

Returns the index alias for an identifier (eg. catalog_product) by store.
public getIndexAliasFromIdentifier ( string $indexIdentifier, integer | string | Magento\Store\Api\Data\StoreInterface $store ) : string
$indexIdentifier string An index identifier.
$store integer | string | Magento\Store\Api\Data\StoreInterface The store.
리턴 string

getLanguageCode() 공개 메소드

Return the locale code (eg.: "en") for a store.
public getLanguageCode ( integer | string | Magento\Store\Api\Data\StoreInterface $store ) : string
$store integer | string | Magento\Store\Api\Data\StoreInterface The store.
리턴 string

getLocaleCode() 공개 메소드

Return the locale code (eg.: "en_US") for a store.
public getLocaleCode ( integer | string | Magento\Store\Api\Data\StoreInterface $store ) : string
$store integer | string | Magento\Store\Api\Data\StoreInterface The store.
리턴 string

getNumberOfReplicas() 공개 메소드

Get number of replicas from the configuration.
public getNumberOfReplicas ( ) : integer
리턴 integer

getNumberOfShards() 공개 메소드

Get number of shards from the configuration.
public getNumberOfShards ( ) : integer
리턴 integer