You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/advanced-config.asciidoc
+5-14Lines changed: 5 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -319,18 +319,14 @@ Elasticsearch::Client.new(
319
319
[[connection-selector]]
320
320
==== Connection Selector
321
321
322
-
By default, the client rotates the connections in a round-robin fashion, using
323
-
the `Elasticsearch::Transport::Transport::Connections::Selector::RoundRobin`
324
-
strategy.
322
+
By default, the client rotates the connections in a round-robin fashion, using the `Elastic::Transport::Transport::Connections::Selector::RoundRobin` strategy.
325
323
326
-
You can implement your own strategy to customize the behaviour. For example,
327
-
let's have a "rack aware" strategy, which prefers the nodes with a specific
328
-
attribute. The strategy uses the other nodes, only when these are unavailable:
324
+
You can implement your own strategy to customize the behaviour. For example, let's have a "rack aware" strategy, which prefers the nodes with a specific attribute. The strategy uses the other nodes, only when these are unavailable:
329
325
330
326
[source,ruby]
331
327
------------------------------------
332
328
class RackIdSelector
333
-
include Elasticsearch::Transport::Transport::Connections::Selector::Base
329
+
include Elastic::Transport::Transport::Connections::Selector::Base
By default, the https://rubygems.org/gems/multi_json[MultiJSON] library is used
352
-
as the serializer implementation, and it picks up the "right" adapter based on
353
-
gems available.
347
+
By default, the https://rubygems.org/gems/multi_json[MultiJSON] library is used as the serializer implementation, and it picks up the "right" adapter based on gems available.
354
348
355
-
The serialization component is pluggable, though, so you can write your own by
356
-
including the `Elasticsearch::Transport::Transport::Serializer::Base` module,
357
-
implementing the required contract, and passing it to the client as the
358
-
`serializer_class` or `serializer` parameter.
349
+
The serialization component is pluggable, though, so you can write your own by including the `Elastic::Transport::Transport::Serializer::Base` module, implementing the required contract, and passing it to the client as the `serializer_class` or `serializer` parameter.
0 commit comments