Skip to content

Commit dfb3379

Browse files
committed
bump version to 6.0.2
1 parent 9854311 commit dfb3379

24 files changed

+13
-82
lines changed

build/NEST.JsonNetSerializer.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
<dependencies>
1919
<group targetFramework=".NETFramework4.5">
2020
<dependency id="NEST" version="[$version$, $nextMajorVersion$)" />
21-
<dependency id="Newtonsoft.Json" version="[$jsonDotNetCurrentVersion$, $jsonDotNetNextVersion$)" />
21+
<dependency id="Newtonsoft.Json" version="$jsonDotNetCurrentVersion$" />
2222
</group>
2323
<group targetFramework=".NETFramework4.6">
2424
<dependency id="NEST" version="[$version$, $nextMajorVersion$)" />
25-
<dependency id="Newtonsoft.Json" version="[$jsonDotNetCurrentVersion$, $jsonDotNetNextVersion$)" />
25+
<dependency id="Newtonsoft.Json" version="$jsonDotNetCurrentVersion$" />
2626
</group>
2727
<group targetFramework=".NETStandard1.3">
2828
<dependency id="NETStandard.Library" version="[1.6.0, )" />

docs/aggregations/writing-aggregations.asciidoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@ return s => s
228228
);
229229
----
230230
<1> a list of aggregation functions to apply
231-
232231
<2> Using LINQ's `Aggregate()` function to accumulate/apply all of the aggregation functions
233232

234233
[[handling-aggregate-response]]
@@ -272,6 +271,5 @@ var maxPerChild = childAggregation.Max("max_per_child");
272271
maxPerChild.Should().NotBeNull(); <2>
273272
----
274273
<1> Do something with the average per child. Here we just assert it's not null
275-
276274
<2> Do something with the max per child. Here we just assert it's not null
277275

docs/client-concepts/certificates/working-with-certificates.asciidoc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,8 @@ public class PkiCluster : CertgenCaCluster
153153
}
154154
----
155155
<1> Set the client certificate on `ConnectionSettings`
156-
157156
<2> The path to the `.cer` file
158-
159157
<3> The path to the `.key` file
160-
161158
<4> The password for the private key
162159

163160
Or per request on `RequestConfiguration` which will take precedence over the ones defined on `ConnectionConfiguration`

docs/client-concepts/connection-pooling/exceptions/unexpected-exceptions.asciidoc

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,8 @@ audit = await audit.TraceUnexpectedException(
5858
);
5959
----
6060
<1> set up a cluster with 10 nodes
61-
6261
<2> where node 2 on port 9201 always throws an exception
63-
6462
<3> The first call to 9200 returns a healthy response
65-
6663
<4> ...but the second call, to 9201, returns a bad response
6764

6865
Sometimes, an unexpected exception happens further down in the pipeline. In this scenario, we
@@ -101,9 +98,7 @@ audit = await audit.TraceUnexpectedException(
10198
);
10299
----
103100
<1> calls on 9200 set up to throw a `WebException`
104-
105101
<2> calls on 9201 set up to throw an `Exception`
106-
107102
<3> Assert that the audit trail for the client call includes the bad response from 9200 and 9201
108103

109104
An unexpected hard exception on ping and sniff is something we *do* try to recover from and failover to retrying on the next node.
@@ -148,8 +143,6 @@ audit = await audit.TraceUnexpectedException(
148143
);
149144
----
150145
<1> `InnerException` is the exception that brought the request down
151-
152146
<2> The hard exception that happened on ping is still available though
153-
154147
<3> An exception can be hard to relate back to a point in time, so the exception is also available on the audit trail
155148

docs/client-concepts/connection-pooling/exceptions/unrecoverable-exceptions.asciidoc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ var audit = new Auditor(() => Framework.Cluster
8181
);
8282
----
8383
<1> Always succeed on ping
84-
8584
<2> ...but always fail on calls with a 401 Bad Authentication response
8685

8786
Now, let's make a client call. We'll see that the first audit event is a successful ping
@@ -102,9 +101,7 @@ audit = await audit.TraceElasticsearchException(
102101
);
103102
----
104103
<1> First call results in a successful ping
105-
106104
<2> Second call results in a bad response
107-
108105
<3> The reason for the bad response is Bad Authentication
109106

110107
When a bad authentication response occurs, the client attempts to deserialize the response body returned;
@@ -138,7 +135,6 @@ audit = await audit.TraceElasticsearchException(
138135
);
139136
----
140137
<1> Always return a 401 bad response with a HTML response on client calls
141-
142138
<2> Assert that the response body bytes are null
143139

144140
Now in this example, by turning on `DisableDirectStreaming()` on `ConnectionSettings`, we see the same behaviour exhibited
@@ -173,6 +169,5 @@ audit = await audit.TraceElasticsearchException(
173169
);
174170
----
175171
<1> Response bytes are set on the response
176-
177172
<2> Assert that the response contains `"nginx/"`
178173

docs/client-concepts/connection-pooling/request-overrides/disable-sniff-ping-per-request.asciidoc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,8 @@ audit = await audit.TraceCalls(
6565
);
6666
----
6767
<1> disable sniffing
68-
6968
<2> first call is a successful ping
70-
7169
<3> sniff on startup call happens here, on the second call
72-
7370
<4> No sniff on startup again
7471

7572
Now, let's disable pinging on the request
@@ -93,7 +90,6 @@ audit = await audit.TraceCall(
9390
);
9491
----
9592
<1> disable ping
96-
9793
<2> No ping after sniffing
9894

9995
Finally, let's demonstrate disabling both sniff and ping on the request
@@ -115,6 +111,5 @@ audit = await audit.TraceCall(
115111
);
116112
----
117113
<1> diable ping and sniff
118-
119114
<2> no ping or sniff before the call
120115

docs/client-concepts/connection-pooling/round-robin/skip-dead-nodes.asciidoc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,7 @@ await audit.TraceCalls(
140140
);
141141
----
142142
<1> The first call goes to 9200 which succeeds
143-
144143
<2> The 2nd call does a ping on 9201 because its used for the first time. It fails so we wrap over to node 9202
145-
146144
<3> The next call goes to 9203 which fails so we should wrap over
147145

148146
A cluster with 2 nodes where the second node fails on ping
@@ -192,6 +190,5 @@ await audit.TraceCalls(
192190
);
193191
----
194192
<1> All the calls fail
195-
196193
<2> After all our registered nodes are marked dead we want to sample a single dead node each time to quickly see if the cluster is back up. We do not want to retry all 4 nodes
197194

docs/client-concepts/connection-pooling/sniffing/role-detection.asciidoc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ var audit = new Auditor(() => Framework.Cluster
138138
};
139139
----
140140
<1> Before the sniff, assert we only see three master only nodes
141-
142141
<2> After the sniff, assert we now know about the existence of 20 nodes.
143142

144143
After the sniff has happened on 9200 before the first API call, assert that the subsequent API
@@ -219,9 +218,7 @@ var audit = new Auditor(() => Framework.Cluster
219218
};
220219
----
221220
<1> for testing simplicity, disable pings
222-
223221
<2> We only want to execute API calls to nodes in rack_one
224-
225222
<3> After sniffing on startup, assert that the pool of nodes that the client will execute API calls against only contains the three nodes that are in `rack_one`
226223

227224
With the cluster set up, assert that the sniff happens on 9200 before the first API call
@@ -298,8 +295,6 @@ await audit.TraceUnexpectedElasticsearchException(new ClientCall
298295
});
299296
----
300297
<1> The audit trail indicates a sniff for the very first time on startup
301-
302298
<2> The sniff succeeds because the node predicate is ignored when sniffing
303-
304299
<3> when trying to do an actual API call however, the predicate prevents any nodes from being attempted
305300

docs/client-concepts/high-level/analysis/writing-analyzers.asciidoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ var createIndexResponse = client.CreateIndex("my-index", c => c
104104
);
105105
----
106106
<1> Pre-defined list of English stopwords within Elasticsearch
107-
108107
<2> Use the `standard_english` analyzer configured
109108

110109
[source,javascript]
@@ -272,7 +271,6 @@ var createIndexResponse = client.CreateIndex("questions", c => c
272271
);
273272
----
274273
<1> Use an analyzer at index time that strips HTML tags
275-
276274
<2> Use an analyzer at search time that does not strip HTML tags
277275

278276
With this in place, the text of a question body will be analyzed with the `index_question` analyzer

docs/client-concepts/high-level/getting-started.asciidoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ var indexResponse = client.IndexDocument(person); <1>
107107
var asyncIndexResponse = await client.IndexDocumentAsync(person); <2>
108108
----
109109
<1> synchronous method that returns an `IIndexResponse`
110-
111110
<2> asynchronous method that returns a `Task<IIndexResponse>` that can be awaited
112111

113112
NOTE: All methods available within NEST are exposed as both synchronous and asynchronous versions,

0 commit comments

Comments
 (0)