Joining two documents with a unique session Id

Is it possible to join two documents in Elasticsearch based on the same session ID? The goal is to create a visualization that shows the field in one of the documents together with another field from the other document. for example, the two documents are request and response documents but then only the request document has a response type as success but not the response document.

I not only want to view the response with both documents but want to join several other fields from the request document.

You can look at: