private function appendSearch(QueryBuilder $builder, array $criteria)
    {
        if (false === $this->isSearchQuery($criteria)) {
            return $this;
        }
        $builder->selectMeta('searchScore', 'textScore');
        $builder->sortMeta('searchScore', 'textScore');
        return $this;
    }
private function appendSearch(QueryBuilder $builder, array $criteria)
    {
        if (false === $this->isSearchQuery($criteria)) {
            return $this;
        }
        $builder->selectMeta('searchScore', 'textScore');
        $builder->sortMeta('searchScore', 'textScore');
        return $this;
    }
private function appendSearch ( QueryBuilder $ builder , array $ criteria ) { if ( false === $ this -> isSearchQuery ( $ criteria ) ) { return $ this ; } $ builder -> selectMeta ( 'searchScore' , 'textScore' ) ; $ builder -> sortMeta ( 'searchScore' , 'textScore' ) ; return $ this ; }
Appends text search score and sorting to a Query Builder.

@param   QueryBuilder    $builder
@param   array           $criteria
@return  self
Appends text search score and sorting to a Query Builder .