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
Sets the seed for all mock data before running all tests
Refactor usage of Project.Projects.First() to a static property on Project.
Refactor usage of Uri.EscapeDataString to UrlEncode method on ApiTestBase
fix Terms aggregation partitioning test to use 10 partitions of size 5 so that partititon 0 has buckets
(cherry picked from commit d8273d0)
Copy file name to clipboardExpand all lines: docs/client-concepts/high-level/inference/field-inference.asciidoc
+4
Original file line number
Diff line number
Diff line change
@@ -523,9 +523,13 @@ class Precedence
523
523
}
524
524
----
525
525
<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.
526
+
526
527
<2> This property has both a NEST attribute and a `JsonProperty`, NEST should win.
528
+
527
529
<3> We should take the json property into account by itself
530
+
528
531
<4> This property we are going to special case in our custom serializer to resolve to ask
532
+
529
533
<5> We are going to register a DefaultFieldNameInferrer on ConnectionSettings that will uppercase all properties.
530
534
531
535
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
+8
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:
@@ -353,6 +359,8 @@ public class MyJsonNetSerializer : JsonNetSerializer
353
359
}
354
360
----
355
361
<1> Call this constructor if you only need access to `JsonSerializerSettings` without local state (properties on MyJsonNetSerializer)
362
+
356
363
<2> Call OverwriteDefaultSerializers if you need access to `JsonSerializerSettings` with local state
364
+
357
365
<3> You can inject contract resolved converters by implementing the ContractConverters property. This can be much faster then registering them on `JsonSerializerSettings.Converters`
0 commit comments