private function getPhoneticQuery(ContainerConfigurationInterface $containerConfig, $queryText)
    {
        $relevanceConfig    = $containerConfig->getRelevanceConfig();
        $analyzer           = FieldInterface::ANALYZER_PHONETIC;
        $defaultSearchField = MappingInterface::DEFAULT_SPELLING_FIELD;
        $fuzzyFieldFilter   = $this->fieldFilters['fuzzyFieldFilter'];

        $searchFields = $this->getWeightedFields($containerConfig, $analyzer, $fuzzyFieldFilter, $defaultSearchField);

        $queryParams = [
            'fields'             => $searchFields,
            'queryText'          => $queryText,
            'minimumShouldMatch' => "100%",
            'tieBreaker'         => $relevanceConfig->getTieBreaker(),
            'cutoffFrequency'    => $relevanceConfig->getCutoffFrequency(),
        ];

        return $this->queryFactory->create(QueryInterface::TYPE_MULTIMATCH, $queryParams);
    }
private function getPhoneticQuery(ContainerConfigurationInterface $containerConfig, $queryText)
    {
        $relevanceConfig    = $containerConfig->getRelevanceConfig();
        $analyzer           = FieldInterface::ANALYZER_PHONETIC;
        $defaultSearchField = MappingInterface::DEFAULT_SPELLING_FIELD;
        $fuzzyFieldFilter   = $this->fieldFilters['fuzzyFieldFilter'];

        $searchFields = $this->getWeightedFields($containerConfig, $analyzer, $fuzzyFieldFilter, $defaultSearchField);

        $queryParams = [
            'fields'             => $searchFields,
            'queryText'          => $queryText,
            'minimumShouldMatch' => "100%",
            'tieBreaker'         => $relevanceConfig->getTieBreaker(),
            'cutoffFrequency'    => $relevanceConfig->getCutoffFrequency(),
        ];

        return $this->queryFactory->create(QueryInterface::TYPE_MULTIMATCH, $queryParams);
    }
private function getPhoneticQuery ( ContainerConfigurationInterface $ containerConfig , $ queryText ) { $ relevanceConfig = $ containerConfig -> getRelevanceConfig ( ) ; $ analyzer = FieldInterface :: ANALYZER_PHONETIC ; $ defaultSearchField = MappingInterface :: DEFAULT_SPELLING_FIELD ; $ fuzzyFieldFilter = $ this -> fieldFilters [ 'fuzzyFieldFilter' ] ; $ searchFields = $ this -> getWeightedFields ( $ containerConfig , $ analyzer , $ fuzzyFieldFilter , $ defaultSearchField ) ; $ queryParams = [ 'fields' => $ searchFields , 'queryText' => $ queryText , 'minimumShouldMatch' => "100%" , 'tieBreaker' => $ relevanceConfig -> getTieBreaker ( ) , 'cutoffFrequency' => $ relevanceConfig -> getCutoffFrequency ( ) , ] ; return $ this -> queryFactory -> create ( QueryInterface :: TYPE_MULTIMATCH , $ queryParams ) ; }
Phonentic query part.

@param ContainerConfigurationInterface $containerConfig Search request container configuration.
@param string                          $queryText       The text query.

@return QueryInterface
Phonentic query part .