Apache Solr PHP Integration

Jayant Kumar

  • 出版商: Packt Publishing
  • 出版日期: 2013-11-28
  • 售價: $1,640
  • 貴賓價: 9.5$1,558
  • 語言: 英文
  • 頁數: 118
  • 裝訂: Paperback
  • ISBN: 1782164928
  • ISBN-13: 9781782164920
  • 相關分類: PHP全文搜尋引擎 Full-text-search
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

For PHP developers who need to integrate a search facility into their applications, this guide is your passport to success. It takes you step by step through the great features of Apache Solr and how to implement them.

Overview

  • Understand the tools that can be used to communicate between PHP and Solr, and how they work internally
  • Explore the essential search functions of Solr such as sorting, boosting, faceting, and highlighting using your PHP code
  • Take a look at some advanced features of Solr such as spell checking, grouping, and auto complete with implementations using PHP code

In Detail

The Search tool is a very powerful for any website. No matter what type of website, the search tool helps visitors find what they are looking for using key words and narrow down the results using facets. Solr is the popular, blazing fast, open source enterprise search platform from the Apache Lucene project. It is highly scalable, providing distributed search and index replication, and it powers the search and navigation features of many of the world's largest websites.

This book is a practical, hands-on, end-to-end guide that provides you with all the tools required to build a fully-featured search application using Apache Solr and PHP. The book contains practical examples and step-by-step instructions.

Starting off with the basics of installing Apache Solr and integrating it with Php, the book then proceeds to explore the features provided by Solr to improve searches using Php. You will learn how to build and maintain a Solr index using Php, discover the query modes available with Solr, and how to use them to tune the Solr queries to retrieve relevant results. You will look at how to build and use facets in your search, how to tune and use fast result highlighting, and how to build a spell check and auto complete feature using Solr. You will finish by learning some of the advanced concepts required to runa large-scale enterprise level search infrastructure.

What you will learn from this book

  • Install Solr and integrate it with PHP
  • Insert, update, and delete documents from the Solr index using PHP
  • Perform select queries using the dismax and edismax query modes
  • Sort, boost, and re-use select queries using PHP
  • Employ faceting and result highlighting
  • Debug and fine-tune Solr search queries for relevance
  • Implement the spell checker and auto complete features using Solr and PHP
  • Search for documents similar to a particular document and Retrieve index stats using PHP
  • Deploy distributed searching using sharing and load-balancing of Solr queries

Approach

This book is full of step-by-step example-oriented tutorials which will show readers how to integrate Solr in PHP applications using the available libraries, and boost the inherent search facilities that Solr offers.

Who this book is written for

If you are a developer who knows PHP and is interested in integrating search into your applications, this is the book for you. No advanced knowledge of Solr is required. Very basic knowledge of system commands and the command-line interface on both Linux and Windows is required. You should also be familiar with the concept of Web servers.

商品描述(中文翻譯)

對於需要將搜索功能整合到其應用程序中的PHP開發人員,本指南將是您成功的護照。它將逐步引導您了解Apache Solr的優秀功能以及如何實施它們。

概述:
- 了解可用於PHP和Solr之間通信的工具以及它們的內部工作原理
- 使用您的PHP代碼探索Solr的基本搜索功能,如排序、加權、分面和高亮顯示
- 通過使用PHP代碼實現拼寫檢查、分組和自動完成等Solr的高級功能

詳細內容:
搜索工具對於任何網站都非常強大。無論是什麼類型的網站,搜索工具都可以幫助訪問者使用關鍵詞找到他們想要的內容,並使用分面來縮小搜索結果。Solr是Apache Lucene項目中流行的、極速的、開源的企業級搜索平台。它具有高度可擴展性,提供分佈式搜索和索引複製功能,並為世界上許多最大的網站提供搜索和導航功能。

本書是一本實用的、實戰導向的端到端指南,為您提供使用Apache Solr和PHP構建完整功能的搜索應用程序所需的所有工具。本書包含實用示例和逐步指導。

從安裝Apache Solr並將其與PHP集成的基礎知識開始,本書進一步探索Solr提供的功能,以改進使用PHP進行搜索。您將學習如何使用PHP構建和維護Solr索引,發現Solr提供的查詢模式,以及如何使用它們調整Solr查詢以獲取相關結果。您將研究如何在搜索中使用和調整分面、快速結果高亮顯示,以及如何使用Solr構建拼寫檢查和自動完成功能。最後,您將學習運行大規模企業級搜索基礎設施所需的一些高級概念。

本書將教您:
- 安裝Solr並將其與PHP集成
- 使用PHP向Solr索引中插入、更新和刪除文檔
- 使用dismax和edismax查詢模式執行選擇查詢
- 使用PHP進行排序、加權和重用選擇查詢
- 使用分面和結果高亮顯示
- 調試和微調Solr搜索查詢以提高相關性
- 使用Solr和PHP實現拼寫檢查和自動完成功能
- 搜索與特定文檔相似的文檔,並使用PHP檢索索引統計信息
- 使用共享和負載平衡的Solr查詢部署分佈式搜索

本書的特點:
本書充滿了以示例為導向的逐步教程,向讀者展示如何使用可用的庫在PHP應用程序中集成Solr,並提升Solr提供的內置搜索功能。

本書的讀者:
如果您是一位熟悉PHP並有興趣將搜索功能整合到應用程序中的開發人員,那麼本書適合您。不需要對Solr有高級知識,但需要對Linux和Windows上的系統命令和命令行界面有基本了解。您還應該熟悉Web服務器的概念。