Elasticsearch snippet controller.