PHP Класс Smile\ElasticsuiteCore\Search\Request\ContainerConfiguration\RelevanceConfig

Автор: Romain Ruaud ([email protected])
Наследование: implements Smile\ElasticsuiteCore\Api\Search\Request\Container\RelevanceConfigurationInterface
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( string $minimumShouldMatch, float $tieBreaker, integer | null $phraseMatchBoost, float $cutOffFrequency, Smile\ElasticsuiteCore\Api\Search\Request\Container\RelevanceConfiguration\FuzzinessConfigurationInterface $fuzziness = null, Smile\ElasticsuiteCore\Api\Search\Request\Container\RelevanceConfiguration\PhoneticConfigurationInterface $phonetic = null ) RelevanceConfiguration constructor.
getCutOffFrequency ( ) : float
getFuzzinessConfiguration ( ) : Smile\ElasticsuiteCore\Api\Search\Request\Container\RelevanceConfiguration\FuzzinessConfigurationInterface | null Retrieve FuzzinessConfiguration
getMinimumShouldMatch ( ) {@inheritDoc}
getPhoneticConfiguration ( ) : Smile\ElasticsuiteCore\Api\Search\Request\Container\RelevanceConfiguration\PhoneticConfigurationInterface | null Retrieve Phonetic Configuration
getPhraseMatchBoost ( ) : integer | null
getTieBreaker ( ) {@inheritDoc}
isFuzzinessEnabled ( ) : boolean Check if fuzziness is enabled
isPhoneticSearchEnabled ( ) : boolean Check if phonetic search is enabled

Описание методов

__construct() публичный Метод

RelevanceConfiguration constructor.
public __construct ( string $minimumShouldMatch, float $tieBreaker, integer | null $phraseMatchBoost, float $cutOffFrequency, Smile\ElasticsuiteCore\Api\Search\Request\Container\RelevanceConfiguration\FuzzinessConfigurationInterface $fuzziness = null, Smile\ElasticsuiteCore\Api\Search\Request\Container\RelevanceConfiguration\PhoneticConfigurationInterface $phonetic = null )
$minimumShouldMatch string Minimum should match clause of the text query.
$tieBreaker float Tie breaker for multimatch queries.
$phraseMatchBoost integer | null The Phrase match boost value, or null if not enabled
$cutOffFrequency float The cutoff Frequency value
$fuzziness Smile\ElasticsuiteCore\Api\Search\Request\Container\RelevanceConfiguration\FuzzinessConfigurationInterface The fuzziness Configuration, or null
$phonetic Smile\ElasticsuiteCore\Api\Search\Request\Container\RelevanceConfiguration\PhoneticConfigurationInterface The phonetic Configuration, or null

getCutOffFrequency() публичный Метод

public getCutOffFrequency ( ) : float
Результат float

getFuzzinessConfiguration() публичный Метод

Retrieve FuzzinessConfiguration
public getFuzzinessConfiguration ( ) : Smile\ElasticsuiteCore\Api\Search\Request\Container\RelevanceConfiguration\FuzzinessConfigurationInterface | null
Результат Smile\ElasticsuiteCore\Api\Search\Request\Container\RelevanceConfiguration\FuzzinessConfigurationInterface | null

getMinimumShouldMatch() публичный Метод

{@inheritDoc}

getPhoneticConfiguration() публичный Метод

Retrieve Phonetic Configuration
public getPhoneticConfiguration ( ) : Smile\ElasticsuiteCore\Api\Search\Request\Container\RelevanceConfiguration\PhoneticConfigurationInterface | null
Результат Smile\ElasticsuiteCore\Api\Search\Request\Container\RelevanceConfiguration\PhoneticConfigurationInterface | null

getPhraseMatchBoost() публичный Метод

public getPhraseMatchBoost ( ) : integer | null
Результат integer | null

getTieBreaker() публичный Метод

{@inheritDoc}
public getTieBreaker ( )

isFuzzinessEnabled() публичный Метод

Check if fuzziness is enabled
public isFuzzinessEnabled ( ) : boolean
Результат boolean

isPhoneticSearchEnabled() публичный Метод

Check if phonetic search is enabled
public isPhoneticSearchEnabled ( ) : boolean
Результат boolean