Adds the elasticsearch_plugin method.