Hibernate Search by Example (Hibernate 搜尋範例)
Steve Perkins
- 出版商: Packt Publishing
- 出版日期: 2013-03-21
- 售價: $1,360
- 貴賓價: 9.5 折 $1,292
- 語言: 英文
- 頁數: 148
- 裝訂: Paperback
- ISBN: 184951920X
- ISBN-13: 9781849519205
-
相關分類:
Java 相關技術
海外代購書籍(需單獨結帳)
相關主題
商品描述
Explore the Hibernate Search system and use its extraordinary search features in your own applications
Overview
- Add search capability to your custom applications
- Integrate with the core Hibernate system, using traditional APIs or JPA
- Write search queries in no time that may be simple or complex
In Detail
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 were 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.
What you will learn from this book
- 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
Approach
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.
商品描述(中文翻譯)
探索 Hibernate Search 系統,並在您的應用程式中使用其卓越的搜尋功能
概述
- 為您的自訂應用程式新增搜尋功能
- 與核心 Hibernate 系統整合,使用傳統 API 或 JPA
- 快速撰寫簡單或複雜的搜尋查詢
詳細內容
使用者期望軟體在搜尋資料時具備高度智能。搜尋應該能同時跨越多個資料點,並能夠辨識結果中的模式和分組。搜尋應能修正使用者的打字錯誤,並使用與使用者搜尋詞相關的術語。當搜尋能讓我們感到驚喜,似乎比我們自己更了解我們所尋找的真正要義時,搜尋便達到了最佳狀態!我們可以在哪裡找到這樣的搜尋系統,並如何有效地使用它?
《Hibernate Search by Example》是一本實用的逐步教程,指導您從 Hibernate Search 的基礎知識到其進階功能。本書逐步構建一個完整的範例應用程式,逐漸展現每一章所介紹的概念。到最後,您將擁有在實際生產應用程式中使用 Hibernate Search 的堅實基礎。
本書從一個簡單的範例開始,並逐步擴展以展示每個介紹的 Hibernate Search 功能。到書的結尾,您將擁有一個功能豐富的應用程式,以及比單獨查看程式碼片段時更深入的理解。
您將學會如何將搜尋整合到核心 Hibernate 應用程式中,無論它們是基於 XML 還是註解,或是您使用 JPA。您將看到如何微調搜尋結果的相關性,並設計能考慮使用者打字錯誤或自動尋找相關術語的搜尋。我們將利用性能優化策略,從在叢集上運行 Hibernate Search 到完全減少對資料庫的訪問需求。
《Hibernate Search by Example》提供了您需要知道的一切,以將搜尋功能納入您自己的自訂應用程式中。
您將從本書學到什麼
- 使核心 Hibernate 實體類別可搜尋,無論它們使用哪種映射 API
- 撰寫不同類型的搜尋查詢,包括關鍵字、精確短語、“模糊”搜尋或範圍搜尋
- 根據各種標準對搜尋結果進行排序
- 使用分頁一次處理和顯示一部分搜尋結果
- 定義自訂分析器,以幫助搜尋調整使用者的打字錯誤並識別相關術語
- 通過提升來微調搜尋結果的相關性
- 應用條件索引邏輯以排除某些資料不被搜尋
- 使 Hibernate Search 知曉關係,以便搜尋涉及多個類別的資料點
方法
一本逐步指南,幫助您開始使用 Hibernate Search,採用一個實用的範例應用程式,讓讀者快速學習並使用 Hibernate Search 工具所提供的卓越搜尋能力。