Exploratory development for https://github.com/FriendsOfSymfony/FOSElasticaBundle/issues/410