Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Apache Solr & PHP - Introduction

Apache Solr & PHP - Introduction

A presentation at UAD University, discuss about implementation of Apache Solr search engine with PHP

Hiraq Citra M

June 05, 2013
Tweet

More Decks by Hiraq Citra M

Other Decks in Technology

Transcript

  1. Hiraq Citra Mahardika > OntelStudio.com > CakePHP user > NoSQL

    user > Javascript lover About me ID > facebook.com/hiraq > twitter.com/_hiraq > github.com/hiraq
  2. SEARCH ENGINE A search engine is an information retrieval system

    designed to help find information stored on a computer system. The search results are usually presented in a list and are commonly called hits. Search engines help to minimize the time required to find information and the amount of information which must be consulted, akin to other techniques for managing information http://en.wikipedia.org/wiki/Search_engine_(computing)
  3. APACHE LUCENE Apache LuceneTM is a high-performance, full- featured text

    search engine library written entirely in Java. It is a technology suitable for nearly any application that requires full-text search, especially cross-platform. http://lucene.apache.org/core/
  4. APACHE SOLR Apache Lucene : Core engine full text search

    Apache Solr : Advance full text search engine server REST! (:HTTP)
  5. SITES USING SOLR > INSTAGRAM > REDDIT > DIGG >

    AOL > NETFLIX > EBAY > APPLE > DRUPAL / ACQUIA
  6. WHY SOLR? 1. Optimized for high volume traffic 2. Faceted

    search 3. Geospatial search 4. Text Analysis 5. Performance optimization 6. Spelling suggestions DESIGNED FOR SEARCH!
  7. REQUIREMENTS 1. JAVA SDK 2. TOMCAT 3. SOLR http://wiki.apache.org/solr/SolrInstall https://github.

    com/sunspot/sunspot/wiki/Configure-Solr-on- Ubuntu,-the-quickest-way
  8. INSTALLATION 1. Download SOLR 2. Extract 3. 'cd' to solr

    folder 4. 'cd' to example folder java -jar start.jar ONLY FOR TESTING!!!!!
  9. PHP Solr (PECL) - Install > sudo apt-get install php5-curl

    > sudo apt-get install libcurl4-gnutls-dev > sudo apt-get install libxml2 > sudo apt-get install libxml2-dev > sudo pecl install -n solr > sudo vim /etc/php5/conf.d/solr.ini > add extension > restart webserver/php5-fpm