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

Supercharge your WordPress website with Apache ...

Vineet Talwar
September 04, 2016

Supercharge your WordPress website with Apache Solr

This session will be about integrating Apache Solr with WordPress, why and when Apache Solr should be preferred instead of WordPress default search and what is the easiest way to implement it. The session will further throw some light on comparison of default WordPress Search and Apache Solr wordpress search. In the end, there would be a live demo on how to integrate Apache Solr into WordPress with hosted-solr.com .
Session Link: https://frankfurt.wordcamp.org/2016/session/supercharge-your-wordpress-website-with-apache-solr/

Vineet Talwar

September 04, 2016
Tweet

More Decks by Vineet Talwar

Other Decks in Technology

Transcript

  1. Senior Developer WordPress Developer Ivaylo Kolbinger Ivanov Vineet Talwar Supercharge

    your WordPress website with Apache Solr WordCamp Frankfurt 2016
  2. 1. Speaker Introduction 2. Apache Solr 3. WordPress vs. Solr

    search 4. Installation of Solr 5. Solr as a Service 6. Live Demo 
 2 Agenda
  3. Apache Solr 5 What is Apache Solr?
 
 
 “Apache

    Solr is a search platform focused on delivering enterprise class, high performance search functionality.“
  4. Apache Solr 6 Benefits Advanced Full-text search Performance Faceted Search

    Fuzzy Match Search Stopwords Search by Synonyms Search within multiple sites and so on …
  5. Apache Solr 7 When and Why? High Traffic Website Too

    many content, like posts, products, visitors, comments Search within Files Multilingual Search Better User Experience Search results within any taxonomies, custom fields, attributes, or variations. One Search for multiple sites
  6. 10 Features Default WordPress Search Solr Search Scalable Not scalable

    Enough Highly Scalable Search Algorithms MySQL Query Made for Search High Web Traffic Not optimized Optimized Fuzzy Search No Yes Query Types Keywords Phrase, Wildcard, Range Search Filters No Yes Spell Checker No Yes Rich Content Indexing No Yes
  7. 11 Features Default WordPress Search Solr Search Rich Content Indexing

    No Yes Rich Document Parsing No Yes Fielded Search No Yes Sorting No Sorting by any Field Data Handling Tables / Row and Column Schema / XML Autocomplete No Yes Full Text Search No Yes Multisite Global Search No Yes
  8. Regular Installation Solr 13 Install Java Runtime Environment sudo apt-get

    install openjdk-7-jre-headless sudo apt-get install unzip curl php5-curl Install unzip, curl and php5-curl wget http://apache.bytenet.in/lucene/solr/4.10.4/solr-4.10.4.tgz Download and install Solr
  9. Regular Installation Solr 14 Configure Solr Scheme and solrconfig.xml sudo

    cp /opt/solr-4.10.4/example/solr/collection1/conf/schema.xml /opt/solr-4.10.4/ example/solr/collection1/conf/schema.xml.original sudo cp /opt/solr-4.10.4/example/solr/collection1/conf/solrconfig.xml /opt/ solr-4.10.4/example/solr/collection1/conf/solrconfig.xml.original sudo cp schema.xml /opt/solr-4.10.4/example/solr/collection1/conf/ sudo cp solrconfig.xml /opt/solr-4.10.4/example/solr/collection1/conf/ sudo addgroup --system solr sudo adduser --system --ingroup solr --home /opt/solr-4.10.4 --shell /bin/sh -- disabled-password --disabled-login solr sudo chown -R solr:solr /opt/solr-4.10.4 Create a User Account and User Group for Solr sudo nano /etc/init.d/solr Configure Solr as a Startup Service
  10. null; then if [ -f "$PIDFILE" ]; then log_success_msg "$DESC

    is not running, but pid file exists." exit 1 else log_success_msg "$DESC is not running." exit 3 fi else log_success_msg "$DESC is running with pid `cat $PIDFILE`" fi ;; restart|force-reload) if ! start-stop-daemon --quiet --test --start --pidfile "$PIDFILE" \ --user "$SOLR_USER" --group "$SOLR_GROUP" --startas "$JAVA" > /dev/ null; then $0 stop $* sleep 1 fi $0 start $* ;; try-restart) if start-stop-daemon --quiet --test --start --pidfile "$PIDFILE" \ --user "$SOLR_USER" --group "$SOLR_GROUP" --startas "$JAVA" > /dev/ null; then $0 start $* fi ;; *) log_success_msg "Usage: $0 {start|stop|restart|force-reload|try-restart| status}" exit 1 ;; esac exit 0 Regular Installation Solr 15 Open the file /etc/init.d/solr:
  11. Hosted Solr Services 19 Why use Solr as a Service

    Solutions? No Server Configuration Quick Installation No Maintenance Rapid availability Less Problems