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

        $analyzer = FieldInterface::ANALYZER_WHITESPACE;
        if (is_string($queryText) && str_word_count($queryText) > 1) {
            $analyzer = FieldInterface::ANALYZER_SHINGLE;
        }

        $defaultSearchField    = MappingInterface::DEFAULT_SEARCH_FIELD;
        $searchableFieldFilter = $this->fieldFilters['searchableFieldFilter'];

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

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

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

        $analyzer = FieldInterface::ANALYZER_WHITESPACE;
        if (is_string($queryText) && str_word_count($queryText) > 1) {
            $analyzer = FieldInterface::ANALYZER_SHINGLE;
        }

        $defaultSearchField    = MappingInterface::DEFAULT_SEARCH_FIELD;
        $searchableFieldFilter = $this->fieldFilters['searchableFieldFilter'];

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

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

        return $this->queryFactory->create(QueryInterface::TYPE_MULTIMATCH, $queryParams);
    }
private function getPureStopwordsQuery ( ContainerConfigurationInterface $ containerConfig , $ queryText , $ boost ) { $ relevanceConfig = $ containerConfig -> getRelevanceConfig ( ) ; $ analyzer = FieldInterface :: ANALYZER_WHITESPACE ; if ( is_string ( $ queryText ) && str_word_count ( $ queryText ) > 1 ) { $ analyzer = FieldInterface :: ANALYZER_SHINGLE ; } $ defaultSearchField = MappingInterface :: DEFAULT_SEARCH_FIELD ; $ searchableFieldFilter = $ this -> fieldFilters [ 'searchableFieldFilter' ] ; $ searchFields = $ this -> getWeightedFields ( $ containerConfig , $ analyzer , $ searchableFieldFilter , $ defaultSearchField ) ; $ queryParams = [ 'fields' => $ searchFields , 'queryText' => $ queryText , 'minimumShouldMatch' => "100%" , 'tieBreaker' => $ relevanceConfig -> getTieBreaker ( ) , 'boost' => $ boost , ] ; return $ this -> queryFactory -> create ( QueryInterface :: TYPE_MULTIMATCH , $ queryParams ) ; }
Build a query when the fulltext search query contains only stopwords.

@param ContainerConfigurationInterface $containerConfig Search request container configuration.
@param string                          $queryText       The text query.
@param float                           $boost           Boost of the created query.

@return QueryInterface
Build a query when the fulltext search query contains only stopwords .