What is a Document?
In Elasticsearch, document refers to the top-level, or root object that is serialized into JSON and stored in Elasticsearch under a unique ID.
_index
An index is like a database in a relational database; it’s the place we store and index related data. An index name must be lowercase, cannot begin with an underscore, and cannot ocntain commas.
_type
We use the same type for documents that represents the same class of thing, because they share the same data structure.
Every type has own mapping or schema definition, which defines the data structure for documents of that type., much like the columns in a database table.
Autogenerating IDs
Retrieving Part of a Document
Updating a Whole Document
Creating a New Document
Deleting a Document
Partial Updates to Documents
Using Scripts to Make Partial Updates
Retrieving Multiple Documents
Cheaper in Bulk