Chapter 1
Let’s Build an Employee Directory
A single document represents a single employee.
The act of stroring data in Elasticsearch is called indexing.
You can draw some rough parallels to a traditional relational database.
1. Index (noun) An index is like a database in a traditional realtional database.
2. Index(verb) To index a document is to store a document in an index (noun) so that it can be retrieved and queried.
3. Inverted index By default, every filed in a document is indexed(has an inverted index) and thus is searchable. A filed without an inverted index is not searchable.
Analystics
Elasticsearch has functionality called aggregations, which allow you to generate sophisticated analytics over your data.
It is similar to GROUP BY in SQL, but much more powerful.