src/ORM/Search/SearchContext.php
public function getResults($searchParams, $sort = false, $limit = false)
    {
        $searchParams = array_filter((array)$searchParams, array($this, 'clearEmptySearchFields'));

        // getQuery actually returns a DataList
        return $this->getQuery($searchParams, $sort, $limit);
    }
public function getResults($searchParams, $sort = false, $limit = false)
    {
        $searchParams = array_filter((array)$searchParams, array($this, 'clearEmptySearchFields'));

        // getQuery actually returns a DataList
        return $this->getQuery($searchParams, $sort, $limit);
    }
public function getResults ( $ searchParams , $ sort = false , $ limit = false ) { $ searchParams = array_filter ( ( array ) $ searchParams , array ( $ this , 'clearEmptySearchFields' ) ) ; // getQuery actually returns a DataList return $ this -> getQuery ( $ searchParams , $ sort , $ limit ) ; }
Returns a result set from the given search parameters.

@todo rearrange start and limit params to reflect DataObject

@param array $searchParams
@param array|bool|string $sort
@param array|bool|string $limit
@return DataList
@throws Exception
Returns a result set from the given search parameters .