RubyGems Navigation menu

bonsai-elasticsearch-rails 0.2.0

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.

Versions:

  1. 0.2.0 - October 27, 2016 (5.5 KB)
  2. 0.1.0 - September 6, 2016 (5 KB)
  3. 0.0.4 - April 2, 2014 (6 KB)
  4. 0.0.2 - April 2, 2014 (6 KB)
Show all versions (5 total)

Development Dependencies (2):

Authors:

  • Rob Sears, Nick Zadrozny

Owners:

27957cc2958dd621e090e6ef2f58d0f1Ddda1dd4ee56d572205407f74e5f55bb

SHA 256 checksum:

1156d77e5003cc17899ac432f9df1bbbbe104c17205843bb3d26620015ba0826

Total downloads 26,005

For this version 563

Gemfile:
= Copy to clipboard Copied!

install:
=

License:

MIT

Required Ruby Version: >= 0

Links: