Apache Solr PHP Integration

Apache Solr PHP Integration
eBook: $20.99
Formats: PDF, PacktLib, ePub and Mobi formats
save 52%!
Print + free eBook + free PacktLib access to the book: $55.98    Print cover: $34.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Table of Contents
Sample Chapters
  • 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

Book Details

Language : English
Paperback : 118 pages [ 235mm x 191mm ]
Release Date : November 2013
ISBN : 1782164928
ISBN 13 : 9781782164920
Author(s) : Jayant Kumar
Topics and Technologies : All Books, Web Development, Open Source

Table of Contents

Chapter 1: Installing and Integrating Solr and PHP
Chapter 2: Inserting, Updating, and Deleting Documents from Solr
Chapter 3: Select Query on Solr and Query Modes (DisMax/eDisMax)
Chapter 4: Advanced Queries – Filter Queries and Faceting
Chapter 5: Highlighting Results Using PHP and Solr
Chapter 6: Debug and Stats Component
Chapter 7: Spell Check in Solr
Chapter 8: Advanced Solr – Grouping, the MoreLikeThis Query, and Distributed Search
  • Chapter 1: Installing and Integrating Solr and PHP
    • Solr
    • Installing Solr
    • Configuring Tomcat to run Solr
    • Executing a ping query on Solr using PHP
    • Libraries available for PHP-Solr integration
    • Installing Solarium
    • Executing ping queries on Solr using PHP and Solarium library
    • More about endpoints
    • Checking Solr query logs
    • Solarium adapters
    • Summary
      • Chapter 3: Select Query on Solr and Query Modes (DisMax/eDisMax)
        • Creating a basic select query with sorting and return fields
        • Running a query using select configuration
        • Re-using queries
        • DisMax and eDisMax query modes
        • Executing queries using DisMax and eDisMax
        • Date boosting in an eDisMax query
        • Advanced query parameters
        • Summary
              • Chapter 7: Spell Check in Solr
                • Solr configuration for spell check
                • Spell checker implementations available with Solr
                • Running a spell check query using PHP
                • Implementing the autocomplete feature using PHP and Solr
                • Summary

                  Jayant Kumar

                  Jayant Kumar is an experienced software professional and a Bachelor of Engineering in Computer Science, with more than 12 years' of experience in architecting and developing large-scale web applications. Jayant is an expert on search technologies and PHP and has been working with Lucene and Solr for more than 10 years now. He has been the key person responsible for introducing Lucene as a search engine in www.naukri.com, the most successful job portal in India. Jayant has played many different important roles throughout his career, including software developer, team leader, project manager, and architect, but his primary focus has been on building scalable solutions on the web. Currently, he is associated with the digital division of HT Media as the Chief Architect responsible for the job site www.shine.com. Jayant is an avid blogger and his blog can be visited at http://jayant7k.blogspot.in. His LinkedIn profile is available at http://www.linkedin.com/in/jayantkumar.
                  Sorry, we don't have any reviews for this title yet.

                  Code Downloads

                  Download the code and support files for this book.

                  Submit Errata

                  Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.

                  Sample chapters

                  You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

                  Frequently bought together

                  Apache Solr PHP Integration +    Kali Linux – Assuring Security by Penetration Testing =
                  50% Off
                  the second eBook
                  Price for both: $33.45

                  Buy both these recommended eBooks together and get 50% off the cheapest eBook.

                  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

                  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.


                  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 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.

                  Code Download and Errata
                  Packt Anytime, Anywhere
                  Register Books
                  Print Upgrades
                  eBook Downloads
                  Video Support
                  Contact Us
                  Awards Voting Nominations Previous Winners
                  Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
                  Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software