We just published Hibernate Search 6.2.0.CR1, a candidate release of the next minor version of Hibernate Search.
This release brings in particular a new excludePaths filter for @IndexedEmbedded,
and includePaths/includeDepth/excludePaths filters for @ObjectProjection.
6.2.0.CR1 also includes compatibility with OpenSearch 2.8,
an upgrade to Hibernate ORM 5.6.15.Final,
an upgrade of -orm6 artifacts to Hibernate ORM 6.2.5.Final,
and other bugfixes and improvements.
What’s new
|
For a summary of all new features and improvements since 6.1, head to the dedicated page on hibernate.org. |
Dependency upgrades
- Hibernate ORM (HSEARCH-4880/HSEARCH-4875/HSEARCH-4869)
-
Hibernate Search now depends on Hibernate ORM 5.6.15.Final for its main artifacts, and 6.2.5.Final for
-orm6artifacts. Hibernate ORM 6.0 and 6.1 are no longer considered compatible.
- Elasticsearch (HSEARCH-4857)
-
The Elasticsearch backend now works with Elasticsearch 8.8 as well as other versions that were already compatible.
- OpenSearch (HSEARCH-4870)
-
The Elasticsearch backend now works with OpenSearch 2.8 as well as other versions that were already compatible.
- Others
-
-
HSEARCH-4871: Upgrade to Elasticsearch client 8.8.1
-
@IndexedEmbedded(excludePaths = …)
With HSEARCH-1182,
the @IndexedEmbedded annotation now exposes an excludePaths attribute,
allowing the inclusion of all paths with only a few selectively excluded,
as opposed to the previous approach of selectively including paths with includePaths.
See this section of the reference documentation for more information.
@ObjectProjection(includeDepth = …)/@ObjectProjection(includePaths = …)/@ObjectProjection(excludePaths = …)
With HSEARCH-4725,
the @ObjectProjection annotation now exposes an includeDepth/includePaths/excludePaths attributes,
which allows in particular breaking cycles of nested object projections.
See this section of the reference documentation for more information.
Other improvements and bug fixes
-
HSEARCH-4616: For clarity, "automatic indexing" was renamed to something more explicit throughout Hibernate Search and its documentation. As a result:
-
hibernate.search.automatic_indexing.enabledis now deprecated in favor ofhibernate.search.indexing.listeners.enabled -
hibernate.search.automatic_indexing.synchronization.strategyis now deprecated in favor ofhibernate.search.indexing.plan.synchronization.strategy
-
-
HSEARCH-4866:
hibernate.search.automatic_indexing.enable_dirty_checkis now deprecated with no alternative to replace it. In future versions, a dirty check will always be performed when considering whether to trigger reindexing. -
HSEARCH-4877: (Infinispan) Provided identifier bridges are now applied in the Search DSL and
idprojections.
And more. For a full list of changes since the previous releases, please see the release notes.
How to get this release
All details are available and up to date on the dedicated page on hibernate.org.
Getting started, migrating
For new applications, refer to the getting started guide:
For existing applications, Hibernate Search 6.2 is a drop-in replacement for 6.1, assuming you also upgrade the dependencies. Information about deprecated configuration and API is included in the migration guide.
Feedback, issues, ideas?
To get in touch, use the following channels:
-
hibernate-search tag on Stackoverflow (usage questions)
-
User forum (usage questions, general feedback)
-
Issue tracker (bug reports, feature requests)
-
Mailing list (development-related discussions)