Chapter 2. Getting started with Hibernate Search
Listing 2.1. MANIFEST.MF declaring a dependency on Hibernate Search
Listing 2.2. Structure of the EAR containing Hibernate Search
Listing 2.3. Hibernate Search configuration
Listing 2.4. Enable event listeners if you don’t use Hibernate Annotations
Listing 2.5. Enable event listeners for Search 3.0 if you don’t use Annotations.
Listing 2.6. Mapping a persistent POJO
Listing 2.7. Mapping a persistent POJO using an hbm.xml file
Listing 2.8. Retrieving a FullTextSession or a FullTextEntityManager
Listing 2.9. Manually indexing object instances
Listing 2.10. Building a Lucene query
Listing 2.11. Using the MultiFieldQueryParser
Listing 2.12. Creating a Hibernate Search query
Listing 2.13. Executing a Hibernate Search query
Chapter 3. Mapping simple data structures
Listing 3.1. An entity is indexed by Hibernate Search when marked @Indexed
Listing 3.2. Overriding an indexed name to refine the targeted Lucene Directory.
Listing 3.3. Indexed entity sharing the same underlying Lucene Directory
Listing 3.4. Mapping a class and its subclass
Listing 3.5. Mark the identifier property as the Lucene Document id
Listing 3.6. Using a composite identifier through a custom FieldBridge
Listing 3.7. Configuring Hibernate Search to store Lucene indexes on a filesystem
Listing 3.8. @Field marks a property as indexed.
Listing 3.9. Mapping a Date property
Listing 3.10. Indexing a property using the tokenized strategy