Chapter 2. Getting started with Hibernate Search

 

This chapter covers

  • What is Hibernate Search?
  • How to set up and configure Hibernate Search
  • An introduction to mapping your domain model
  • An introduction to indexing your data
  • An introduction to doing full-text queries
  • How to use Luke

In the chapter 1, we discussed difficulties of integrating a full-text search engine such as Apache Lucene into a Java application centered on a domain model and using Hibernate or Java Persistence to persist data. More specifically, we saw three mismatches:

  • Structural mismatchHow to convert the object domain into the text-only index; how to deal with relations between objects in the index.
  • Synchronization mismatchHow to keep the database and the index synchronized all the time.
  • Retrieval mismatchHow to get a seamless integration between the domain model-centric data-retrieval methods and full-text search.

Hibernate Search leverages the Hibernate ORM and Apache Lucene (full-text search engine) technologies to address these mismatches. This chapter will give you an overview of Hibernate Search: how to use it, how to express full-text queries, and how it fits into the Hibernate programmatic model.

2.1. Requirements: what Hibernate Search needs

 
 
 

2.2. Setting up Hibernate Search

 
 
 

2.3. Mapping the domain model

 

2.4. Indexing your data

 
 
 
 

2.5. Querying your data

 
 
 

2.6. Luke: inside look into Lucene indexes

 
 

2.7. Summary

 
 
 
 
sitemap

Unable to load book!

The book could not be loaded.

(try again in a couple of minutes)

manning.com homepage
test yourself with a liveTest