RubyGems Navigation menu

bonsai-elasticsearch-rails 7.0.1

This gem offers a shim to connect Rails apps with a Bonsai Elasticsearch cluster. The official Elasticsearch gem package requires some minor configuration tweaks in order to work correctly with Bonsai (namely the client needs to be instantiated with the cluster location and HTTP authentication details), and the process can be somewhat complicated for users who are unfamiliar with the system. The bonsai-elasticsearch-rails gem automatically sets up the Elasticsearch client correctly so users don't need to worry about configuring it in their code or writing an initializer. In order for the gem to work correctly, the application needs an environment variable called `BONSAI_URL`, which is populated with the complete Bonsai Elaticsearch cluster URL, including the HTTP authentication. The cluster URL will follow this pattern: https://user1234:pass5678@cluster-slug-123.aws-region-X.bonsai.io/ On Heroku, this variable is created and populated automatically when Bonsai is added to the application. Heroku users therefore do not need to perform any additional configuration to connect to their cluster after adding the bonsai-elasticsearch-rails gem. Users who are self-hosting their Rails app will need to make sure this environment variable is present: export BONSAI_URL="https://user1234:pass5678@aws-region-X.bonsai.io/" The cluster URL is available via the Bonsai dashboard.

Gemfile:
=

安装:
=

版本列表:

  1. 7.0.1 August 11, 2018 (5.5 KB)
  2. 6.0.0 August 11, 2018 (5.5 KB)
  3. 5.0.0 August 11, 2018 (5.5 KB)
  4. 2.0.0 August 11, 2018 (5.5 KB)
  5. 1.0.0 August 11, 2018 (5.5 KB)
显示所有版本 (共 12 个)

Runtime 依赖 (2):

Development 依赖 (2):

bundler ~> 1
rake < 11.0

业主:

作者:

  • Rob Sears, Nick Zadrozny

SHA 256 校验和:

=

下载总量 171,590

这个版本 76,005

版本发布:

许可:

MIT

需要的 Ruby 版本: >= 0

链接: