Hibernate Search by Example

Explore the Hibernate Search system and use its extraordinary search features in your own applications
Preview in Mapt

Hibernate Search by Example

Steve Perkins

Explore the Hibernate Search system and use its extraordinary search features in your own applications
Mapt Subscription
FREE
$29.99/m after trial
eBook
$10.00
RRP $17.99
Save 44%
Print + eBook
$29.99
RRP $29.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$10.00
$29.99
$29.99 p/m after trial
RRP $17.99
RRP $29.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Hibernate Search by Example Book Cover
Hibernate Search by Example
$ 17.99
$ 10.00
Julia 1.0 By Example Book Cover
Julia 1.0 By Example
$ 39.99
$ 10.00
Buy 2 for $20.00
Save $37.98
Add to Cart

Book Details

ISBN 139781849519205
Paperback148 pages

Book Description

Users expect software to be highly intelligent when searching data. Searches should span across multiple data points at once, and be able to spot patterns and groupings in the results found. Searches should be able to fix user typos, and use terms related to the user’s search words. Searching is at its best when it pleasantly surprises us, seeming to understand the real gist of what we’re looking for better than we understood it ourselves! Where can we find such a search system and how can we use it efficiently?

Hibernate Search by Example is a practical, step-by-step tutorial, which guides you from the basics of Hibernate Search to its advanced features. The book builds toward a complete sample application, slowly fleshed out to demonstrate each and every concept being introduced in each chapter. By the end you will have a solid foundation for using Hibernate Search in real production applications.

This book starts with a simple example, and incrementally builds upon it to showcase each Hibernate Search feature introduced. By the end of the book you will have a working, functionality-rich application, and a deeper understanding than you might have had from looking at code snippets in a vacuum.

You will learn how to integrate search into core Hibernate applications, whether they are XML or annotation-based, or if you are using JPA. You will see how to fine-tune the relevance of search results, and design searches that can account for user typos or automatically reach for related terms. We will take advantage of performance optimization strategies, from running Hibernate Search in a cluster to reducing the need for database access at all.

Hibernate Search by Example provides everything you need to know to incorporate search functionality into your own custom applications.

Table of Contents

Chapter 1: Your First Application
Creating an entity class
Preparing the entity for Hibernate Search
Loading the test data
Writing the search query code
Selecting a build system
Setting up the project and importing Hibernate Search
Running the application
Summary
Chapter 2: Mapping Entity Classes
Choosing an API for Hibernate ORM
Field mapping options
Relationships between entities
Partial indexing
The programmatic mapping API
Summary
Chapter 3: Performing Queries
Mapping API versus query API
Using JPA for queries
Setting up a project for Hibernate Search and JPA
The Hibernate Search DSL
Sorting
Pagination
Summary
Chapter 4: Advanced Mapping
Bridges
Analysis
Boosting search result relevance
Conditional indexing
Summary
Chapter 5: Advanced Querying
Filtering
Projection
Faceted search
Query-time boosting
Placing time limits on a query
Summary
Chapter 6: System Configuration and Index Management
Automatic versus manual indexing
Defragmenting an index
Choosing an index manager
Configuring workers
Selecting and configuring a directory provider
Using the Luke utility
Summary
Chapter 7: Advanced Performance Strategies
General tips
Running applications in a cluster
Sharding Lucene indexes
Summary

What You Will Learn

  • Make core Hibernate entity classes searchable, no matter which mapping API they use
  • Write different kinds of search queries by keyword, exact phrase, “fuzzy” search, or searching within a range
  • Sort search results by various criteria
  • Use pagination to work with and display search results one chunk at a time
  • Define custom analyzers to help searches adjust for user typos and recognize related terms
  • Fine-tune the relevance of search results through boosting
  • Apply conditional indexing logic to exclude certain data from being searchable
  • Make Hibernate Search aware of relationships for searches involving data points spread out over multiple classes

Authors

Table of Contents

Chapter 1: Your First Application
Creating an entity class
Preparing the entity for Hibernate Search
Loading the test data
Writing the search query code
Selecting a build system
Setting up the project and importing Hibernate Search
Running the application
Summary
Chapter 2: Mapping Entity Classes
Choosing an API for Hibernate ORM
Field mapping options
Relationships between entities
Partial indexing
The programmatic mapping API
Summary
Chapter 3: Performing Queries
Mapping API versus query API
Using JPA for queries
Setting up a project for Hibernate Search and JPA
The Hibernate Search DSL
Sorting
Pagination
Summary
Chapter 4: Advanced Mapping
Bridges
Analysis
Boosting search result relevance
Conditional indexing
Summary
Chapter 5: Advanced Querying
Filtering
Projection
Faceted search
Query-time boosting
Placing time limits on a query
Summary
Chapter 6: System Configuration and Index Management
Automatic versus manual indexing
Defragmenting an index
Choosing an index manager
Configuring workers
Selecting and configuring a directory provider
Using the Luke utility
Summary
Chapter 7: Advanced Performance Strategies
General tips
Running applications in a cluster
Sharding Lucene indexes
Summary

Book Details

ISBN 139781849519205
Paperback148 pages
Read More

Read More Reviews

Recommended for You

Mastering SQL Queries for SAP Business One Book Cover
Mastering SQL Queries for SAP Business One
$ 32.99
$ 10.00
Oracle Certified Associate, Java SE 7 Programmer Study Guide Book Cover
Oracle Certified Associate, Java SE 7 Programmer Study Guide
$ 29.99
$ 10.00
Responsive Web Design with HTML5 and CSS3 Book Cover
Responsive Web Design with HTML5 and CSS3
$ 23.99
$ 4.80
Creating your MySQL Database: Practical Design Tips and Techniques  Book Cover
Creating your MySQL Database: Practical Design Tips and Techniques
$ 11.99
$ 8.40
Oracle Advanced PL/SQL Developer Professional Guide Book Cover
Oracle Advanced PL/SQL Developer Professional Guide
$ 35.99
$ 10.00
Java EE 7 Developer Handbook Book Cover
Java EE 7 Developer Handbook
$ 35.99
$ 10.00