Extensible and flexible model for ElasticSearch based on Moose