Hibernate Search 6.0.0.Alpha7 released, which is a branch of the 7th 6.0 alpha test version, which is to restore the main index field type parameter , recovery explicit index API, upgrade to Elasticsearch 6.8 and 7.1.
Complete records include:
The realization of all Hibernate Search 5 field type parameter
HSEARCH-3048 added support for the searchable
, norms
and termVectors
field type parameters, bringing Search 6 on par with Search 5.
See this section of the documentation for a description of all available field type parameters.
Recovery explicit written Indexing API
HSEARCH-3049 introduced APIs for explicit writes to indexes, as an alternative or complement to automatic indexing.
The APIs are different from Search 5, but provide similar features.
See the "Explicit indexing" section of the documentation for more information.
Incompatible API backward adjustment
-
HSEARCH-3610:
Search.getSearchSession(Session)
was renamed toSearch.session(Session)
. The old method is still available, but will be removed soon. -
HSEARCH-3591:
SearchQueryContext#sort
now expects aFunction
parameter instead of aConsumer
. -
HSEARCH-3617: The
by(SearchSort)
method was removed from the sort DSL. -
HSEARCH-3604: The concept of "reference projection" has been renamed to "entity reference projection": in the search DSL,
asReference()
becameasEntityReference()
andreference()
becameentityReference()
. Search queries returning references to entities now use theorg.hibernate.search.mapper.orm.common.EntityReference
type instead ofPojoReference
. -
HSEARCH-3605: Some API types related to bridges, container extractors and annotation-based entity mapping have been moved for the sake of consistency.
-
HSEARCH-3587:
MarkerMapping#builder
was renamed toMarkerMapping#marker
.
File
-
There is javadoc on all APIs (HSEARCH-3367).
-
Every available predicate, sort and projection is referenced and has at least one example in the documentation.
-
Newly reintroduced features such as the write APIs are being documented progressively.
Version upgrades
-
HSEARCH-3611: Add support for Elasticsearch 6.8
-
HSEARCH-3592: Upgrade to Elasticsearch 7.1
-
HSEARCH-3595: Upgrade to Hibernate ORM 5.4.3.Final
Other improvements and bug fixes
-
HSEARCH-2539:
MassIndexer.start()
now returns aCompletableFuture
instead of aFuture
. -
HSEARCH-3203:
@DocumentId
now works correctly on properties that are not the entity ID. -
HSEARCH-3254: When building a field sort,
.onMissingValue().use()
now works properly for string fields with the Lucene backend. -
HSEARCH-3255: When building a field sort,
.onMissingValue().use()
now works properly for date/time fields with the Elasticsearch backend. -
HSEARCH-3616: When building a "match id" predicate, the
matchingAny()
now expects aCollection
instead ofCollection
-
HSEARCH-3618: Distance projection will no longer lead to missing hits.
-
HSEARCH-3192:
SearchPredicate
,SearchSort
andSearchProjection
can now safely be cached and reused from one scope instance to another: Hibernate Search will check that they are compatible with the new scope.
See a complete list of Release Notes .