Smile\ElasticsuiteCore\Search\Request\ContainerConfiguration\RelevanceConfig\Factory::getPhraseMatchBoostConfiguration PHP Method

getPhraseMatchBoostConfiguration() private method

Retrieve phrase boost configuration for a container.
private getPhraseMatchBoostConfiguration ( string $scopeCode ) : boolean | integer
$scopeCode string The scope code
return boolean | integer
    private function getPhraseMatchBoostConfiguration($scopeCode)
    {
        $path = self::BASE_RELEVANCE_CONFIG_XML_PREFIX . "/" . self::PHRASE_MATCH_CONFIG_XML_PREFIX;
        $boost = (bool) $this->getConfigValue($path . "/enable_phrase_match", $scopeCode);
        if ($boost === true) {
            $boost = (int) $this->getConfigValue($path . "/phrase_match_boost_value", $scopeCode);
        }
        return $boost;
    }