Skip to content

Commit

Permalink
Added docs for client_options - closes #1648 [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Sep 24, 2023
1 parent ee5780e commit 2386176
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1483,7 +1483,15 @@ ENV["ELASTICSEARCH_URL"] = "https://user:password@host1,https://user:password@ho
ENV["OPENSEARCH_URL"] = "https://user:password@host1,https://user:password@host2"
```

See [elastic-transport](https://github.com/elastic/elastic-transport-ruby) or [opensearch-transport](https://github.com/opensearch-project/opensearch-ruby/tree/main/opensearch-transport) for a complete list of options.
### Client Options

Create an initializer with:

```ruby
Searchkick.client_options[:reload_connections] = true
```

See the docs for [Elasticsearch](https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/advanced-config.html) or [Opensearch](https://rubydoc.info/gems/opensearch-transport#configuration) for a complete list of options.

### Lograge

Expand Down

0 comments on commit 2386176

Please sign in to comment.