From bd71da03f54dd0c1b892d60472d05a4fe2be441e Mon Sep 17 00:00:00 2001 From: Fumihiro Xue Date: Sat, 21 Apr 2018 09:00:01 +0800 Subject: [PATCH] Add missing step to README --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 4c82a75..0cfd520 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,16 @@ defmodule MyApp.ElasticsearchCluster do end ``` +Once you have created your cluster, add it to your application's supervision tree: + + children = [ + MyApp.ElasticsearchCluster + ] + +Finally, you can issue requests to Elasticsearch using it. + + Elasticsearch.get(MyApp.ElasticsearchCluster, "/_cat/health") + ## Configuration See the annotated example configuration below.