AngularJS directives for Elasticsearch