private function updateSearchContext($storeId, $queryText)
    {
        $this->searchContext->setStoreId($storeId);
        $query = $this->queryFactory->create();
        $query->setStoreId($storeId);
        $query->loadByQueryText($queryText);

        if ($query->getId()) {
            $this->searchContext->setCurrentSearchQuery($query);
        }
    }
private function updateSearchContext($storeId, $queryText)
    {
        $this->searchContext->setStoreId($storeId);
        $query = $this->queryFactory->create();
        $query->setStoreId($storeId);
        $query->loadByQueryText($queryText);

        if ($query->getId()) {
            $this->searchContext->setCurrentSearchQuery($query);
        }
    }
private function updateSearchContext ( $ storeId , $ queryText ) { $ this -> searchContext -> setStoreId ( $ storeId ) ; $ query = $ this -> queryFactory -> create ( ) ; $ query -> setStoreId ( $ storeId ) ; $ query -> loadByQueryText ( $ queryText ) ; if ( $ query -> getId ( ) ) { $ this -> searchContext -> setCurrentSearchQuery ( $ query ) ; } }
Update the search context using current store id and query text.

@param integer $storeId   Store id.
@param string  $queryText Fulltext query text.

@return void
Update the search context using current store id and query text .