PHP 클래스 Smile\ElasticsuiteCore\Search\Request\ContainerConfiguration\RelevanceConfig\Factory

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

공개 메소드들

메소드 설명
__construct ( Magento\Framework\ObjectManagerInterface $objectManager, string $instanceName = 'Smile\ElasticsuiteCore\Api\Search\Request\Container\RelevanceConfigurationInterface' ) Constructor.
create ( integer $storeId, string $containerName ) : Smile\ElasticsuiteCore\Api\Search\Request\Container\RelevanceConfigurationInterface Retrieve relevance configuration for a container.

보호된 메소드들

메소드 설명
getConfigValue ( string $path, string $scopeCode ) : mixed Read value into the config by path and scope.
loadConfiguration ( string $scopeCode ) : array Load the relevance configuration by scope code.

비공개 메소드들

메소드 설명
createFuzzinessConfiguration ( array $configurationParams ) : Smile\ElasticsuiteCore\Api\Search\Request\Container\RelevanceConfiguration\FuzzinessConfigurationInterface Create a Fuzziness Configuration Object
getCutoffFrequencyConfiguration ( string $scopeCode ) : float Retrieve cutoff frequency for a container.
getFuzzinessConfiguration ( string $scopeCode ) : Smile\ElasticsuiteCore\Api\Search\Request\Container\RelevanceConfiguration\FuzzinessConfigurationInterface | null Retrieve fuzziness configuration object.
getMinimumShouldMatch ( string $scopeCode ) : string Retrieve minimum should match config for a container.
getPhoneticConfiguration ( string $scopeCode ) : Smile\ElasticsuiteCore\Api\Search\Request\Container\RelevanceConfiguration\PhoneticConfigurationInterface | null Retrieve phonetic configuration object
getPhraseMatchBoostConfiguration ( string $scopeCode ) : boolean | integer Retrieve phrase boost configuration for a container.
getScopeCode ( integer $storeId, string | null $containerName ) : string Retrieve current scope code
getTieBreaker ( string $scopeCode ) : float Retrieve tie breaker config for a container.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Magento\Framework\ObjectManagerInterface $objectManager, string $instanceName = 'Smile\ElasticsuiteCore\Api\Search\Request\Container\RelevanceConfigurationInterface' )
$objectManager Magento\Framework\ObjectManagerInterface Object manager.
$instanceName string Config class name.

create() 공개 메소드

Retrieve relevance configuration for a container.
public create ( integer $storeId, string $containerName ) : Smile\ElasticsuiteCore\Api\Search\Request\Container\RelevanceConfigurationInterface
$storeId integer Store id.
$containerName string Container identifier.
리턴 Smile\ElasticsuiteCore\Api\Search\Request\Container\RelevanceConfigurationInterface

getConfigValue() 보호된 메소드

Read value into the config by path and scope.
protected getConfigValue ( string $path, string $scopeCode ) : mixed
$path string Config path.
$scopeCode string Scope coode.
리턴 mixed

loadConfiguration() 보호된 메소드

Load the relevance configuration by scope code.
protected loadConfiguration ( string $scopeCode ) : array
$scopeCode string Container scope code.
리턴 array