original_string: public function search($handler_id, $query, array $options = array())
      {
          if (!isset($options['language'])) {
              $options['language'] = 'und';
          }
  
          $result = null;
          $this->hook->attach('search', $handler_id, $query, $options, $result, $this);
  
          if (isset($result)) {
              return $result;
          }
  
          $filtered = $this->filterStopwords($query, $options['language']);
  
          if (empty($filtered)) {
              return null;
          }
  
          return $this->callHandler($handler_id, 'search', array($filtered, $options, $this));
      }
code: public function search($handler_id, $query, array $options = array())
      {
          if (!isset($options['language'])) {
              $options['language'] = 'und';
          }
  
          $result = null;
          $this->hook->attach('search', $handler_id, $query, $options, $result, $this);
  
          if (isset($result)) {
              return $result;
          }
  
          $filtered = $this->filterStopwords($query, $options['language']);
  
          if (empty($filtered)) {
              return null;
          }
  
          return $this->callHandler($handler_id, 'search', array($filtered, $options, $this));
      }
code_tokens: public function search ( $ handler_id , $ query , array $ options = array ( ) ) { if ( ! isset ( $ options [ 'language' ] ) ) { $ options [ 'language' ] = 'und' ; } $ result = null ; $ this -> hook -> attach ( 'search' , $ handler_id , $ query , $ options , $ result , $ this ) ; if ( isset ( $ result ) ) { return $ result ; } $ filtered = $ this -> filterStopwords ( $ query , $ options [ 'language' ] ) ; if ( empty ( $ filtered ) ) { return null ; } return $ this -> callHandler ( $ handler_id , 'search' , array ( $ filtered , $ options , $ this ) ) ; }
docstring: Returns an array of items found for the search query
  @param string $handler_id
  @param string $query
  @param array $options
  @return mixed
docstring_tokens: Returns an array of items found for the search query