Skip to content

Commit a111857

Browse files
Apply suggestions from code review
Co-authored-by: Steve Gordon <[email protected]>
1 parent 222183d commit a111857

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/configuration.asciidoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33

44
Connecting to {es} with the client is easy, but it's possible that you'd like to
55
change the default connection behaviour. There are a number of configuration
6-
options available on `ConnectionSettings` that can be used to control how the
6+
options available on `ElasticsearchClientSettings` that can be used to control how the
77
client interact with {es}.
88

9-
=== Options on ConnectionConfiguration
9+
=== Options on ElasticsearchClientSettings
1010

1111
The following is a list of available connection configuration options on
12-
`ConnectionConfiguration`:
12+
`ElasticsearchClientSettings`:
1313

1414
`Authentication`::
1515

@@ -233,13 +233,13 @@ Specify how the mapping is inferred for a given CLR type. The mapping can infer
233233
the index, id and relation name for a given CLR type, as well as control
234234
serialization behaviour for CLR properties.
235235

236-
==== ConnectionSettings with ElasticClient
236+
==== ElasticsearchClientSettings with ElasticsearchClient
237237

238238
Here's an example to demonstrate setting configuration options using the client.
239239

240240
[source,csharp]
241241
----
242-
var connectionSettings = new ConnectionSettings()
242+
var settings= new ElasticsearchClientSettings()
243243
.DefaultMappingFor<Project>(i => i
244244
.IndexName("my-projects")
245245
.IdProperty(p => p.Name)
@@ -248,5 +248,5 @@ var connectionSettings = new ConnectionSettings()
248248
.PrettyJson()
249249
.RequestTimeout(TimeSpan.FromMinutes(2));
250250
251-
var client = new ElasticClient(connectionSettings);
251+
var client = new ElasticsearchClient(settings);
252252
----

0 commit comments

Comments
 (0)