private function getCutoffFrequencyQuery(ContainerConfigurationInterface $containerConfig, $queryText)
    {
        $relevanceConfig = $containerConfig->getRelevanceConfig();

        $queryParams = [
            'fields'             => array_fill_keys([MappingInterface::DEFAULT_SEARCH_FIELD, 'sku'], 1),
            'queryText'          => $queryText,
            'cutoffFrequency'    => $relevanceConfig->getCutOffFrequency(),
            'minimumShouldMatch' => $relevanceConfig->getMinimumShouldMatch(),
        ];

        return $this->queryFactory->create(QueryInterface::TYPE_MULTIMATCH, $queryParams);
    }
private function getCutoffFrequencyQuery(ContainerConfigurationInterface $containerConfig, $queryText)
    {
        $relevanceConfig = $containerConfig->getRelevanceConfig();

        $queryParams = [
            'fields'             => array_fill_keys([MappingInterface::DEFAULT_SEARCH_FIELD, 'sku'], 1),
            'queryText'          => $queryText,
            'cutoffFrequency'    => $relevanceConfig->getCutOffFrequency(),
            'minimumShouldMatch' => $relevanceConfig->getMinimumShouldMatch(),
        ];

        return $this->queryFactory->create(QueryInterface::TYPE_MULTIMATCH, $queryParams);
    }
private function getCutoffFrequencyQuery ( ContainerConfigurationInterface $ containerConfig , $ queryText ) { $ relevanceConfig = $ containerConfig -> getRelevanceConfig ( ) ; $ queryParams = [ 'fields' => array_fill_keys ( [ MappingInterface :: DEFAULT_SEARCH_FIELD , 'sku' ] , 1 ) , 'queryText' => $ queryText , 'cutoffFrequency' => $ relevanceConfig -> getCutOffFrequency ( ) , 'minimumShouldMatch' => $ relevanceConfig -> getMinimumShouldMatch ( ) , ] ; return $ this -> queryFactory -> create ( QueryInterface :: TYPE_MULTIMATCH , $ queryParams ) ; }
Provides a common search query for the searched text.

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

@return QueryInterface
Provides a common search query for the searched text .