socialcast/elastic_searchable — Issue #16: Should support ELASTICSEARCH_URL env var for easier Heroku integration
Author: nz
Created: 2012-02-13 17:40:47+00:00
State: open

Hi @wireframe,

The ElasticSearch addon now in alpha at Heroku provides the ELASTICSEARCH_URL environment variable to specify where the index lives. Is there a way to facilitate integration for Heroku apps that want to use elastic_searchable?

To get more specific, I'm curious if the `base_uri` method already does the job…

```ruby
ElasticSearchable.base_uri ENV['ELASTICSEARCH_URL']
```

Is that a reasonable approach?

Also, how about using that environment variable as the default when it is present and `base_uri` is not otherwise specified?

Just thinking out loud here, let me know your thoughts.

Also if you want to try out that ES addon alpha at Heroku I can set that up. Just send me a message with your account email address :)

—Nick