Skip to content

Commit 806d8e9

Browse files
committed
Merge branch 'main' of github.com:marciw/elasticsearch-java
2 parents e77cee1 + 76ba0f4 commit 806d8e9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+1417
-1084
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ is required for that. Elasticsearch language clients are only backwards
4242
compatible with default distributions and without guarantees made.
4343

4444
| Elasticsearch Version | Elasticsearch-Java Branch | Supported |
45-
| --------------------- | ------------------------- | --------- |
45+
|-----------------------|---------------------------|-----------|
4646
| main | main | |
47-
| 8.x | 8.x | 8.x |
48-
| 7.x | 7.x | 7.17 |
47+
| 9.x | 9.x | 9.x |
48+
| 8.x | 8.x | 8.17 |
4949

5050
## Usage
5151

docs/docset.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
project: 'Java API Client'
2+
products:
3+
- id: elasticsearch-client
24
exclude:
35
- external-resources.md
46
- design/*
@@ -10,6 +12,6 @@ toc:
1012
- toc: release-notes
1113
subs:
1214
es: "Elasticsearch"
13-
version: "9.0.0"
15+
version: "9.0.1"
1416
# Not used by docs-builder, but present in `% :::{include-bloc}` preprocessing directives (see IncludeExpander.java)
1517
doc-tests-src: "../../java-client/src/test/java/co/elastic/clients/documentation"

docs/reference/breaking-changes-policy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Along with these bug fixes, the API specification is constantly refined, more pr
2626

2727
## Breaking changes in major releases [_breaking_changes_in_major_releases]
2828

29-
Major releases (e.g. 7.x → 8.x) can include larger refactorings of the API specification and the framework underlying the Java API Client. These refactorings are considered carefully and done only when they unlock new important features or new developments.
29+
Major releases (e.g. 8.x → 9.x) can include larger refactorings of the API specification and the framework underlying the Java API Client. These refactorings are considered carefully and done only when they unlock new important features or new developments.
3030

3131

3232
## Elasticsearch API stability guarantees [_elasticsearch_api_stability_guarantees]
@@ -35,4 +35,4 @@ All Elasticsearch APIs have stability indicators, which imply potential changes.
3535

3636
## Breaking changes by release
3737

38-
For more information, refer to the [](../release-notes/index.md).
38+
For more information, refer to the [](../release-notes/index.md).

docs/reference/javadoc-source-code.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ mapped_pages:
55

66
# Javadoc and source code [java-client-javadoc]
77

8-
The javadoc for the Java API Client can be found at [https://snapshots.elastic.co/javadoc/co/elastic/clients/elasticsearch-java/{{version}}/](https://snapshots.elastic.co/javadoc/co/elastic/clients/elasticsearch-java/{{version}}/).
8+
The Javadoc for the Java API Client is available at [https://javadoc.io/doc/co.elastic.clients/elasticsearch-java/](https://javadoc.io/doc/co.elastic.clients/elasticsearch-java/latest/index.html).
99

1010
The source code is at [https://github.com/elastic/elasticsearch-java/](https://github.com/elastic/elasticsearch-java/) and is licensed under the Apache 2.0 License.
1111

java-client/build.gradle.kts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,9 @@ signing {
175175
}
176176

177177
dependencies {
178-
// Compile and test with the last 8.x version to make sure transition scenarios where
179-
// the Java API client coexists with a 8.x HLRC work fine
180178
val elasticsearchVersion = "9.0.0"
181179
val jacksonVersion = "2.18.3"
182-
val openTelemetryVersion = "1.29.0"
180+
val openTelemetryVersion = "1.32.0"
183181

184182
// Apache 2.0
185183
// https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/java-rest-low.html
@@ -211,8 +209,7 @@ dependencies {
211209
// Apache 2.0
212210
// https://github.com/open-telemetry/opentelemetry-java
213211
implementation("io.opentelemetry", "opentelemetry-api", openTelemetryVersion)
214-
// Use it once it's stable (see Instrumentation.java). Limited to tests for now.
215-
testImplementation("io.opentelemetry", "opentelemetry-semconv", "$openTelemetryVersion-alpha")
212+
implementation("io.opentelemetry.semconv","opentelemetry-semconv", openTelemetryVersion)
216213
testImplementation("io.opentelemetry", "opentelemetry-sdk", openTelemetryVersion)
217214

218215
// EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/IcuNormalizationCharFilter.java

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import co.elastic.clients.json.ObjectDeserializer;
2727
import co.elastic.clients.util.ObjectBuilder;
2828
import jakarta.json.stream.JsonGenerator;
29+
import java.lang.String;
2930
import java.util.Objects;
3031
import java.util.function.Function;
3132
import javax.annotation.Nullable;
@@ -61,13 +62,17 @@ public class IcuNormalizationCharFilter extends CharFilterBase implements CharFi
6162
@Nullable
6263
private final IcuNormalizationType name;
6364

65+
@Nullable
66+
private final String unicodeSetFilter;
67+
6468
// ---------------------------------------------------------------------------------------------
6569

6670
private IcuNormalizationCharFilter(Builder builder) {
6771
super(builder);
6872

6973
this.mode = builder.mode;
7074
this.name = builder.name;
75+
this.unicodeSetFilter = builder.unicodeSetFilter;
7176

7277
}
7378

@@ -99,6 +104,14 @@ public final IcuNormalizationType name() {
99104
return this.name;
100105
}
101106

107+
/**
108+
* API name: {@code unicode_set_filter}
109+
*/
110+
@Nullable
111+
public final String unicodeSetFilter() {
112+
return this.unicodeSetFilter;
113+
}
114+
102115
protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) {
103116

104117
generator.write("type", "icu_normalizer");
@@ -111,6 +124,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) {
111124
generator.writeKey("name");
112125
this.name.serialize(generator, mapper);
113126
}
127+
if (this.unicodeSetFilter != null) {
128+
generator.writeKey("unicode_set_filter");
129+
generator.write(this.unicodeSetFilter);
130+
131+
}
114132

115133
}
116134

@@ -129,6 +147,9 @@ public static class Builder extends CharFilterBase.AbstractBuilder<Builder>
129147
@Nullable
130148
private IcuNormalizationType name;
131149

150+
@Nullable
151+
private String unicodeSetFilter;
152+
132153
/**
133154
* API name: {@code mode}
134155
*/
@@ -145,6 +166,14 @@ public final Builder name(@Nullable IcuNormalizationType value) {
145166
return this;
146167
}
147168

169+
/**
170+
* API name: {@code unicode_set_filter}
171+
*/
172+
public final Builder unicodeSetFilter(@Nullable String value) {
173+
this.unicodeSetFilter = value;
174+
return this;
175+
}
176+
148177
@Override
149178
protected Builder self() {
150179
return this;
@@ -176,6 +205,7 @@ protected static void setupIcuNormalizationCharFilterDeserializer(
176205
CharFilterBase.setupCharFilterBaseDeserializer(op);
177206
op.add(Builder::mode, IcuNormalizationMode._DESERIALIZER, "mode");
178207
op.add(Builder::name, IcuNormalizationType._DESERIALIZER, "name");
208+
op.add(Builder::unicodeSetFilter, JsonpDeserializer.stringDeserializer(), "unicode_set_filter");
179209

180210
op.ignore("type");
181211
}

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RangeQueryBase.java

Lines changed: 0 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,6 @@ public abstract class RangeQueryBase<T> extends QueryBase {
7272
@Nullable
7373
private final T lte;
7474

75-
@Nullable
76-
private final T from;
77-
78-
@Nullable
79-
private final T to;
80-
8175
@Nullable
8276
private final JsonpSerializer<T> tSerializer;
8377

@@ -91,8 +85,6 @@ protected RangeQueryBase(AbstractBuilder<T, ?> builder) {
9185
this.gte = builder.gte;
9286
this.lt = builder.lt;
9387
this.lte = builder.lte;
94-
this.from = builder.from;
95-
this.to = builder.to;
9688
this.tSerializer = builder.tSerializer;
9789

9890
}
@@ -147,28 +139,6 @@ public final T lte() {
147139
return this.lte;
148140
}
149141

150-
/**
151-
* API name: {@code from}
152-
*
153-
* @deprecated 8.16.0 Use gte or gt instead
154-
*/
155-
@Deprecated
156-
@Nullable
157-
public final T from() {
158-
return this.from;
159-
}
160-
161-
/**
162-
* API name: {@code to}
163-
*
164-
* @deprecated 8.16.0 Use lte or lt instead
165-
*/
166-
@Deprecated
167-
@Nullable
168-
public final T to() {
169-
return this.to;
170-
}
171-
172142
protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) {
173143

174144
super.serializeInternal(generator, mapper);
@@ -196,16 +166,6 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) {
196166
JsonpUtils.serialize(this.lte, generator, tSerializer, mapper);
197167

198168
}
199-
if (this.from != null) {
200-
generator.writeKey("from");
201-
JsonpUtils.serialize(this.from, generator, tSerializer, mapper);
202-
203-
}
204-
if (this.to != null) {
205-
generator.writeKey("to");
206-
JsonpUtils.serialize(this.to, generator, tSerializer, mapper);
207-
208-
}
209169

210170
}
211171

@@ -227,12 +187,6 @@ public abstract static class AbstractBuilder<T, BuilderT extends AbstractBuilder
227187
@Nullable
228188
private T lte;
229189

230-
@Nullable
231-
private T from;
232-
233-
@Nullable
234-
private T to;
235-
236190
@Nullable
237191
private JsonpSerializer<T> tSerializer;
238192

@@ -286,28 +240,6 @@ public final BuilderT lte(@Nullable T value) {
286240
return self();
287241
}
288242

289-
/**
290-
* API name: {@code from}
291-
*
292-
* @deprecated 8.16.0 Use gte or gt instead
293-
*/
294-
@Deprecated
295-
public final BuilderT from(@Nullable T value) {
296-
this.from = value;
297-
return self();
298-
}
299-
300-
/**
301-
* API name: {@code to}
302-
*
303-
* @deprecated 8.16.0 Use lte or lt instead
304-
*/
305-
@Deprecated
306-
public final BuilderT to(@Nullable T value) {
307-
this.to = value;
308-
return self();
309-
}
310-
311243
/**
312244
* Serializer for T. If not set, an attempt will be made to find a serializer
313245
* from the JSON context.
@@ -328,8 +260,6 @@ protected static <T, BuilderT extends AbstractBuilder<T, BuilderT>> void setupRa
328260
op.add(AbstractBuilder::gte, tDeserializer, "gte");
329261
op.add(AbstractBuilder::lt, tDeserializer, "lt");
330262
op.add(AbstractBuilder::lte, tDeserializer, "lte");
331-
op.add(AbstractBuilder::from, tDeserializer, "from");
332-
op.add(AbstractBuilder::to, tDeserializer, "to");
333263

334264
}
335265

0 commit comments

Comments
 (0)