Who
Nick Veenhof
Senior Search Engineer at Acquia
@Nick_vh
http://nickveenhof.be
Drupal Core Search
Cron.php Indexing process
Drupal Core Search
• HTML Tag Scores
• <H1> = 25
• <H2> = 18
• Accent Removal
• Montréal => Montreal
• Stemming
• skips, s...
Drupal Core Search
• SQL Not optimized for full text
search
• Limited Operators
• Slow and not scalable enough
• Stemming ...
Alternatives
• Google Custom Search
• Fuzzy Search
• Elasticsearch
• Google Search Appliance
• …
Apache Solr Search
Search...
What is Solr?
• Based on Lucene
• Written in Java, needs Java container such
as Tomcat or Jetty
• Separate Server
• Mathem...
Architecture
Webserver/Drupal
*SQL
Solr
GET or POST
search
POST
index
DIY?
http://nickveenhof.be/blog/simple-guide-install-apache-solr3x-drupal7
Careful…
• No Security
• High Availability is n...
Drupal Modules
Apache Solr & Search API
• In Common
• Search pages
• Solr Search
• Facet API
• Autocomplete
• Attachments
...
Time for a demo!
Modules Used in Demo
• Search keywords (apachesolr)
• Spelling corrections (apachesolr)
• There is an autocomplete textbox...
Acquia Search for Free!
• Try and test the abilities of Apache Solr for
Free with Acquia Cloud Free.
• Acquia Cloud Free –...
Questions
For more information visit:
http://www.acquia.com
Contact us: sales@acquia.com or 888.9.ACQUIA
Follow us: @acqui...
How to Configure Solr Search on Your Site
Upcoming SlideShare
Loading in …5
×

How to Configure Solr Search on Your Site

1,236
-1

Published on

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,236
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
24
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

How to Configure Solr Search on Your Site

  1. 1. Who Nick Veenhof Senior Search Engineer at Acquia @Nick_vh http://nickveenhof.be
  2. 2. Drupal Core Search Cron.php Indexing process
  3. 3. Drupal Core Search • HTML Tag Scores • <H1> = 25 • <H2> = 18 • Accent Removal • Montréal => Montreal • Stemming • skips, skipping = skip Tip: Use porterstemmer to improve stemming in Drupal Core Search
  4. 4. Drupal Core Search • SQL Not optimized for full text search • Limited Operators • Slow and not scalable enough • Stemming needs to happen in the PHP side, not optimized • Dead ends
  5. 5. Alternatives • Google Custom Search • Fuzzy Search • Elasticsearch • Google Search Appliance • … Apache Solr Search Search API (+ Solr)
  6. 6. What is Solr? • Based on Lucene • Written in Java, needs Java container such as Tomcat or Jetty • Separate Server • Mathematical Indexing • Fast! • Replication / Solr Cloud • Multiple indexes (Multicore) • Which version to choose?
  7. 7. Architecture Webserver/Drupal *SQL Solr GET or POST search POST index
  8. 8. DIY? http://nickveenhof.be/blog/simple-guide-install-apache-solr3x-drupal7 Careful… • No Security • High Availability is not trivial
  9. 9. Drupal Modules Apache Solr & Search API • In Common • Search pages • Solr Search • Facet API • Autocomplete • Attachments • Sorting • Solr Configs! • … • Differences • Architected for multisite • Architected for large-scale site • Optimized for Solr and fault-tolerant • Location based Search • Views based
  10. 10. Time for a demo!
  11. 11. Modules Used in Demo • Search keywords (apachesolr) • Spelling corrections (apachesolr) • There is an autocomplete textbox (apachesolr_autocomplete) • Autocomplete also has the spelling corrections + shows the amount of results of your query (apachesolr_autocomplete) • facets (facetapi) • facets with a tagcloud (facetapi_tagcloud) • facets with checkboxes (facetapi) • facets with a slider (facetapi_slider) • facets that are collapsible (facetapi_collapsible) • facets with range -> http://drupal.org/project/date_facets • sort block (tuned by apachesolr_sort) • relevancy tuning (apachesolr_proximity) • Display Suite search result theming, optimized for Apache Solr(ds & ds_search) • Attachment search. (apachesolr_attachments) • Clean URL's of facets. (facetapi_pretty_paths) • More like this. (apachesolr) Powered by Free Tier Search (acquia_connector + acquia_search)
  12. 12. Acquia Search for Free! • Try and test the abilities of Apache Solr for Free with Acquia Cloud Free. • Acquia Cloud Free – Your very own Drupal Innovation Test Bed. Explore and Learn. • Acquia Search – Starter Kit for Free comes with:  2,000 queries/ month  5000 docs indexed
  13. 13. Questions For more information visit: http://www.acquia.com Contact us: sales@acquia.com or 888.9.ACQUIA Follow us: @acquia For more product information visit: docs.acquia.com Today’s webinar recording will be posted to: http://acquia.com/resources/recorded_webinars
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×