Skip to content

Commit 2c434a9

Browse files
committed
[DOCS] Combines settings of two sections into one.
1 parent a111857 commit 2c434a9

File tree

1 file changed

+28
-33
lines changed

1 file changed

+28
-33
lines changed

docs/configuration.asciidoc

Lines changed: 28 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,34 @@ the `HttpClientHandler` instances used by the `HttpClient` inside the default
5050
The time to put dead nodes out of rotation (this will be multiplied by the
5151
number of times they've been dead).
5252

53+
`DefaultDisableIdInference`::
54+
55+
Disables automatic Id inference for given CLR types.
56+
+
57+
The client by default will use the value of a property named `Id` on a CLR type
58+
as the `_id` to send to {es}. Adding a type will disable this behaviour for that
59+
CLR type. If `Id` inference should be disabled for all CLR types, use
60+
`DefaultDisableIdInference`.
61+
62+
`DefaultFieldNameInferrer`::
63+
64+
Specifies how field names are inferred from CLR property names.
65+
+
66+
By default, the client camel cases property names. For example, CLR property
67+
`EmailAddress` will be inferred as "emailAddress" {es} document field name.
68+
69+
`DefaultIndex`::
70+
71+
The default index to use for a request when no index has been explicitly
72+
specified and no default indices are specified for the given CLR type specified
73+
for the request.
74+
75+
`DefaultMappingFor`::
76+
77+
Specify how the mapping is inferred for a given CLR type. The mapping can infer
78+
the index, id and relation name for a given CLR type, as well as control
79+
serialization behaviour for CLR properties.
80+
5381
`DisableAutomaticProxyDetection`::
5482

5583
Disabled proxy detection on the webrequest, in some cases this may speed up the
@@ -200,39 +228,6 @@ The user agent string to send with requests. Useful for debugging purposes to
200228
understand client and framework versions that initiate requests to {es}.
201229

202230

203-
==== Options on ConnectionSettings
204-
205-
The following is a list of available connection configuration options on
206-
`ConnectionSettings`:
207-
208-
`DefaultDisableIdInference`::
209-
210-
Disables automatic Id inference for given CLR types.
211-
+
212-
The client by default will use the value of a property named `Id` on a CLR type
213-
as the `_id` to send to {es}. Adding a type will disable this behaviour for that
214-
CLR type. If `Id` inference should be disabled for all CLR types, use
215-
`DefaultDisableIdInference`.
216-
217-
`DefaultFieldNameInferrer`::
218-
219-
Specifies how field names are inferred from CLR property names.
220-
+
221-
By default, the client camel cases property names. For example, CLR property
222-
`EmailAddress` will be inferred as "emailAddress" {es} document field name.
223-
224-
`DefaultIndex`::
225-
226-
The default index to use for a request when no index has been explicitly
227-
specified and no default indices are specified for the given CLR type specified
228-
for the request.
229-
230-
`DefaultMappingFor`::
231-
232-
Specify how the mapping is inferred for a given CLR type. The mapping can infer
233-
the index, id and relation name for a given CLR type, as well as control
234-
serialization behaviour for CLR properties.
235-
236231
==== ElasticsearchClientSettings with ElasticsearchClient
237232

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

0 commit comments

Comments
 (0)