PHP Class Smile\ElasticsuiteCore\Search\Request\ContainerConfiguration\RelevanceConfig

Author: Romain Ruaud ([email protected])
Inheritance: implements Smile\ElasticsuiteCore\Api\Search\Request\Container\RelevanceConfigurationInterface
Afficher le fichier Open project: smile-sa/elasticsuite

Méthodes publiques

Méthode Description
__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

Method Details

__construct() public méthode

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 méthode

public getCutOffFrequency ( ) : float
Résultat float

getFuzzinessConfiguration() public méthode

Retrieve FuzzinessConfiguration
public getFuzzinessConfiguration ( ) : Smile\ElasticsuiteCore\Api\Search\Request\Container\RelevanceConfiguration\FuzzinessConfigurationInterface | null
Résultat Smile\ElasticsuiteCore\Api\Search\Request\Container\RelevanceConfiguration\FuzzinessConfigurationInterface | null

getMinimumShouldMatch() public méthode

{@inheritDoc}

getPhoneticConfiguration() public méthode

Retrieve Phonetic Configuration
public getPhoneticConfiguration ( ) : Smile\ElasticsuiteCore\Api\Search\Request\Container\RelevanceConfiguration\PhoneticConfigurationInterface | null
Résultat Smile\ElasticsuiteCore\Api\Search\Request\Container\RelevanceConfiguration\PhoneticConfigurationInterface | null

getPhraseMatchBoost() public méthode

public getPhraseMatchBoost ( ) : integer | null
Résultat integer | null

getTieBreaker() public méthode

{@inheritDoc}
public getTieBreaker ( )

isFuzzinessEnabled() public méthode

Check if fuzziness is enabled
public isFuzzinessEnabled ( ) : boolean
Résultat boolean

isPhoneticSearchEnabled() public méthode

Check if phonetic search is enabled
public isPhoneticSearchEnabled ( ) : boolean
Résultat boolean