$this->name, 'body' => [ 'doc' => $this->body->es() ] ]; if ($this->id) { $es['id'] = $this->id; } return $es; } }