config/elasticsearch.yml

Summary

Maintainability
Test Coverage
default: &DEFAULT
  hosts: <%= ENV['ES_HOSTS'] || 'localhost:9200' %>
  user: <%= ENV['ES_USERNAME'] || 'elastic' %>
  password: <%= ENV['ES_PASSWORD'] || 'changeme' %>
  number_of_shards: 1
  log: true
  log_level: DEBUG

development:
  <<: *DEFAULT

test:
  <<: *DEFAULT

staging:
  <<: *DEFAULT

production:
  <<: *DEFAULT
  number_of_shards: 3