KGzocha\Searcher\Context\Doctrine\ODMBuilderSearchingContext::getResults PHP Method

getResults() public method

If you want to be sure that Searcher will return results as an array or \Traversable you can use already implemented WrappedResultsSearcher as an adapter.
public getResults ( ) : mixed
return mixed
    public function getResults()
    {
        return $this->getQueryBuilder()->getQuery()->execute();
    }