Skip to content

Commit 2c6b3ac

Browse files
committed
[DOCS] Updates outdated references to Elastic::Transport
1 parent 0796ff5 commit 2c6b3ac

File tree

2 files changed

+7
-16
lines changed

2 files changed

+7
-16
lines changed

docs/advanced-config.asciidoc

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -319,18 +319,14 @@ Elasticsearch::Client.new(
319319
[[connection-selector]]
320320
==== Connection Selector
321321

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.
325323

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:
329325

330326
[source,ruby]
331327
------------------------------------
332328
class RackIdSelector
333-
include Elasticsearch::Transport::Transport::Connections::Selector::Base
329+
include Elastic::Transport::Transport::Connections::Selector::Base
334330
335331
def select(options={})
336332
connections.select do |c|
@@ -348,14 +344,9 @@ Elasticsearch::Client.new hosts: ['x1.search.org', 'x2.search.org'], selector_cl
348344
[[serializer-implementations]]
349345
==== Serializer Implementations
350346

351-
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.
354348

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.
359350

360351

361352
[discrete]

docs/basic-config.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ can use.
2424
| `resurrect_after` | Integer | Specifies after how many seconds a dead connection should be tried again.
2525
| `retry_on_failure` | Boolean, Number | Whether to retry X times when request fails before raising and exception. Defaults to `false`.
2626
| `retry_on_status` | Array, Number | Specifies which status code needs to be returned to retry.
27-
| `selector` | Constant | An instance of selector strategy implemented with {Elasticsearch::Transport::Transport::Connections::Selector::Base}.
27+
| `selector` | Constant | An instance of selector strategy implemented with {Elastic::Transport::Transport::Connections::Selector::Base}.
2828
| `send_get_body_as` | String | Specifies the HTTP method to use for GET requests with a body. Defaults to `GET`.
2929
| `serializer_class` | Constant | Specifies a serializer class to use. It is initialized by the transport and passed the transport instance.
3030
| `sniffer_timeout` | Integer | Specifieds the timeout for reloading connections in seconds. Defaults to `1`.
@@ -33,4 +33,4 @@ can use.
3333
| `transport` | Object | Specifies a transport instance.
3434
| `transport_class` | Constant | Specifies a transport class to use. It is initialized by the client and passed hosts and all arguments.
3535
| `transport_options` | Hash | Specifies the options to be passed to the `Faraday::Connection` constructor.
36-
|===
36+
|===

0 commit comments

Comments
 (0)