Copy-and-paste from ElasticSearch plugin to get started