Skip to content

Commit bf5cf3e

Browse files
committed
md syntax fix
1 parent d75f6ba commit bf5cf3e

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

docs/release-notes/release-highlights.asciidoc

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ For a list of detailed changes, including bug fixes, please see the https://gith
88
[discrete]
99
==== Version 8.18
1010

11-
===== Breaking changes
11+
**Breaking changes**
1212

1313
While we try to limit breaking changes to the minimum between minor versions of the client, all the following changes were necessary to keep the client code in sync with the server code and to fix client side bugs.
1414

@@ -64,11 +64,12 @@ esClient.search(s -> s
6464
* `TrainedModelDeploymentNodesStats`: `routingState` field modified from `TrainedModelAssignmentRoutingTable` to `TrainedModelAssignmentRoutingStateAndReason`
6565

6666

67-
===== New Features
68-
69-
====== BulkIngester retry policy
67+
**New Features**
7068

69+
* BulkIngester retry policy
70+
+
7171
Retry logic can now be enabled allowing the BulkIngester to retry operations that failed with error 429 (too many requests), hoping that the error will recover and the request will go through. Users can configure the desired backoff policy using the backoffPolicy() method in the BulkIngester builder:
72+
+
7273
[source,java]
7374
----
7475
BulkIngester ingester = BulkIngester.of(b -> b
@@ -78,16 +79,17 @@ BulkIngester ingester = BulkIngester.of(b -> b
7879
.flushInterval(1000, TimeUnit.MILLISECONDS)
7980
.backoffPolicy(BackoffPolicy.constantBackoff(50L, 8))
8081
----
82+
+
8183
This is an example of constant backoff, meaning the single failed operation will be retried 8 times every 50 milliseconds.
8284

83-
====== Default class for methods requiring TDocument
84-
85+
* Default class for methods requiring TDocument
86+
+
8587
Some requests in the client require a second parameter to define the result class, for example `search`, meaning the compiler will complain while the query is being written, which can be annoying. We added overload methods that use `Void.class` as default type, so that the correct type can be eventually added later into writing the query.
86-
88+
+
8789
Example with `search`:
8890

8991
- Old:
90-
92+
+
9193
[source,java]
9294
----
9395
esClient.search(s -> s
@@ -98,9 +100,8 @@ esClient.search(s -> s
98100
,Object.class);
99101
----
100102

101-
102103
- New:
103-
104+
+
104105
[source,java]
105106
----
106107
esClient.search(s -> s
@@ -111,14 +112,14 @@ esClient.search(s -> s
111112
);
112113
----
113114

114-
====== Builder setters overloads with variant type
115-
115+
* Builder setters overloads with variant type
116+
+
116117
Added more setters allowing to build requests with a specific type variant instead of having to use the parent class and then select the desired variant later.
117-
118+
+
118119
Example with `query`, where the `query` field can now accept a `MatchAllQuery` (or any other variant) directly:
119120

120121
- Old:
121-
122+
+
122123
[source,java]
123124
----
124125
esClient.search(s -> s
@@ -129,19 +130,19 @@ esClient.search(s -> s
129130
);
130131
----
131132
- New:
132-
133+
+
133134
[source,java]
134135
----
135136
esClient.search(s -> s
136137
.index("my-index")
137138
.query(MatchAllQuery.of(m -> m))
138139
);
139140
----
140-
141+
+
141142
Example with `aggregations`, where the `aggregations` field can now accept `AverageAggregation` (or any other variant) directly:
142143

143144
- Old:
144-
145+
+
145146
[source,java]
146147
----
147148
// using functional builder shortcut
@@ -164,7 +165,7 @@ esClient.search(s -> s
164165
----
165166

166167
- New:
167-
168+
+
168169
[source,java]
169170
----
170171
esClient.search(s -> s

0 commit comments

Comments
 (0)