Cover image for Hibernate Search by Example.
Hibernate Search by Example.
Title:
Hibernate Search by Example.
Author:
Perkins, Steve.
ISBN:
9781849519212
Personal Author:
Physical Description:
1 online resource (177 pages)
Contents:
Hibernate Search by Example -- Table of Contents -- Hibernate Search by Example -- Credits -- About the Author -- About the Reviewers -- www.PacktPub.com -- Support files, eBooks, discount offers and more -- Why Subscribe? -- Free Access for Packt account holders -- Preface -- What is Hibernate Search? -- What this book covers -- What you need for this book -- Who this book is for -- Conventions -- Reader feedback -- Customer support -- Downloading the example code -- Errata -- Piracy -- Questions -- 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 -- 2. Mapping Entity Classes -- Choosing an API for Hibernate ORM -- Field mapping options -- Multiple mappings for the same field -- Mapping numeric fields -- Relationships between entities -- Associated entities -- Querying associated entities -- Embedded objects -- Partial indexing -- The programmatic mapping API -- Summary -- 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 -- Keyword query -- Fuzzy search -- Wildcard search -- Exact phrase query -- Range query -- Boolean (combination) queries -- Sorting -- Pagination -- Summary -- 4. Advanced Mapping -- Bridges -- One-to-one custom conversion -- Mapping date fields -- Handling null values -- Custom string conversion -- StringBridge -- TwoWayStringBridge -- ParameterizedBridge -- More complex mappings with FieldBridge -- Splitting a single variable into multiple fields -- Combining multiple properties into a single field -- TwoWayFieldBridge -- Analysis -- Character filtering -- Tokenization -- Token filtering.

Defining and selecting analyzers -- Static analyzer selection -- Dynamic analyzer selection -- Boosting search result relevance -- Static boosting at index-time -- Dynamic boosting at index-time -- Conditional indexing -- Summary -- 5. Advanced Querying -- Filtering -- Creating a filter factory -- Adding a filter key -- Establishing a filter definition -- Enabling the filter for a query -- Projection -- Making a query projection-based -- Converting projection results to an object form -- Making Lucene fields available for projection -- Faceted search -- Discrete facets -- Range facets -- Query-time boosting -- Placing time limits on a query -- Summary -- 6. System Configuration and Index Management -- Automatic versus manual indexing -- Individual updates -- Adds and updates -- Deletes -- Mass updates -- Defragmenting an index -- Manual optimization -- Automatic optimization -- Custom optimizer strategy -- Choosing an index manager -- Configuring workers -- Execution mode -- Thread pool -- Buffer queue -- Selecting and configuring a directory provider -- Filesystem-based -- Locking strategy -- RAM-based -- Using the Luke utility -- Summary -- 7. Advanced Performance Strategies -- General tips -- Running applications in a cluster -- Simple clusters -- Master-slave clusters -- Directory providers -- Worker backends -- A working example -- Sharding Lucene indexes -- Summary -- Index.
Abstract:
A step-by-step guide for getting started with Hibernate Search, employing a practical example application that will make readers quickly learn and use the excellent search capabilities that the Hibernate Search tool offers.This book is for any Java developer who wants to quickly and easily add feature-rich search capabilities to his/her custom applications. It is assumed that readers will have experience in Java development, and understand some basic relational database concepts. However, while core Hibernate experience is very helpful, it is not necessarily required.
Local Note:
Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2017. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.
Electronic Access:
Click to View
Holds: Copies: