This chapter describes the querying functionality of the Hibernate Search module.
See Querying JPA/Hibernate sources for instructions on how to create query types.
Querying with Querydsl Hibernate Search is as simple as this:
QUser user = QUser.user; SearchQuery<User> query = new SearchQuery<User>(session, user); List<User> list = query .where(user.firstName.eq("Bob")) .fetch();
For general usage instructions see Querying Lucene sources .
In the query serialization the only difference to the Querydsl Lucene module is that
paths are treated differently.
For org.hibernate.search.annotations.Field
annotated properties the
name attribute is used with the property name as fallback for the field name.