1. Configure Tire to use the Bonsai ElasticSearch Heroku add-on
ENV['ELASTICSEARCH_URL'] = ENV['BONSAI_URL']
class Article include Tire::Model::Search include Tire::Model::Callbacks end
2. Create the index and import your documents
rake environment tire:import CLASS=Article FORCE=true
There are no "known issues" with Tire and Bonsai at the moment. Having trouble with something in particular? Drop us a line at email@example.com.
Custom index analyzers must be set at index creation time. Ability to dynamically create, modify and destroy indexes. Bulk import uses cluster-level
/_bulkhandler rather than the index-level
_bulkhandler, causing bulk imports to fail. Issue 327
- Multi-model search is not scoped within the index. Issue 322
index.settings. Bonsai shared cluster indices are mapped to a random identifier, whereas Tire expects the logical index name in the
_indexresponse. To be fixed within Bonsai. Email firstname.lastname@example.org if this is affecting you. Issue 386
ES Alias API not fully supported in Bonsai. Email email@example.com if you would like to beta test that.