original_string: public function search($q)
      {
          $api = new Search($q);
          if (!$this->getHttpClient()) {
              $this->setHttpClient();
          }
          if (!$this->getEntityFactory()) {
              $this->setEntityFactory();
          }
          return $api->registerDiffbot($this);
      }
code: public function search($q)
      {
          $api = new Search($q);
          if (!$this->getHttpClient()) {
              $this->setHttpClient();
          }
          if (!$this->getEntityFactory()) {
              $this->setEntityFactory();
          }
          return $api->registerDiffbot($this);
      }
code_tokens: public function search ( $ q ) { $ api = new Search ( $ q ) ; if ( ! $ this -> getHttpClient ( ) ) { $ this -> setHttpClient ( ) ; } if ( ! $ this -> getEntityFactory ( ) ) { $ this -> setEntityFactory ( ) ; } return $ api -> registerDiffbot ( $ this ) ; }
docstring: Search query.
  @see https://www.diffbot.com/dev/docs/search/#query
  @param string $q
  @return Search
docstring_tokens: Search query .