Expand search result from a document id

Kibana does this, but I don't know how it works under the hood sorry :frowning: