Chapter 27. Hibernate Search

27.1. Introduction

Full text search engines like ApacheLucene™ bring full text and efficient queries to applications. Hibernate Search, which makes use of Apache Lucene, can index your domain model with a few added annotations, handle database or index synchronization, and return regular managed objects that are matched by full text queries. There are some limitations to dealing with an object domain model over a text index — such as maintaining index accuracy, consistency between index structure and the domain model, and avoiding query mismatches — but these limitations are far outweighed by the advantages of speed and efficiency.
Hibernate Search has been designed to integrate as naturally as possible with the Java Persistence API (JPA) and Hibernate. As a natural extension, JBoss Seam provides Hibernate Search integration.
Refer to the Hibernate Search guide distributed with this Red Hat JBoss Web Framework Kit for information specific to the Hibernate Search project.