Skip to content

Commit 64c679b

Browse files
committed
HSEARCH-5160 Add a note about Lucene 10 backend
1 parent ac79cbf commit 64c679b

File tree

3 files changed

+39
-1
lines changed

3 files changed

+39
-1
lines changed

documentation/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,7 @@
337337
<jakartaPersistenceVersion>${parsed-version.jakarta.persistence.majorVersion}.${parsed-version.jakarta.persistence.minorVersion}</jakartaPersistenceVersion>
338338
<jandexPluginVersion>${version.jandex.plugin}</jandexPluginVersion>
339339
<luceneVersion>${version.org.apache.lucene}</luceneVersion>
340+
<lucene10Version>${version.org.apache.lucene10}</lucene10Version>
340341
<luceneUrl>https://lucene.apache.org</luceneUrl>
341342
<luceneJavadocUrl>${javadoc.org.apache.lucene.core.url}</luceneJavadocUrl>
342343
<luceneAnalysisCommonJavadocUrl>${javadoc.org.apache.lucene.analysis.common.url}</luceneAnalysisCommonJavadocUrl>

documentation/src/main/asciidoc/public/reference/_compatibility.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
|
2222
|Apache Lucene (for the <<backend-lucene,Lucene backend>>)
2323
|{luceneVersion}
24-
|
24+
|Or Lucene {lucene10Version} when using JDK 21+ and <<other-integrations-lucene10,different Maven artifacts>>.
2525
|Elasticsearch server (for the <<backend-elasticsearch,Elasticsearch backend>>)
2626
|{elasticsearchCompatibleVersions}
2727
|Most of older minor versions (e.g. {elasticsearchOtherPotentiallyCompatibleVersions}) are not given priority for bugfixes and new features.

documentation/src/main/asciidoc/public/reference/_integrations.adoc

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,40 @@ Check the https://hibernate.org/search/releases/#compatibility-matrix[compatibil
2525
to find versions of Hibernate Search compatible with these older versions of Hibernate ORM.
2626

2727
Use <<other-integrations-jakarta,Hibernate ORM 7>> instead.
28+
29+
[[other-integrations-lucene10]]
30+
== Lucene 10
31+
32+
include::../components/_incubating-warning.adoc[]
33+
34+
Hibernate Search {hibernateSearchVersionShort} provides two variants of the <<backend-lucene,Lucene backend>>.
35+
36+
The default, stable one, that works with JDK 17+ and uses Lucene {luceneVersion}:
37+
38+
[source, XML, subs="+attributes"]
39+
----
40+
<dependency>
41+
<groupId>org.hibernate.search</groupId>
42+
<artifactId>hibernate-search-backend-lucene</artifactId>
43+
</dependency>
44+
----
45+
46+
And an incubating one based on Lucene {lucene10Version}, that requires JDK 21+:
47+
48+
[source, XML, subs="+attributes"]
49+
----
50+
<dependency>
51+
<groupId>org.hibernate.search</groupId>
52+
<artifactId>hibernate-search-backend-lucene10</artifactId>
53+
</dependency>
54+
----
55+
56+
[NOTE]
57+
====
58+
`hibernate-search-backend-lucene10` is tested against the same test suite as `hibernate-search-backend-lucene`
59+
and currently provides the same search capabilities. The main difference is the Lucene version backing it.
60+
While Hibernate Search {hibernateSearchVersionShort} still <<compatibility-dependencies,targets>> JDK 17,
61+
Lucene 10 is leveraging new Java APIs, particularly to work with memory, that are available starting with JDK 21.
62+
For users running their applications on JDK 21+ and wanting to get the latest Lucene improvements, it would be beneficial to
63+
use this new backend.
64+
====

0 commit comments

Comments
 (0)