Skip to content

Commit 80a17ac

Browse files
committed
HSEARCH-5504 Add compatibility with OpenSearch 3.3
1 parent d21103d commit 80a17ac

File tree

6 files changed

+17
-8
lines changed

6 files changed

+17
-8
lines changed

Jenkinsfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,8 @@ stage('Configure') {
294294
new LocalOpenSearchBuildEnvironment(version: '2.19.3', condition: TestCondition.AFTER_MERGE),
295295
new LocalOpenSearchBuildEnvironment(version: '3.0.0', condition: TestCondition.ON_DEMAND),
296296
new LocalOpenSearchBuildEnvironment(version: '3.1.0', condition: TestCondition.ON_DEMAND),
297-
new LocalOpenSearchBuildEnvironment(version: '3.2.0', condition: TestCondition.BEFORE_MERGE),
297+
new LocalOpenSearchBuildEnvironment(version: '3.2.0', condition: TestCondition.ON_DEMAND),
298+
new LocalOpenSearchBuildEnvironment(version: '3.3.0', condition: TestCondition.BEFORE_MERGE),
298299
// See https://opensearch.org/lines/2x.html for a list of all 2.x versions
299300
// IMPORTANT: Make sure to update the documentation for any newly supported OpenSearch versions
300301
// See version.org.opensearch.compatible.expected.text

backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/dialect/impl/ElasticsearchDialectFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ private ElasticsearchProtocolDialect createProtocolDialectOpenSearchV2(Elasticse
265265
}
266266

267267
private ElasticsearchProtocolDialect createProtocolDialectOpenSearchV3(ElasticsearchVersion version, int minor) {
268-
if ( minor > 2 ) {
268+
if ( minor > 3 ) {
269269
VersionLog.INSTANCE.unknownElasticsearchVersion( version );
270270
}
271271
return new Elasticsearch70ProtocolDialect();

backend/elasticsearch/src/test/java/org/hibernate/search/backend/elasticsearch/dialect/impl/ElasticsearchDialectFactoryTest.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,14 +536,22 @@ public static List<? extends Arguments> params() {
536536
ElasticsearchDistributionName.OPENSEARCH, "3.2.0", "3.2.0",
537537
OpenSearch214ModelDialect.class, Elasticsearch70ProtocolDialect.class
538538
),
539-
successWithWarning(
539+
success(
540540
ElasticsearchDistributionName.OPENSEARCH, "3.3", "3.3.0",
541541
OpenSearch214ModelDialect.class, Elasticsearch70ProtocolDialect.class
542542
),
543-
successWithWarning(
543+
success(
544544
ElasticsearchDistributionName.OPENSEARCH, "3.3.0", "3.3.0",
545545
OpenSearch214ModelDialect.class, Elasticsearch70ProtocolDialect.class
546546
),
547+
successWithWarning(
548+
ElasticsearchDistributionName.OPENSEARCH, "3.4", "3.4.0",
549+
OpenSearch214ModelDialect.class, Elasticsearch70ProtocolDialect.class
550+
),
551+
successWithWarning(
552+
ElasticsearchDistributionName.OPENSEARCH, "3.4.0", "3.4.0",
553+
OpenSearch214ModelDialect.class, Elasticsearch70ProtocolDialect.class
554+
),
547555
successWithWarning(
548556
ElasticsearchDistributionName.OPENSEARCH, "4", "4.0.0",
549557
OpenSearch214ModelDialect.class, Elasticsearch70ProtocolDialect.class

build/container/search-backend/amazon-opensearch-serverless.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
# IMPORTANT! When updating the version of OpenSearch in this Dockerfile,
55
# make sure to update `version.org.opensearch.latest` property in a POM file,
66
# and to update the version in opensearch.Dockerfile as well.
7-
FROM docker.io/opensearchproject/opensearch:3.2.0
7+
FROM docker.io/opensearchproject/opensearch:3.3.0

build/container/search-backend/opensearch.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
# IMPORTANT! When updating the version of OpenSearch in this Dockerfile,
55
# make sure to update `version.org.opensearch.latest` property in a POM file,
66
# and to update the version in amazon-opensearch-serverless.Dockerfile as well.
7-
FROM docker.io/opensearchproject/opensearch:3.2.0
7+
FROM docker.io/opensearchproject/opensearch:3.3.0

build/parents/build/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@
7474
-->
7575
<!-- The versions of OpenSearch advertised as compatible with Hibernate Search -->
7676
<!-- Make sure to only mention tested versions here -->
77-
<version.org.opensearch.compatible.regularly-tested.text>1.3, 2.19 or 3.2</version.org.opensearch.compatible.regularly-tested.text>
77+
<version.org.opensearch.compatible.regularly-tested.text>1.3, 2.19 or 3.3</version.org.opensearch.compatible.regularly-tested.text>
7878
<!-- These are the versions same as above, but pointing only to the major part (used in compatibility section of ES backend documentation
7979
as versions that Hibernate Search is compatible with. -->
8080
<!-- NOTE: Adding new major versions would require to update the compatibility table in `backend-elasticsearch-compatibility` section of `backend-elasticsearch.asciidoc`. -->
8181
<version.org.opensearch.compatible.expected.text>1.3, 2.x or 3.x</version.org.opensearch.compatible.expected.text>
8282
<!-- The latest version of OpenSearch tested against by default -->
83-
<version.org.opensearch.latest>3.2.0</version.org.opensearch.latest>
83+
<version.org.opensearch.latest>3.3.0</version.org.opensearch.latest>
8484
<!-- The main compatible version of OpenSearch, advertised by default. Used in documentation links. -->
8585
<version.org.opensearch.compatible.main>${version.org.opensearch.latest}</version.org.opensearch.compatible.main>
8686
<documentation.org.opensearch.url>https://opensearch.org/docs/${parsed-version.org.opensearch.compatible.main.majorVersion}.${parsed-version.org.opensearch.compatible.main.minorVersion}</documentation.org.opensearch.url>

0 commit comments

Comments
 (0)