Concept Flow - Retrieving a document by ID
Start: Receive document ID
Send GET request to Elasticsearch
Elasticsearch searches index for ID
Document found?
No→Return 'not found' response
Yes
Return document data
End
The process starts with a document ID, sends a GET request to Elasticsearch, which searches the index. If found, it returns the document; otherwise, it returns a not found response.