3
3
4
4
Connecting to {es} with the client is easy, but it's possible that you'd like to
5
5
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
7
7
client interact with {es}.
8
8
9
- === Options on ConnectionConfiguration
9
+ === Options on ElasticsearchClientSettings
10
10
11
11
The following is a list of available connection configuration options on
12
- `ConnectionConfiguration `:
12
+ `ElasticsearchClientSettings `:
13
13
14
14
`Authentication`::
15
15
@@ -233,13 +233,13 @@ Specify how the mapping is inferred for a given CLR type. The mapping can infer
233
233
the index, id and relation name for a given CLR type, as well as control
234
234
serialization behaviour for CLR properties.
235
235
236
- ==== ConnectionSettings with ElasticClient
236
+ ==== ElasticsearchClientSettings with ElasticsearchClient
237
237
238
238
Here's an example to demonstrate setting configuration options using the client.
239
239
240
240
[source,csharp]
241
241
----
242
- var connectionSettings = new ConnectionSettings ()
242
+ var settings = new ElasticsearchClientSettings ()
243
243
.DefaultMappingFor<Project>(i => i
244
244
.IndexName("my-projects")
245
245
.IdProperty(p => p.Name)
@@ -248,5 +248,5 @@ var connectionSettings = new ConnectionSettings()
248
248
.PrettyJson()
249
249
.RequestTimeout(TimeSpan.FromMinutes(2));
250
250
251
- var client = new ElasticClient(connectionSettings );
251
+ var client = new ElasticsearchClient(settings );
252
252
----
0 commit comments