Basic configuration
editBasic configuration
editThe table below contains the most important initialization parameters that you can use.
Parameter |
Data type |
Description |
|
Symbol |
A specific adapter for Faraday (for example, |
|
String, Hash |
For API key Authentication. Either the base64 encoding of |
|
Boolean |
Whether to compress requests. Gzip compression is used. Defaults to |
|
Boolean |
Whether to enable sending the meta data header to Cloud. Defaults to |
|
String, Array |
Single host passed as a string or hash, or multiple hosts passed as an array; |
|
Boolean |
Whether to use the default logger. Disabled by default. |
|
Object |
An instance of a Logger-compatible object. |
|
String |
Sets a prefix for X-Opaque-Id when initializing the client. This is prepended to the id you set before each request if you’re using X-Opaque-Id. |
|
Boolean |
Whether to shuffle connections on initialization and reload. Defaults to |
|
Boolean, Number |
Whether to reload connections after X requests. Defaults to |
|
Boolean |
Whether to reload connections after failure. Defaults to |
|
Integer |
The request timeout to be passed to transport in options. |
|
Integer |
Specifies after how many seconds a dead connection should be tried again. |
|
Boolean, Number |
Whether to retry X times when request fails before raising and exception. Defaults to |
|
Array, Number |
Specifies which status code needs to be returned to retry. |
|
Constant |
An instance of selector strategy implemented with {Elasticsearch::Transport::Transport::Connections::Selector::Base}. |
|
String |
Specifies the HTTP method to use for GET requests with a body. Defaults to |
|
Constant |
Specifies a serializer class to use. It is initialized by the transport and passed the transport instance. |
|
Integer |
Specifieds the timeout for reloading connections in seconds. Defaults to |
|
Boolean |
Whether to use the default tracer. Disabled by default. |
|
Object |
Specifies an instance of a Logger-compatible object. |
|
Object |
Specifies a transport instance. |
|
Constant |
Specifies a transport class to use. It is initialized by the client and passed hosts and all arguments. |
|
Hash |
Specifies the options to be passed to the |