Overview - Why documents are the unit of data
What is it?
In Elasticsearch, data is stored and managed as documents. A document is a basic unit of information that contains structured data in a format like JSON. Each document represents a single entity or record, such as a user profile or a product listing. This approach makes it easy to store, search, and retrieve data efficiently.
Why it matters
Using documents as the unit of data allows Elasticsearch to handle complex and varied information flexibly. Without documents, data would be stored in rigid tables or rows, making it harder to index and search quickly. Documents enable fast, full-text search and easy scaling, which is crucial for applications like search engines and analytics platforms.
Where it fits
Before learning why documents are the unit of data, you should understand basic data storage concepts and JSON format. After this, you can explore how Elasticsearch indexes documents and performs searches, and then learn about mapping and querying documents in detail.