Hibernate Search by Example.
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 feat...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Pub.,
2013.
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Table of Contents; Hibernate Search by Example; 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 codeSelecting 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 DSLKeyword 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 analyzersStatic 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 querySummary; 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.