public function getQueryRewrites(ContainerConfigurationInterface $containerConfig, $queryText)
    {
        $cacheKey  = $this->getCacheKey($containerConfig, $queryText);
        $cacheTags = $this->getCacheTags($containerConfig);

        $queryRewrites = $this->cacheHelper->loadCache($cacheKey);

        if ($queryRewrites === false) {
            $queryRewrites = $this->computeQueryRewrites($containerConfig, $queryText);
            $this->cacheHelper->saveCache($cacheKey, $queryRewrites, $cacheTags);
        }

        return $queryRewrites;
    }
public function getQueryRewrites(ContainerConfigurationInterface $containerConfig, $queryText)
    {
        $cacheKey  = $this->getCacheKey($containerConfig, $queryText);
        $cacheTags = $this->getCacheTags($containerConfig);

        $queryRewrites = $this->cacheHelper->loadCache($cacheKey);

        if ($queryRewrites === false) {
            $queryRewrites = $this->computeQueryRewrites($containerConfig, $queryText);
            $this->cacheHelper->saveCache($cacheKey, $queryRewrites, $cacheTags);
        }

        return $queryRewrites;
    }
public function getQueryRewrites ( ContainerConfigurationInterface $ containerConfig , $ queryText ) { $ cacheKey = $ this -> getCacheKey ( $ containerConfig , $ queryText ) ; $ cacheTags = $ this -> getCacheTags ( $ containerConfig ) ; $ queryRewrites = $ this -> cacheHelper -> loadCache ( $ cacheKey ) ; if ( $ queryRewrites === false ) { $ queryRewrites = $ this -> computeQueryRewrites ( $ containerConfig , $ queryText ) ; $ this -> cacheHelper -> saveCache ( $ cacheKey , $ queryRewrites , $ cacheTags ) ; } return $ queryRewrites ; }
Provides weigthed rewrites for the query.

@param ContainerConfigurationInterface $containerConfig Search request container config.
@param string                          $queryText       Fulltext query.

@return array
Provides weigthed rewrites for the query .