public function index()
    {
        $params = $this->basicElasticParams(true);
        $params['body'] = $this->documentFields();

        return $this->getElasticClient()->index($params);
    }
public function index()
    {
        $params = $this->basicElasticParams(true);
        $params['body'] = $this->documentFields();

        return $this->getElasticClient()->index($params);
    }
public function index ( ) { $ params = $ this -> basicElasticParams ( true ) ; $ params [ 'body' ] = $ this -> documentFields ( ) ; return $ this -> getElasticClient ( ) -> index ( $ params ) ; }
Indexes the model in Elasticsearch.

@return array
Indexes the model in Elasticsearch .