private function getPhoneticConfiguration($scopeCode)
{
$path = self::PHONETIC_CONFIG_XML_PREFIX;
$configuration = (bool) $this->getConfigValue($path . "/enable", $scopeCode);
if ($configuration) {
$phoneticFuzziness = (bool) $this->getConfigValue($path . "/enable_fuzziness", $scopeCode);
$configurationParams = ['fuzziness' => null];
if ($phoneticFuzziness === true) {
$fuzzinessParams = ['value' => $this->getConfigValue($path . "/fuzziness_value", $scopeCode), 'prefixLength' => $this->getConfigValue($path . "/fuzziness_prefix_length", $scopeCode), 'maxExpansion' => $this->getConfigValue($path . "/fuzziness_max_expansion", $scopeCode)];
$configurationParams['fuzziness'] = $this->createFuzzinessConfiguration($fuzzinessParams);
}
$configuration = $this->objectManager->create('\\Smile\\ElasticsuiteCore\\Api\\Search\\Request\\Container\\RelevanceConfiguration\\PhoneticConfigurationInterface', $configurationParams);
}
return $configuration === false ? null : $configuration;
}