Apache Solr

5,219 views

Published on

This is step-by-step instructions on how to install Apache Solr on your own server and integrating it with your Drupal installation.

Published in: Technology

Apache Solr

  1. 1. Apache Solr by helior colorado Thursday, July 2, 2009
  2. 2. Drupal Search Process Thursday, July 2, 2009
  3. 3. Drupal Search Process cron.php Thursday, July 2, 2009
  4. 4. Drupal Search Process cron.php node ∆= search_index Thursday, July 2, 2009
  5. 5. Drupal Search Process cron.php node ∆= search_index Thursday, July 2, 2009
  6. 6. Drupal Search Process Thursday, July 2, 2009
  7. 7. Drupal Search Process content Thursday, July 2, 2009
  8. 8. Drupal Search Process content $results acquia.com/blog/drupal-search-how-indexing-works Thursday, July 2, 2009
  9. 9. Drupal Search Process content $results Thursday, July 2, 2009
  10. 10. Drupal Search Process indexed database Thursday, July 2, 2009
  11. 11. Drupal Search Process ‣ Search box will only scan index indexed database Thursday, July 2, 2009
  12. 12. Drupal Search Process ‣ Search box will only scan index ‣ Must match search string exactly indexed database Thursday, July 2, 2009
  13. 13. Drupal Search Process ‣ Search box will only scan index ‣ Must match search string exactly ‣ limited support of operators indexed database Thursday, July 2, 2009
  14. 14. Drupal Search Process ‣ Search box will only scan index ‣ Must match search string exactly ‣ limited support of operators ‣ (-) exclude term indexed database Thursday, July 2, 2009
  15. 15. Drupal Search Process ‣ Search box will only scan index ‣ Must match search string exactly ‣ limited support of operators ‣ (-) exclude term indexed ‣ (type:) content-type specific database Thursday, July 2, 2009
  16. 16. Installing Apache Solr Search Server for Drupal What you will need: Thursday, July 2, 2009
  17. 17. Installing Apache Solr Search Server for Drupal What you will need: ‣ Hosting that supports Java Thursday, July 2, 2009
  18. 18. Installing Apache Solr Search Server for Drupal What you will need: ‣ Hosting that supports Java ‣ Access to Command Line Thursday, July 2, 2009
  19. 19. Install Java # apt-get install sun-java6-jdk Thursday, July 2, 2009
  20. 20. Get Solr Search Server Get your nightly build at http://people.apache.org/builds/lucene/solr/nightly/ # wget http://people.apache.org/ builds/lucene/solr/nightly/your- nightly-build.zip # unzip your-nightly-build.zip Thursday, July 2, 2009
  21. 21. Install Apache Solr Module http://drupal.org/project/apachesolr Install but don’t enable! Thursday, July 2, 2009
  22. 22. Get Solr PHP Client # svn checkout -r6 http://solr- php-client.googlecode.com/svn/ trunk/ SolrPhpClient # mv SolrPhpClient drupal-root/ sites/all/modules/apachesolr/ Thursday, July 2, 2009
  23. 23. Enable Apache Solr Module ✓Solr Framework ✓Solr Search Components Thursday, July 2, 2009
  24. 24. Get Solr PHP Client # cd apache-solr/example # java -jar start.jar Check to see if server is running.. http://your-site:8983/solr/admin/form.jsp Is it working with Drupal? Thursday, July 2, 2009
  25. 25. Get Solr PHP Client # cp drupal-root/sites/all/ modules/schema.xml apache-solr/ example/solr/conf/ # cp drupal-root/sites/all/ modules/solrconfig.xml apache- solr/example/solr/conf/ Thursday, July 2, 2009
  26. 26. Thanks. me@helior.info Thursday, July 2, 2009

×