```ruby
require "tire"

# Taken from config/boot.rb
APP_ENV  = ENV['APP_ENV'] ||= ENV['RACK_ENV'] ||= 'development'  unless defined?(APP_ENV)
APP_ROOT = File.expand_path('../..', __FILE__).gsub(/releases\/[0-9]+/, "current") unless defined?(APP_ROOT)

es_config = YAML.load_file(File.join(APP_ROOT, "config", "elasticsearch.yml"))
config = es_config[APP_ENV]

Tire::Model::Search.index_prefix config["index_prefix"]
```

Configure ES url and log
user
```ruby
require "tire"

# Taken from config/boot.rb
APP_ENV  = ENV['APP_ENV'] ||= ENV['RACK_ENV'] ||= 'development'  unless defined?(APP_ENV)
APP_ROOT = File.expand_path('../..', __FILE__).gsub(/releases\/[0-9]+/, "current") unless defined?(APP_ROOT)

es_config = YAML.load_file(File.join(APP_ROOT, "config", "elasticsearch.yml"))
config = es_config[APP_ENV]

Tire::Model::Search.index_prefix config["index_prefix"]

Tire.configure do
  logger File.expand_path(config["log"], APP_ROOT) if config["log"]
  url config["url"] if config["url"]
end
```
assistant