You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
to align with 5.x branch. Was receiving Unhandled Exception: System.MissingMethodException: Method not found: 'Void Xunit.TestDiscoverySink..ctor()'. when running unit tests with version specified.
Bump FAKE version
Copy file name to clipboardExpand all lines: docs/client-concepts/high-level/inference/field-inference.asciidoc
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -521,9 +521,13 @@ class Precedence
521
521
}
522
522
----
523
523
<1> Even though this property has a NEST property mapping _and_ a `JsonProperty` attribute, We are going to provide a hard rename for it on ConnectionSettings later that should win.
524
+
524
525
<2> This property has both a NEST attribute and a `JsonProperty`, NEST should win.
526
+
525
527
<3> We should take the json property into account by itself
528
+
526
529
<4> This property we are going to special case in our custom serializer to resolve to ask
530
+
527
531
<5> We are going to register a DefaultFieldNameInferrer on ConnectionSettings that will uppercase all properties.
528
532
529
533
Here we create a custom serializer that renames any property named `AskSerializer` to `ask`
<3> The index names here come from the Connection Settings passed to `TestClient`. See the documentation on <<index-name-inference, Index Name Inference>> for more details.
Copy file name to clipboardExpand all lines: docs/client-concepts/low-level/connecting.asciidoc
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,7 +91,9 @@ var client = new ElasticLowLevelClient(config);
91
91
var result = client.Search<SearchResponse<object>>(new { size = 12 });
92
92
----
93
93
<1> Disable automatic proxy detection. When called, defaults to `true`.
94
+
94
95
<2> Enable compressed request and responses from Elasticsearch (Note that nodes need to be configured to allow this. See the {ref_current}/modules-http.html[http module settings] for more info).
96
+
95
97
<3> By default responses are deserialized directly from the response stream to the object you tell it to. For debugging purposes, it can be very useful to keep a copy of the raw response on the result object, which is what calling this method will do.
96
98
97
99
`.ResponseBodyInBytes` will only have a value if the client configuration has `DisableDirectStreaming` set
@@ -129,9 +131,13 @@ config = config
129
131
.BasicAuthentication("username", "password");
130
132
----
131
133
<1> Allows you to set querystring parameters that have to be added to every request. For instance, if you use a hosted elasticserch provider, and you need need to pass an `apiKey` parameter onto every request.
134
+
132
135
<2> Sets proxy information on the connection.
136
+
133
137
<3> [[request-timeout]] Sets the global maximum time a connection may take. Please note that this is the request timeout, the builtin .NET `WebRequest` has no way to set connection timeouts (see http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.timeout(v=vs.110).aspx[the MSDN documentation on `HttpWebRequest.Timeout` Property]).
138
+
134
139
<4> As an alternative to the C/go like error checking on `response.IsValid`, you can instead tell the client to <<thrown-exceptions, throw exceptions>>.
140
+
135
141
<5> forces all serialization to be indented and appends `pretty=true` to all the requests so that the responses are indented as well
136
142
137
143
NOTE: Basic authentication credentials can alternatively be specified on the node URI directly:
@@ -359,7 +365,9 @@ public class MyJsonNetSerializer : JsonNetSerializer
359
365
}
360
366
----
361
367
<1> Call this constructor if you only need access to `JsonSerializerSettings` without local state
368
+
362
369
<2> Call OverwriteDefaultSerializers if you need access to `JsonSerializerSettings` with local state
370
+
363
371
<3> You can inject contract resolved converters by implementing the ContractConverters property. This can be much faster then registering them on `JsonSerializerSettings.Converters`
364
372
365
373
You can then register a factory on `ConnectionSettings` to create an instance of your subclass instead.
0 commit comments