Currently we return the whole elasticsearch answer at the retrieve endpoint. This exposes elasticsearch internals to the client and imposes an unnecessary format dependency.
The results should be converted into a specific JSON-based output format and then returned to the client.