```ruby
#encoding: utf-8
if ENV["SEARCHBOX_URL"]
	Searchkick.client = Elasticsearch::Client.new({url: ENV['SEARCHBOX_URL'], logs: true})
elsif Rails.env == "test"
	Searchkick.client = Elasticsearch::Client.new({url: "http://localhost:8081", logs: true})
elsif Rails.env == "development"
	Searchkick.client = Elasticsearch::Client.new({url: "http://localhost:8081", logs: true})
end
```

Reset elasticsearch to use default port
user
```ruby
#encoding: utf-8
if ENV["SEARCHBOX_URL"]
	Searchkick.client = Elasticsearch::Client.new({url: ENV['SEARCHBOX_URL'], logs: true})
elsif Rails.env == "test"
	Searchkick.client = Elasticsearch::Client.new({url: "http://localhost:9200", logs: true})
elsif Rails.env == "development"
	Searchkick.client = Elasticsearch::Client.new({url: "http://localhost:9200", logs: true})
end
```
assistant