Chapter 3. Mapping simple data structures

This chapter covers
  • Index mapping of an entity class and its identity property
  • Index mapping of properties (built-in bridge, indexing strategy)
  • Using an analyzer

Chapter 2 gave us a very brief introduction to data mapping. This chapter will explain in greater detail each basic mapping structure, the reasoning behind it, and more important, in which situation it is useful. You will learn how to declare an entity as indexable, which properties are indexed in this entity, and what kind of indexing strategy is used. But before that, let’s see why mapping is required.

3.1. Why do we need mapping, again?

The world in which our primary data structure lives (the object-oriented domain model) has a completely ...

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.