July 21, 2012Drupal and Apache SolrSearch Go Together LikePizza and Beer for Your Site               Peter M. Wolanin, Ph....
Pizza Without Beer?
Pizza Without Beer? Ok, Drupal alone is great, but a we can make it even more appealing and satisfying. Are you wondering ...
Drupal + Solr Provides ImmediateAccess to Rich Search Features Dynamic content requires dynamic navigation - which is prov...
Many Solr Integration ChallengesAre Already Solved for You The most important - content indexing. Facets, sorting, and hig...
Key Questions to Be Answered What are the key Solr concepts you need to understand to get the most out of the Apache Solr ...
Solr Interface/API is HTTP  Drupal sends data to Solr as XML documents  POST XML to /update to add or delete.  Search via ...
Enable the Modules
?q=search/node/ratis   WTH? no facets!
?q=search/site/ratis
Easy Content Recommendation! Uses the MLT handler Picks fields from the currently viewed node
A short diversion...Search Environments ReferenceDifferent Servers and/or Config   Most people need only one to start.   Th...
The Module Has a Pipeline forIndexing Drupal Content to Solr  Drupal entities are processed into one (or more)  document o...
Entity Meta-data GivesAutomatic Facets! Content types Taxonomy terms per vocabulary Content authors Posted and modified dat...
Updates to an Entity or RelatedMeta-data Cause Reindexing Drupal entities are indexed during Drupal cron. By using a speci...
Finding the “Right” Results A big frustration is when the result you expect for a keyword or set of keywords is not first, ...
More Modules Available toAdd More FeaturesA few examples: ApacheSolr Attachments Apache Solr Multisite Search Apache Solr ...
Attachments Too !
To Wrap Up ! Drupal has extensive Apache Solr integration already, and it is highly customizable in the UI. Apache Solr Se...
Acquia is Hiring!  Do you love Drupal, Solr, the LAMP stack,  DevOps or anything related, and working at a  fast-growing a...
Drupal and Apache Solr Search Go Together Like Pizza and Beer for Your Site
Drupal and Apache Solr Search Go Together Like Pizza and Beer for Your Site
Drupal and Apache Solr Search Go Together Like Pizza and Beer for Your Site
Drupal and Apache Solr Search Go Together Like Pizza and Beer for Your Site
Drupal and Apache Solr Search Go Together Like Pizza and Beer for Your Site
Drupal and Apache Solr Search Go Together Like Pizza and Beer for Your Site
Drupal and Apache Solr Search Go Together Like Pizza and Beer for Your Site
Drupal and Apache Solr Search Go Together Like Pizza and Beer for Your Site
Drupal and Apache Solr Search Go Together Like Pizza and Beer for Your Site
Drupal and Apache Solr Search Go Together Like Pizza and Beer for Your Site
Drupal and Apache Solr Search Go Together Like Pizza and Beer for Your Site
Drupal and Apache Solr Search Go Together Like Pizza and Beer for Your Site
Drupal and Apache Solr Search Go Together Like Pizza and Beer for Your Site
Drupal and Apache Solr Search Go Together Like Pizza and Beer for Your Site
Drupal and Apache Solr Search Go Together Like Pizza and Beer for Your Site
Drupal and Apache Solr Search Go Together Like Pizza and Beer for Your Site
Drupal and Apache Solr Search Go Together Like Pizza and Beer for Your Site
Drupal and Apache Solr Search Go Together Like Pizza and Beer for Your Site
Drupal and Apache Solr Search Go Together Like Pizza and Beer for Your Site
Drupal and Apache Solr Search Go Together Like Pizza and Beer for Your Site
Drupal and Apache Solr Search Go Together Like Pizza and Beer for Your Site
Upcoming SlideShare
Loading in …5
×

Drupal and Apache Solr Search Go Together Like Pizza and Beer for Your Site

6,273 views
6,135 views

Published on

The Apache Solr Search Integration module provides integration with the (free, open-source) Apache Solr server. This great combination of Drupal with a powerful and flexible search server will make your site irresistible to visitors by providing advanced search features like faceting filtering and by delivering the most relevant search results from your site. The module has been re-written for Drupal 7 to integrate with Facet API and those changes have been backported to a new Drupal 6 branch. Thus, you can use this module for all your projects, as well as setting up a shared search index that allows you to search across different Drupal 6 and Drupal 7 sites. This talk will focus on explaining configurations options in the admin UI to help you quickly and confidently configure the facets, pages, related content blocks, and other features for your site. Highlights may include:

- What are the key Solr concepts you need to understand to get the most out of Solr integration?
- How is the module admin UI organized?
- How do I configure facets, sorts, and content recommendation blocks?
- How can I use additional modules to index file attachments?

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

  • Be the first to like this

No Downloads
Views
Total views
6,273
On SlideShare
0
From Embeds
0
Number of Embeds
93
Actions
Shares
0
Downloads
56
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Drupal and Apache Solr Search Go Together Like Pizza and Beer for Your Site

  1. 1. July 21, 2012Drupal and Apache SolrSearch Go Together LikePizza and Beer for Your Site Peter M. Wolanin, Ph.D. Momentum Specialist (principal engineer), Acquia, Inc. Drupal contributor drupal.org/user/49851 co-maintainer of the Drupal Apache Solr Search Integration module
  2. 2. Pizza Without Beer?
  3. 3. Pizza Without Beer? Ok, Drupal alone is great, but a we can make it even more appealing and satisfying. Are you wondering how hard it is to actually integrate Apache Solr with Drupal? Do you like things that are easy yet powerful?
  4. 4. Drupal + Solr Provides ImmediateAccess to Rich Search Features Dynamic content requires dynamic navigation - which is provided by an effective search. Search facets mean no dead ends. Solr provides better keyword relevancy in results. Much faster searches for sites with lots of content. By avoiding database queries, Drupal with Solr scales better.
  5. 5. Many Solr Integration ChallengesAre Already Solved for You The most important - content indexing. Facets, sorting, and highlighting of results. Immediate integration with the More Like This and spell-check handlers. Included sub-module integrates content access permissions by indexing to and filtering Solr results based on the current user.
  6. 6. Key Questions to Be Answered What are the key Solr concepts you need to understand to get the most out of the Apache Solr Search Integration module? How is the module admin UI organized? How do I configure facets, search pages, and content recommendation blocks? How can I index file attachments?
  7. 7. Solr Interface/API is HTTP Drupal sends data to Solr as XML documents POST XML to /update to add or delete. Search via GET requests. If something is not working as expected, you can try searching directly in Solr via URL Solr also includes admin and analysis interfaces (you need to lock this down for production).
  8. 8. Enable the Modules
  9. 9. ?q=search/node/ratis WTH? no facets!
  10. 10. ?q=search/site/ratis
  11. 11. Easy Content Recommendation! Uses the MLT handler Picks fields from the currently viewed node
  12. 12. A short diversion...Search Environments ReferenceDifferent Servers and/or Config Most people need only one to start. The most important use is to bundle different sets of enabled facets and their configuration - e.g. for different search pages. Can also be used to search multiple servers. Each has its own ID and config variables.
  13. 13. The Module Has a Pipeline forIndexing Drupal Content to Solr Drupal entities are processed into one (or more) document objects. Each document object is converted to XML and sent to Solr.Node object Document object XML string entity_type <doc> title label <field <field name="entity_type">node</field> name="label">Hello Drupal</field> <field name="entity_id">101</field> nid entity_id <field </doc> name="bundle">session</field> type Drupal bundle callbacks & hooks
  14. 14. Entity Meta-data GivesAutomatic Facets! Content types Taxonomy terms per vocabulary Content authors Posted and modified dates Text and numbers selected via select list/radios/check boxes
  15. 15. Updates to an Entity or RelatedMeta-data Cause Reindexing Drupal entities are indexed during Drupal cron. By using a specialized tracking table, content can automatically be queued for reindex when changed, and subsets of content can potentially be sent to different Solr indexes. Entities include many ID-based reference fields (e.g. the User ID of the node author). Changes to the referenced data is also watched.
  16. 16. Finding the “Right” Results A big frustration is when the result you expect for a keyword or set of keywords is not first, or even on the first page. Apache Solr has very flexible result scoring - you just need to know how to tune it. Different sites have different needs - the default settings may be poor for yours. acquia.com/blog/delivering-right-search-results
  17. 17. More Modules Available toAdd More FeaturesA few examples: ApacheSolr Attachments Apache Solr Multisite Search Apache Solr Organic Groups Integration Apachesolr User indexing Apachesolr Commerce
  18. 18. Attachments Too !
  19. 19. To Wrap Up ! Drupal has extensive Apache Solr integration already, and it is highly customizable in the UI. Apache Solr Search Integration offers more robust integration as compared to Search API Solr and both Drupal 6 and 7 support. Acquia includes a secure, hosted Solr index with every support subscription. Get started fast with a 30 day free trial.
  20. 20. Acquia is Hiring! Do you love Drupal, Solr, the LAMP stack, DevOps or anything related, and working at a fast-growing and successful startup? Boston, Portland, D.C. area U.S. offices. Some remote opportunities as well. Come talk to me! peter.wolanin@acquia.com pwolanin in IRC #drupal-apachesolr

×