Chapter 5. Hibernate Search: Apache Lucene™ Integration
Apache Lucene is a high-performance Java search engine library available at the Apache Software Foundation. Hibernate Annotations includes a package of annotations that allows you to mark any domain model object as indexable and have Hibernate maintain a Lucene index of any instances persisted via Hibernate. Apache Lucene is also integrated with the Hibernate query facility.
Hibernate Search is a work in progress and new features are cooking in this area. So expect some compatibility changes in subsequent versions.
[1] Using a Range query is debattable and has drawbacks, an alternative approach is to use a Filter query which will filter the result query to the appropriate range.
Hibernate Search™ will support a padding mechanism