Chapter 5. Indexing: where, how, what, and when

This chapter covers
  • Choosing and configuring directory providers
  • Choosing the appropriate analyzer
  • Understanding Hibernate Search transparent indexing
  • Using manual indexing

Indexing is the action of preparing data so Lucene can answer your full-text queries in an efficient way. The index should be as close as possible to your real data changes and not lag behind. Why does Lucene need to prepare data? In order to answer full-text queries efficiently, Lucene needs to store some efficient representation of the data. Since most full-text search queries revolve around the idea of words, the index is organized per word. For each word, the index structure stores the list of documents and fields matching ...

Get Hibernate Search in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.