aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2018-01-15 19:30:01 -0500
committerAlec Warner <antarus@gentoo.org>2018-01-15 19:30:01 -0500
commit5f40a6faaf4b57ad264b31c7159042a126b0f5fe (patch)
treeb45bc9b410a4ad11e17b8a2767b1c3f31b945ebc /config
parentUpdate Elasticsearch gems to 6.0.0 (diff)
downloadpackages-5f40a6faaf4b57ad264b31c7159042a126b0f5fe.tar.gz
packages-5f40a6faaf4b57ad264b31c7159042a126b0f5fe.tar.bz2
packages-5f40a6faaf4b57ad264b31c7159042a126b0f5fe.zip
Update elasticsearch queries.
Similar to the previous commit: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-filtered-query.html documents that query => filtered semantic is deprecated. This fixes more references.
Diffstat (limited to 'config')
-rw-r--r--config/initializers/elasticsearch.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/initializers/elasticsearch.rb b/config/initializers/elasticsearch.rb
index 9be3660..71a032a 100644
--- a/config/initializers/elasticsearch.rb
+++ b/config/initializers/elasticsearch.rb
@@ -1,10 +1,10 @@
require 'elasticsearch/persistence/model'
-Elasticsearch::Persistence.client = Elasticsearch::Client.new host: ENV['ELASTICSEARCH_URL'] || 'localhost:9200'
+Elasticsearch::Persistence.client = Elasticsearch::Client.new host: ENV['ELASTICSEARCH_URL'] || 'elasticsearch:9300'
if Rails.env.development?
logger = ActiveSupport::Logger.new(STDERR)
logger.level = Logger::INFO
logger.formatter = proc { |s, d, p, m| "\e[2m#{m}\n\e[0m" }
Elasticsearch::Persistence.client.transport.logger = logger
-end \ No newline at end of file
+end