Chapter 5. Hibernate Search: Apache Lucene™ Integration

Chapter 5. Hibernate Search: Apache Lucene™ Integration

5.1. Architecture
5.2. Configuration
5.2.1. Directory configuration
5.2.2. Enabling automatic indexing
5.3. Mapping entities to the index structure
5.4. Property/Field Bridge
5.4.1. Built-in bridges
5.4.2. Custom Bridge
5.5. Querying
5.6. Indexing

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