METAMODEL-77: Introduction of Alberto Rodriguez' ElasticSearch patch.
Fixed unittest (failed on Java 8 because of non-deterministic ES
sorting)