O'Reilly logo

Hibernate Search in Action by John Griffin, Emmanuel Bernard

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required