Editing Data
There are two ways to edit data in Elasticsearch: using the table and using the JSON editor dialog.
Edit data in the table
![Edit data in table](https://www.elasticsearch-idea.com/images/docs/features/edit-data/edit-table.webp)
To add a new row to the table, click the button in the toolbar.
To delete row, click the
button.
To edit cell, double-click it.
The changes are highlighted in the table. After all changes are made, click the button to preview changes
or
to submit them.
![Preview changes](https://www.elasticsearch-idea.com/images/docs/features/edit-data/preview-changes.webp)
Create new document
To open Add New Document dialog click button or press ⌘ N.
Specify the parameters if needed and put the document in the editor.
![Add new document](https://www.elasticsearch-idea.com/images/docs/features/edit-data/add_new_document.webp)
Update document
To open Update Document dialog select the document to edit and click button or press ⌘ B.
You can select one or many documents by selecting rows in table view or putting the cursor at the document in JSON view.
The Update Document dialog supports passing a partial document, which is merged into the existing document. To fully replace an existing document, use Add New Document dialog with disabled Create checkbox.
![Update document](https://www.elasticsearch-idea.com/images/docs/features/edit-data/update-document.webp)
Delete document
To delete document select the document and click or press ⌦.
You can select the document by selecting the row in table view or putting the cursor at the document in JSON view.
In the confirmation dialog confirm delete.
![Delete document](https://www.elasticsearch-idea.com/images/docs/features/edit-data/delete_document.webp)