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