Skip to content

Commit 645ccb7

Browse files
committed
[CLIENT] Add note to readme about the default port value
1 parent 8be8a14 commit 645ccb7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

elasticsearch-transport/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ Another way to configure the URL(s) is to export the `ELASTICSEARCH_URL` variabl
106106
The client will automatically round-robin across the hosts
107107
(unless you select or implement a different [connection selector](#connection-selector)).
108108

109+
### Default port
110+
111+
The default port is `9200`. Please specify a port for your host(s) if they differ from this default.
112+
109113
### Connect using an Elastic Cloud ID
110114

111115
If you are using [Elastic Cloud](https://www.elastic.co/cloud), you can provide your cloud id to the client.
@@ -155,7 +159,7 @@ You can customize the default logger or tracer:
155159
client.transport.logger.formatter = proc { |s, d, p, m| "#{s}: #{m}\n" }
156160
client.transport.logger.level = Logger::INFO
157161

158-
Or, you can use a custom {::Logger} instance:
162+
Or, you can use a custom `::Logger` instance:
159163

160164
Elasticsearch::Client.new logger: Logger.new(STDERR)
161165

0 commit comments

Comments
 (0)