From 7a1bf0faa27d2b3df00e94d6356b4cd78f31e072 Mon Sep 17 00:00:00 2001
From: Marcela Ribeiro de Oliveira <mro15@inf.ufpr.br>
Date: Wed, 10 May 2017 10:45:54 -0300
Subject: [PATCH] initializer to elasticsearch

---
 config/initializers/elasticsearch.rb | 6 ++++++
 1 file changed, 6 insertions(+)
 create mode 100644 config/initializers/elasticsearch.rb

diff --git a/config/initializers/elasticsearch.rb b/config/initializers/elasticsearch.rb
new file mode 100644
index 00000000..e591a06b
--- /dev/null
+++ b/config/initializers/elasticsearch.rb
@@ -0,0 +1,6 @@
+Searchkick.client =
+    Elasticsearch::Client.new(
+        url: 'localhost:9200',
+        transport_options: {request: {timeout: 550}}
+    )
+
-- 
GitLab