[WIP]hydrate record entity from elasticsearch data and use it for display purpose

It's not the right place to write that, but this is a quite complex expression, IMO it should be abstracted to a Twig function extension.