We just published Hibernate Search 6.1.0.CR1, the first release candidate of Hibernate Search 6.1.
Among the main changes since Beta2: better defaults and optional operators for the regexp predicate, additional Maven artifacts compatible with Hibernate ORM 6, and more.
For a summary of all new features and improvements since 6.0, head to the dedicated page on hibernate.org.
- Hibernate ORM (HSEARCH-4436)
Hibernate Search 6.1 now depends on Hibernate ORM 5.6.3.
The regexp predicate, introduced in Hibernate Search 6.1, now allows selecting optional operators explicitly using flags (HSEARCH-4362).
These operators are no longer enabled by default,
which should avoid problems such as the regexp
@ is an optional operator matching any string…
For more information about optional operators, head to this section of the reference documentation.
Thanks to HSEARCH-3277, beside the traditional artifacts targeting Java EE (JPA, CDI, …) and Hibernate ORM 5.x, Hibernate Search now provides alternative, experimental artifacts that target Hibernate ORM 6.0.0.Beta3 and Jakarta EE 9.1 (Jakarta Persistence 3, Jakarta CDI 3).
These artifacts have their artifact ID suffixed with "-orm6".
In Hibernate Search 6.1.0.CR1, this includes the following ORM 6 artifacts:
Note that in order to switch to Hibernate ORM 6 and Jakarta EE, you will need to switch to these artifacts, but also:
Use Hibernate ORM 6 instead of 5.x; this involves changing the group ID for Hibernate ORM artifacts, not just the version:
Use Jakarta EE-specific artifacts for your other Java EE dependencies.
Convert your code to Jakarta EE APIs. This should be rather straightforward: simply replace
import jakarta.persistence.<something>everywhere in your code (same with
Find a new version of your framework or application server that supports Jakarta EE. This might be hard to come by, as Jakarta EE is still young, but some application servers already provide at least a preview.
HSEARCH-4362, HSEARCH-4443: The
regexppredicate no longer enables optional operators by default. To restore the previous behavior, call
.flags( EnumSet.allOf( RegexpQueryFlag.class ) )when setting the predicate options.
HSEARCH-4425, HSEARCH-4443: The structure of the tables holding the outbox events and the list of connected agents has changed. You will need to drop your current outbox event and agent tables and re-create the necessary tables.
HSEARCH-4425: Mark non-nullable properties as such in OutboxPollingOutboxEventAdditionalJaxbMappingProducer
HSEARCH-4443: Enum properties in outbox-polling entities (agent, outboxevent) have a weird type in database
HSEARCH-4438: More detailed error message for syntax errors in custom mapping/settings file
And more. For a full list of changes since the previous releases, please see the release notes.
All details are available and up to date on the dedicated page on hibernate.org.