May 2017
Beginner to intermediate
596 pages
15h 2m
English
Now that we have document indexed, let's access it and observe how it looks after getting stored in Elasticsearch.
In order to perform this, we would access the document by Id. Getting document by Id is a very important way to access the document from Elasticsearch as it is always real-time, and does not depend on refresh cycles.
A general syntax to access the document by Id is GET {index-name}/{type}/{id}, as shown here:
GET datalake/contacts/101
Figure 26: Query to Get Document By IdAs we see in the preceding snapshot: