Categories: None [Edit]
bonsai-elasticsearch-rails
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:[email protected]/
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:[email protected]/"
The cluster URL is available via the Bonsai dashboard.
Total
Ranking: 11,894 of 182,915
Downloads: 170,421
Daily
Ranking: 16,059 of 182,900
Downloads: 26
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|
Depends on
Rank | Downloads | Name |
---|---|---|
1 | 2,379,033,295 | bundler |
10 | 945,559,759 | rake |
712 | 59,511,994 | elasticsearch-model |
782 | 51,612,738 | elasticsearch-rails |