Here we are helping you migrate your existing Search application to the latest and greatest.
The aim of this guide is to assist you migrating an existing application using any version
5.2.x of Hibernate Search to the latest of the
If you’re looking to migrate different versions see Hibernate Search migration guides.
This document provides pointers for a migration.
It refers to Hibernate Search version
The Faceting engine has seen significant improvements. Most of the changes don’t affect the API, with two very notable exceptions:
You have to add a
@Facets) annotation on the fields which you intend to use for faceting.
The maximum number of facets returned by a query is now 100 by default. You can override this to a value of your own by calling
.maxFacetCount( <value> )when building the faceting request.
A full explanation and examples can be found on the this blog post.