In the previous chapter, we created various types of persistent objects and mapped them to Lucene search indexes in various ways. However, we have basically used the same keyword query in all the versions of the example application so far.
In this chapter, we will explore other search query types offered by the Hibernate Search DSL, as well as important features such as sorting and pagination that are common to all of them.
So far, we discussed API alternatives for mapping classes to the database with Hibernate ORM. You can map your classes with XML or annotations, using JPA or the traditional API, and Hibernate Search will work fine so long as you are aware of some minor differences.