|This chapter covers|
Although Hibernate Search comes with built-in bridges for most useful Java types, they won’t cover all your needs. It’s not uncommon in an application to need to define specific types. Even if the type you’re wanting to index is supported, its string representation generated by Hibernate Search and indexed by Lucene might not be appropriate for the kind of full-text query you’re looking for. Generally speaking, what happens when you need to map the unexpected? Hibernate Search has the notion of a bridge, which converts the object structure into the Lucene structure. You can extend the supporting types and their behavior by writing your ...