forked from hibernate/hibernate-search
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HSEARCH-5010 Add Lucene 10 to TCK test run
- Loading branch information
1 parent
ab7e4b3
commit b5aec70
Showing
22 changed files
with
334 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
util/internal/integrationtest/backend/lucene-common/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
SPDX-License-Identifier: Apache-2.0 | ||
Copyright Red Hat Inc. and Hibernate Authors | ||
--> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>org.hibernate.search</groupId> | ||
<artifactId>hibernate-search-util-internal-integrationtest</artifactId> | ||
<version>8.0.0-SNAPSHOT</version> | ||
<relativePath>../..</relativePath> | ||
</parent> | ||
<artifactId>hibernate-search-util-internal-integrationtest-backend-lucene-common</artifactId> | ||
|
||
<name>Hibernate Search Utils - Internal - ITs - Lucene Common</name> | ||
<description>Hibernate Search integration testing utilities for tests involving the Lucene backend</description> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.hibernate.search</groupId> | ||
<artifactId>hibernate-search-util-internal-integrationtest-common</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.hibernate.search</groupId> | ||
<artifactId>hibernate-search-backend-lucene</artifactId> | ||
</dependency> | ||
</dependencies> | ||
|
||
</project> | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...in/java/org/hibernate/search/util/impl/integrationtest/backend/lucene/TotalHitsUtils.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* Copyright Red Hat Inc. and Hibernate Authors | ||
*/ | ||
package org.hibernate.search.util.impl.integrationtest.backend.lucene; | ||
|
||
import org.apache.lucene.search.TotalHits; | ||
|
||
public final class TotalHitsUtils { | ||
private TotalHitsUtils() { | ||
} | ||
|
||
public static long value(TotalHits totalHits) { | ||
return totalHits.value; | ||
} | ||
|
||
public static TotalHits.Relation relation(TotalHits totalHits) { | ||
return totalHits.relation; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
SPDX-License-Identifier: Apache-2.0 | ||
Copyright Red Hat Inc. and Hibernate Authors | ||
--> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>org.hibernate.search</groupId> | ||
<artifactId>hibernate-search-util-internal-integrationtest</artifactId> | ||
<version>8.0.0-SNAPSHOT</version> | ||
<relativePath>../..</relativePath> | ||
</parent> | ||
<artifactId>hibernate-search-util-internal-integrationtest-backend-lucene10</artifactId> | ||
|
||
<name>Hibernate Search Utils - Internal - ITs - Lucene 10</name> | ||
<description>Hibernate Search integration testing utilities for tests involving the Lucene backend</description> | ||
|
||
<properties> | ||
<java-version.main.release>21</java-version.main.release> | ||
<version.org.apache.lucene>10.0.0</version.org.apache.lucene> | ||
</properties> | ||
|
||
<dependencyManagement> | ||
<dependencies> | ||
<!-- Lucene backend --> | ||
<dependency> | ||
<groupId>org.apache.lucene</groupId> | ||
<artifactId>lucene-core</artifactId> | ||
<version>${version.org.apache.lucene}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.lucene</groupId> | ||
<artifactId>lucene-analysis-common</artifactId> | ||
<version>${version.org.apache.lucene}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.lucene</groupId> | ||
<artifactId>lucene-queryparser</artifactId> | ||
<version>${version.org.apache.lucene}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.lucene</groupId> | ||
<artifactId>lucene-join</artifactId> | ||
<version>${version.org.apache.lucene}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.lucene</groupId> | ||
<artifactId>lucene-facet</artifactId> | ||
<version>${version.org.apache.lucene}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.lucene</groupId> | ||
<artifactId>lucene-highlighter</artifactId> | ||
<version>${version.org.apache.lucene}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.carrotsearch</groupId> | ||
<artifactId>hppc</artifactId> | ||
<version>${version.com.carrotsearch.hppc}</version> | ||
</dependency> | ||
</dependencies> | ||
</dependencyManagement> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.hibernate.search</groupId> | ||
<artifactId>hibernate-search-util-internal-integrationtest-common</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.hibernate.search</groupId> | ||
<artifactId>hibernate-search-backend-lucene10</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.hibernate.search</groupId> | ||
<artifactId>hibernate-search-util-internal-integrationtest-backend-lucene-common</artifactId> | ||
</dependency> | ||
</dependencies> | ||
|
||
</project> | ||
|
20 changes: 20 additions & 0 deletions
20
...in/java/org/hibernate/search/util/impl/integrationtest/backend/lucene/TotalHitsUtils.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* Copyright Red Hat Inc. and Hibernate Authors | ||
*/ | ||
package org.hibernate.search.util.impl.integrationtest.backend.lucene; | ||
|
||
import org.apache.lucene.search.TotalHits; | ||
|
||
public final class TotalHitsUtils { | ||
private TotalHitsUtils() { | ||
} | ||
|
||
public static long value(TotalHits totalHits) { | ||
return totalHits.value(); | ||
} | ||
|
||
public static TotalHits.Relation relation(TotalHits totalHits) { | ||
return totalHits.relation(); | ||
} | ||
} |
Oops, something went wrong.