original_string: public function index()
      {
          $params = $this->basicElasticParams(true);
          $params['body'] = $this->documentFields();
  
          return $this->getElasticClient()->index($params);
      }
code: public function index()
      {
          $params = $this->basicElasticParams(true);
          $params['body'] = $this->documentFields();
  
          return $this->getElasticClient()->index($params);
      }
code_tokens: public function index ( ) { $ params = $ this -> basicElasticParams ( true ) ; $ params [ 'body' ] = $ this -> documentFields ( ) ; return $ this -> getElasticClient ( ) -> index ( $ params ) ; }
docstring: Indexes the model in Elasticsearch.
  
  @return array
docstring_tokens: Indexes the model in Elasticsearch .