June 2017
Beginner to intermediate
404 pages
8h 22m
English
We discussed in the previous section that the data you index is only available for search after one second. That's because the refresh process runs once a second and makes the data searchable by writing it to the inverted index. But when you retrieve a document by its ID, you will always get the latest data.
When you retrieve a document by its ID, Elasticsearch will check the translog to see if the translog contains the latest data that is not committed to the inverted index yet.
Although documents are searchable only after the refresh process runs, when a document is retrieved using its ID, you will always get the latest data.
Read now
Unlock full access