O'Reilly logo

Hibernate Search by Example by Steve Perkins

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

Summary

In this chapter, we expanded our knowledge of how to map classes for searching. We can now use Hibernate Search to map entities and other classes to Lucene, regardless of how Hibernate ORM maps them to the database. If we ever need to map classes to Lucene without adding annotations, we can use a programmatic mapping API to handle this at runtime.

We have now seen how to manage Hibernate Search across associated entities, as well as embedded objects whose lifecycle depend on their containing entity. In both cases, we covered some obscure quirks that can trip up developers. Finally, we learned how to control which fields of an associated or embedded class are indexed, depending on which entity contains them.

In the next chapter, we will use ...

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