Sphinx Search Beginner's Guide
暫譯: Sphinx 搜尋初學者指南
Abbas Ali
- 出版商: Packt Publishing
- 出版日期: 2011-03-21
- 售價: $1,840
- 貴賓價: 9.5 折 $1,748
- 語言: 英文
- 頁數: 244
- 裝訂: Paperback
- ISBN: 184951254X
- ISBN-13: 9781849512541
海外代購書籍(需單獨結帳)
商品描述
Implement full-text search with lightning speed and accuracy using Sphinx
- Create applications with full-text search functionality
- Build indexes from varied data sources
- Use the Sphinx client API implementation in your application to fire full text-search queries
- Filter, sort, and group results based on different attributes
- Search with different matching and ranking modes
- Each chapter is explained using plenty of real-world examples
In Detail
Sphinx is an open-source full-text search server, designed from the ground up with a focus on performance, relevance, and integration simplicity. With Sphinx, you can either batch index and search data stored in an SQL database, NoSQL storage, or just files quickly and easily — or index and search data on the fly, working with Sphinx pretty much as a database server.
Sphinx Search Beginner's Guide serves as a guide to everything you need to know about running a Sphinx Search Engine. In today's world, search is an integral part of any application and having a reliable search engine like Sphinx Search can be the difference between running a successful and unsuccessful business. What good is being on the Web if no one knows you are there? It is easy to build a proficient search engine with Sphinx Search Beginner's Guide to hand.
This practical guide provides insight into one of the most popular open source search engines, Sphinx. You will learn how to set up Sphinx on your own server, with the basics of how a search engine works explained in brief. You will learn how to create an index using Sphinx and then perform a search on that index using the client API, as well as learning how to configure Sphinx to get the most out of it. You will also be shown how Sphinx gives quality search results by relevance ranking. The book will help a beginner in all possible ways to create both simple and complex search forms in their applications. It's easy to use Sphinx Search engine, when you have the Sphinx Search Beginner's Guide to hand.
What you will learn from this book
- Install Sphinx on your system
- Create indexes in Sphinx by using Sphinx's indexer utility
- Use the Sphinx API to issue search queries from your PHP applications
- Filter your search results using different attributes
- Create a functional application in PHP that will use the Sphinx search engine as the backend to serve search queries
- Use PHP to create an application that fetches different feeds and stores the feed item data in a Sphinx index
- Create an advanced search form that implements lots of filters, as well as a search form for geodistance searches
- Explore the different configuration options available in the Sphinx configuration file that tailor Sphinx according to your needs
Approach
This book is a step-by-step guide for an absolute beginner. It covers everything, from installing to configuring, to get you started quickly. It has numerous code examples that the reader can try on their own and learn while doing so. It has two full-fledged applications as examples that readers can follow. This book is specifically focused on the Search feature of web applications
Who this book is written for
This book is for developers who are new to Sphinx Search. All code examples use PHP but the logic is same for any other web scripting languages as well.
商品描述(中文翻譯)
使用 Sphinx 實現快速且準確的全文搜索
- 創建具有全文搜索功能的應用程式
- 從各種數據來源構建索引
- 在應用程式中使用 Sphinx 客戶端 API 實現全文搜索查詢
- 根據不同屬性過濾、排序和分組結果
- 使用不同的匹配和排名模式進行搜索
- 每一章都使用大量的實際案例進行解釋
詳細內容
Sphinx 是一個開源的全文搜索伺服器,從一開始就專注於性能、相關性和集成簡便性。使用 Sphinx,您可以快速輕鬆地批量索引和搜索存儲在 SQL 數據庫、NoSQL 存儲或僅僅是文件中的數據,或者即時索引和搜索數據,幾乎可以將 Sphinx 當作數據庫伺服器使用。
Sphinx Search 初學者指南是運行 Sphinx 搜索引擎所需了解的一切的指南。在當今世界,搜索是任何應用程式不可或缺的一部分,擁有像 Sphinx Search 這樣可靠的搜索引擎可以成為成功與失敗之間的區別。如果沒有人知道您在網上,那麼在網上又有什麼意義呢?擁有 Sphinx Search 初學者指南,建立一個高效的搜索引擎變得簡單。
這本實用指南提供了對最受歡迎的開源搜索引擎 Sphinx 的深入了解。您將學習如何在自己的伺服器上設置 Sphinx,並簡要解釋搜索引擎的基本運作原理。您將學習如何使用 Sphinx 創建索引,然後使用客戶端 API 在該索引上執行搜索,還將學習如何配置 Sphinx 以充分利用其功能。您還將看到 Sphinx 如何通過相關性排名提供高質量的搜索結果。本書將以各種方式幫助初學者在其應用程式中創建簡單和複雜的搜索表單。當您擁有 Sphinx Search 初學者指南時,使用 Sphinx 搜索引擎變得輕而易舉。
您將從本書中學到什麼
- 在系統上安裝 Sphinx
- 使用 Sphinx 的索引器工具在 Sphinx 中創建索引
- 使用 Sphinx API 從您的 PHP 應用程式發出搜索查詢
- 使用不同屬性過濾搜索結果
- 創建一個功能性應用程式,使用 Sphinx 搜索引擎作為後端來處理搜索查詢
- 使用 PHP 創建一個應用程式,提取不同的數據源並將數據項存儲在 Sphinx 索引中
- 創建一個實現多種過濾器的高級搜索表單,以及一個用於地理距離搜索的搜索表單
- 探索 Sphinx 配置文件中可用的不同配置選項,以根據您的需求調整 Sphinx
方法
本書是針對完全初學者的逐步指南。它涵蓋了從安裝到配置的所有內容,幫助您快速入門。書中有大量的代碼示例,讀者可以自己嘗試並在此過程中學習。書中提供了兩個完整的應用程式作為示例,讀者可以跟隨。本書特別專注於網頁應用程式的搜索功能。
本書的讀者對象
本書適合對 Sphinx Search 新手的開發人員。所有代碼示例使用 PHP,但邏輯對於任何其他網頁腳本語言也是相同的。