June 2017
Beginner to intermediate
404 pages
8h 22m
English
Elasticsearch documents are JSON objects. A field in the document can be a simple integer or an entire object. For example, the person document as shown next contains name, which is a simple text field, and address, which is an object. And an address can also have inner objects. The person object is shown here:
{ "id": 1, "name": "User1", "address": { "street": "123 High Lane", "city": "Big City" } }
Unlike a simple data type, when an object is stored into inverted index, it is broken down into key-value pairs. The person document is stored as shown here:
{ "id": 1, "name": "User1", "address.street": "123 High Lane", "address.city": "Big City" }
Since the object is stored as key-value pairs, it gets tricky when you have an array ...
Read now
Unlock full access