Customize ElasticSearch and group into Utility function