Skip to content

Commit

Permalink
Merge branch 'opensearch-project:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
ls-urs-keller authored Jan 19, 2024
2 parents cf4f928 + 4647583 commit 9085a40
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 34 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
- { opensearch_version: 2.8.0, java: 11 }
- { opensearch_version: 2.9.0, java: 11 }
- { opensearch_version: 2.10.0, java: 11 }
- { opensearch_version: 2.11.1, java: 11 }
steps:
- name: Checkout Java Client
uses: actions/checkout@v3
Expand Down
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
### Dependencies
- Bumps `io.github.classgraph:classgraph` from 4.8.163 to 4.8.165
- Bumps `org.owasp.dependencycheck` from 8.4.2 to 9.0.8
- Bumps `com.diffplug.spotless` from 6.22.0 to 6.23.3
- Bumps `com.diffplug.spotless` from 6.22.0 to 6.24.0
- Bumps `org.apache.httpcomponents.core5:httpcore5-h2` from 5.2.3 to 5.2.4
- Bumps `org.apache.httpcomponents.client5:httpclient5` from 5.2.1 to 5.3
- Bumps `org.apache.httpcomponents.core5:httpcore5` from 5.2.3 to 5.2.4
Expand Down Expand Up @@ -54,9 +54,10 @@ This section is for maintaining a changelog for all breaking changes for the cli
- Add an integration test that runs on JDK-8 ([#795](https://github.com/opensearch-project/opensearch-java/pull/795))

### Deprecated
- Deprecated "_toQuery()" in Query and QueryVariant ([#760](https://github.com/opensearch-project/opensearch-java/pull/760)
- Deprecated "_toQuery()" in Query and QueryVariant ([#760](https://github.com/opensearch-project/opensearch-java/pull/760))

### Removed
- Removed unsupported `prefix` field from CompletionSuggester ([#812](https://github.com/opensearch-project/opensearch-java/pull/812))

### Fixed
- Fix partial success results for msearch_template ([#709](https://github.com/opensearch-project/opensearch-java/pull/709))
Expand Down
2 changes: 1 addition & 1 deletion COMPATIBILITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The below matrix shows the compatibility of the [`opensearch-java-client`](https
| Client Version | OpenSearch Version |
|----------------|--------------------|
| 1.0.0 | 1.x |
| 2.x.0 | 1.3.13-2.10.0 |
| 2.x.0 | 1.3.13-2.x.x |


## Compatibility with JDK
Expand Down
2 changes: 1 addition & 1 deletion java-client/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ plugins {
`maven-publish`
id("com.github.jk1.dependency-license-report") version "2.5"
id("org.owasp.dependencycheck") version "9.0.8"
id("com.diffplug.spotless") version "6.23.3"
id("com.diffplug.spotless") version "6.24.0"
}
apply(plugin = "opensearch.repositories")
apply(plugin = "org.owasp.dependencycheck")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ public class CompletionSuggester extends SuggesterBase implements FieldSuggester
@Nullable
private final SuggestFuzziness fuzzy;

@Nullable
private final String prefix;

@Nullable
private final String regex;

Expand All @@ -70,7 +67,6 @@ private CompletionSuggester(Builder builder) {

this.contexts = ApiTypeHelper.unmodifiable(builder.contexts);
this.fuzzy = builder.fuzzy;
this.prefix = builder.prefix;
this.regex = builder.regex;
this.skipDuplicates = builder.skipDuplicates;

Expand Down Expand Up @@ -103,14 +99,6 @@ public final SuggestFuzziness fuzzy() {
return this.fuzzy;
}

/**
* API name: {@code prefix}
*/
@Nullable
public final String prefix() {
return this.prefix;
}

/**
* API name: {@code regex}
*/
Expand Down Expand Up @@ -152,11 +140,6 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) {
generator.writeKey("fuzzy");
this.fuzzy.serialize(generator, mapper);

}
if (this.prefix != null) {
generator.writeKey("prefix");
generator.write(this.prefix);

}
if (this.regex != null) {
generator.writeKey("regex");
Expand Down Expand Up @@ -184,9 +167,6 @@ public static class Builder extends SuggesterBase.AbstractBuilder<Builder> imple
@Nullable
private SuggestFuzziness fuzzy;

@Nullable
private String prefix;

@Nullable
private String regex;

Expand Down Expand Up @@ -228,14 +208,6 @@ public final Builder fuzzy(Function<SuggestFuzziness.Builder, ObjectBuilder<Sugg
return this.fuzzy(fn.apply(new SuggestFuzziness.Builder()).build());
}

/**
* API name: {@code prefix}
*/
public final Builder prefix(@Nullable String value) {
this.prefix = value;
return this;
}

/**
* API name: {@code regex}
*/
Expand Down Expand Up @@ -288,7 +260,6 @@ protected static void setupCompletionSuggesterDeserializer(ObjectDeserializer<Co
"contexts"
);
op.add(Builder::fuzzy, SuggestFuzziness._DESERIALIZER, "fuzzy");
op.add(Builder::prefix, JsonpDeserializer.stringDeserializer(), "prefix");
op.add(Builder::regex, JsonpDeserializer.stringDeserializer(), "regex");
op.add(Builder::skipDuplicates, JsonpDeserializer.booleanDeserializer(), "skip_duplicates");

Expand Down
2 changes: 1 addition & 1 deletion samples/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
plugins {
java
application
id("com.diffplug.spotless") version "6.23.3"
id("com.diffplug.spotless") version "6.24.0"
}

java {
Expand Down

0 comments on commit 9085a40

Please sign in to comment.