Download - Drupal + ApacheSolr
![Page 1: Drupal + ApacheSolr](https://reader033.vdocuments.us/reader033/viewer/2022042813/54b70f374a7959a8588b4650/html5/thumbnails/1.jpg)
![Page 2: Drupal + ApacheSolr](https://reader033.vdocuments.us/reader033/viewer/2022042813/54b70f374a7959a8588b4650/html5/thumbnails/2.jpg)
Apache Solr
Why does this
shines so bright?
Drupalcamp Spain - February 2010 – Barcelona
![Page 3: Drupal + ApacheSolr](https://reader033.vdocuments.us/reader033/viewer/2022042813/54b70f374a7959a8588b4650/html5/thumbnails/3.jpg)
Overview
About me Searching.. A hot topic Apache Solr
What/Why? Practical cases How to drupalize it (Acquia / Do it yourself) Extensions (Ubercart, Views..) Demo
Now or Future?
Drupalcamp Spain - February 2010 – Barcelona
![Page 4: Drupal + ApacheSolr](https://reader033.vdocuments.us/reader033/viewer/2022042813/54b70f374a7959a8588b4650/html5/thumbnails/4.jpg)
About me
Drupalcamp Spain - February 2010 – Barcelona
Drupal community Professional Drupal? Bachelor + (unfinished) Master in IT
nick_vh (twitter, drupal, …)
www.nickveenhof.be
![Page 5: Drupal + ApacheSolr](https://reader033.vdocuments.us/reader033/viewer/2022042813/54b70f374a7959a8588b4650/html5/thumbnails/5.jpg)
Searching, a hot topic!
Drupal search
Drupalcamp Spain - February 2010 – Barcelona
http://www.slideshare.net/heliorcolorado/apache-solr
cron.php Indexes word importance
http://acquia.com/blog/drupal-search-how-indexing-works
![Page 6: Drupal + ApacheSolr](https://reader033.vdocuments.us/reader033/viewer/2022042813/54b70f374a7959a8588b4650/html5/thumbnails/6.jpg)
Searching, a hot topic!
Search only scans index Word must be exact (player / players) Limited operators
Drupalcamp Spain - February 2010 – Barcelona
http://www.slideshare.net/heliorcolorado/apache-solr
Word Index
![Page 7: Drupal + ApacheSolr](https://reader033.vdocuments.us/reader033/viewer/2022042813/54b70f374a7959a8588b4650/html5/thumbnails/7.jpg)
What is Apache Solr?
Real Explaination .. Solr is an open source enterprise search server based on the Lucene Java search library, with XML/HTTP and JSON APIs, hit highlighting, faceted search, caching, replication, and a web administration interface. It runs in a Java servlet container such as Tomcat.
Java based application Incredible indexing features Blazingly fast Replication
Drupalcamp Spain - February 2010 – Barcelona
![Page 8: Drupal + ApacheSolr](https://reader033.vdocuments.us/reader033/viewer/2022042813/54b70f374a7959a8588b4650/html5/thumbnails/8.jpg)
What is Apache Solr?
Some air for your SQL database
Drupalcamp Spain - February 2010 – Barcelona
![Page 9: Drupal + ApacheSolr](https://reader033.vdocuments.us/reader033/viewer/2022042813/54b70f374a7959a8588b4650/html5/thumbnails/9.jpg)
What is Apache Solr?
Drupalcamp Spain - February 2010 – Barcelona
Source: Robert Douglass/Acquia
ApacheSolr is a Drupal Module http://drupal.org/project/apachesolr Integrates with a lot of other modules
![Page 10: Drupal + ApacheSolr](https://reader033.vdocuments.us/reader033/viewer/2022042813/54b70f374a7959a8588b4650/html5/thumbnails/10.jpg)
What is Apache Solr?
Drupalcamp Spain - February 2010 – Barcelona
Source: Robert Douglass/Acquia
Faceted Search Spelling suggestions Priority in fields (not D7 yet..) Content Recommendation (More like this) In file search (documents, ..)
![Page 11: Drupal + ApacheSolr](https://reader033.vdocuments.us/reader033/viewer/2022042813/54b70f374a7959a8588b4650/html5/thumbnails/11.jpg)
Faceted search
Drupalcamp Spain - February 2010 – Barcelona
![Page 12: Drupal + ApacheSolr](https://reader033.vdocuments.us/reader033/viewer/2022042813/54b70f374a7959a8588b4650/html5/thumbnails/12.jpg)
Spelling suggestions
Drupalcamp Spain - February 2010 – Barcelona
Source: Robert Douglass/Acquia
![Page 13: Drupal + ApacheSolr](https://reader033.vdocuments.us/reader033/viewer/2022042813/54b70f374a7959a8588b4650/html5/thumbnails/13.jpg)
More like this
Drupalcamp Spain - February 2010 – Barcelona
http://acquia.com/products-services/acquia-search-features
![Page 14: Drupal + ApacheSolr](https://reader033.vdocuments.us/reader033/viewer/2022042813/54b70f374a7959a8588b4650/html5/thumbnails/14.jpg)
Why?
Dissapointing default Drupal search... True?
Much better results
More people using search means longer visits
Faceted search
Seperating data and output
Much better scalability (replication)
Drupalcamp Spain - February 2010 – Barcelona
![Page 15: Drupal + ApacheSolr](https://reader033.vdocuments.us/reader033/viewer/2022042813/54b70f374a7959a8588b4650/html5/thumbnails/15.jpg)
Practical Cases
Drupal.org
Digg.com
Whitehouse.gov
CNET.com
Search.com
Plaxo.com
...
Drupalcamp Spain - February 2010 – Barcelona
![Page 16: Drupal + ApacheSolr](https://reader033.vdocuments.us/reader033/viewer/2022042813/54b70f374a7959a8588b4650/html5/thumbnails/16.jpg)
Practical Cases
Drupal.org
~50% of page requests get content through Solr Search Faceted searching allows more refined search Relevant Performance (a lot of drupalers in the world!)
Drupalcamp Spain - February 2010 – Barcelona
![Page 17: Drupal + ApacheSolr](https://reader033.vdocuments.us/reader033/viewer/2022042813/54b70f374a7959a8588b4650/html5/thumbnails/17.jpg)
How DIY?
http://krimson.be/articles/setup-drupal-6x-apache-solr-tomcat6-and-ubuntu
www.google.com
www.drupal.org
http://drupal.org - Yes another time! The search really works...!
Drupalcamp Spain - February 2010 – Barcelona
![Page 18: Drupal + ApacheSolr](https://reader033.vdocuments.us/reader033/viewer/2022042813/54b70f374a7959a8588b4650/html5/thumbnails/18.jpg)
How Acquia?
Hosted search service
In combination with Stack installer and basic or trial subscription – Up and running in 5 minutes!
http://acquia.com/products-services/acquia-search
http://acquia.com/downloads
Drupalcamp Spain - February 2010 – Barcelona
![Page 19: Drupal + ApacheSolr](https://reader033.vdocuments.us/reader033/viewer/2022042813/54b70f374a7959a8588b4650/html5/thumbnails/19.jpg)
Extensions
ApacheSolr Views integration
Multisite search
Local Solr (geospatial search)
ApacheSolr Attachments
ApacheSolr Ubercart
Webmail Plus
Exhibit
Project (D6 version)
Drupalcamp Spain - February 2010 – Barcelona
Solr Service
Apache Solr Stats
Apache Solr autocomplete
Apache Solr AJAX
Apache Solr Biblio
Simple Geo
Node displays
![Page 20: Drupal + ApacheSolr](https://reader033.vdocuments.us/reader033/viewer/2022042813/54b70f374a7959a8588b4650/html5/thumbnails/20.jpg)
Demo Drupalize it!
Drupalcamp Spain - February 2010 – Barcelona
Let's play!
![Page 21: Drupal + ApacheSolr](https://reader033.vdocuments.us/reader033/viewer/2022042813/54b70f374a7959a8588b4650/html5/thumbnails/21.jpg)
How?
Drupalcamp Spain - February 2010 – Barcelona
![Page 22: Drupal + ApacheSolr](https://reader033.vdocuments.us/reader033/viewer/2022042813/54b70f374a7959a8588b4650/html5/thumbnails/22.jpg)
Future + Views 3
Drupalcamp Spain - February 2010 – Barcelona
Integration with Views 3 + fields in Drupal 7
Faceted search with Views 3! Works partially, *CCK not implemented yet.
Custom Exposed filters
GeoSpatial Search (Understanding coordinates)
Even more separating the configuration from the output means better performance and scalability!
Imagine the possibilities?
*CCK: Content construction kit / custom field definitions
![Page 23: Drupal + ApacheSolr](https://reader033.vdocuments.us/reader033/viewer/2022042813/54b70f374a7959a8588b4650/html5/thumbnails/23.jpg)
Questions
Drupalcamp Spain - February 2010 – Barcelona