private function searchByString($searchString, $rootClass, $offset, $limit)
    {
        /** @var Search $searchService */
        $searchService = $this->getServiceLocator()->get(Search::SERVICE_ID);
        /** @var ResultSet $result */
        $result = $searchService->query($searchString, $rootClass, $offset, $limit);
        $count = $result->getTotalCount();
        return $this->format($result, $count, $offset, $limit);
    }
private function searchByString($searchString, $rootClass, $offset, $limit)
    {
        /** @var Search $searchService */
        $searchService = $this->getServiceLocator()->get(Search::SERVICE_ID);
        /** @var ResultSet $result */
        $result = $searchService->query($searchString, $rootClass, $offset, $limit);
        $count = $result->getTotalCount();
        return $this->format($result, $count, $offset, $limit);
    }
private function searchByString ( $ searchString , $ rootClass , $ offset , $ limit ) { /** @var Search $searchService */ $ searchService = $ this -> getServiceLocator ( ) -> get ( Search :: SERVICE_ID ) ; /** @var ResultSet $result */ $ result = $ searchService -> query ( $ searchString , $ rootClass , $ offset , $ limit ) ; $ count = $ result -> getTotalCount ( ) ; return $ this -> format ( $ result , $ count , $ offset , $ limit ) ; }
Search using an advanced search string
@param string $searchString
@param \core_kernel_classes_Class $rootClass
@param int $offset
@param int $limit
@return array
Search using an advanced search string