lucid12's picture
From lucid12 rss RSS  subscribe Subscribe

Drupal Integartion with solr for Fabulous CMS search 

Drupal is a robust, free and open-source content management system that is becoming an ever more popular tool for building enterprise websites. The Apache Solr Search Integration module for Drupal allows you to integrate Solr functionality into a Drupal site with no additional coding. The module manages and display many facets including taxonomy, content types, authors, and dates, provides options for boosting search results, and sends queries to the "more like this" handler to provide content recommendation. Using this module as a basis, you can make additional customizations or use additional sub-modules for even more functionality, such as indexing file attachments.

 

 
 
Tags:  drupal  solr 
Views:  903
Published:  November 26, 2010
 
0
Share plick with friends Share
save to favorite
Report Abuse Report Abuse
 
Related Plicks
EthicShare.org (Mostly Solr)

EthicShare.org (Mostly Solr)

From: sdiderid
Views: 70 Comments: 0
EthicShare.org (Mostly Solr)
 
See all 
 
More from this user
Guidelines for Managers Considering Open Source Enterprise Search

Guidelines for Managers Considering Open Source Enterprise Search

From: lucid12
Views: 260
Comments: 0

Fun with Flexible Indexing

Fun with Flexible Indexing

From: lucid12
Views: 384
Comments: 0

Solr and Lucene search revolution

Solr and Lucene search revolution

From: lucid12
Views: 381
Comments: 0

Discover the new techniques about search application

Discover the new techniques about search application

From: lucid12
Views: 249
Comments: 0

Understanding Lucene Search Performance

Understanding Lucene Search Performance

From: lucid12
Views: 663
Comments: 0

What’s New in Apache Lucene 2.9

What’s New in Apache Lucene 2.9

From: lucid12
Views: 476
Comments: 0

See all 
 
 
 URL:          AddThis Social Bookmark Button
Embed Thin Player: (fits in most blogs)
Embed Full Player :
 
 

Name

Email (will NOT be shown to other users)

 

 
 
Comments: (watch)
 
 
Notes:
 
Slide 1: October 7, 2010 Drupal Integration with Solr for Fabulous CMS Search Peter M. Wolanin, Ph.D. Principal Engineer, Acquia, Inc. Drupal contributor drupal.org/user/49851 co-maintainer of the Drupal Apache Solr Search Integration module © 2010 Acquia, Inc.
Slide 2: What You Will Learn A little about Drupal Drupal terminolgy Examples of Drupal sites using Apache Solr How Drupal works with Apache Solr Con guration options for searches Customization possibilities © 2010 Acquia, Inc.
Slide 3: Drupal: Web Application Framework + CMS == Social Publishing Platform Drupal “… is as much a Social Software platform as it is a web content management system.” CMS Watch, The Web CMS Report 2009 work ow content users blogs / wikis taxonomy semantic web Content Mgmt Systems Social Software Tools forums / comments social ranking RSS social tagging analytics social networks © 2010 Acquia, Inc.
Slide 4: Drupal Has User Accounts, Roles & Permissions De ne custom roles Set granular access controls by role – Task / object-based Con gure user behavior: – Registration – Email – Pro les – Pictures © 2010 Acquia, Inc.
Slide 5: Drupal Modules Add Functionality “There’s a module for that” More than 4,700 community modules available for Drupal 6.x Often controlled by rolebased permissions Drupal core and modules are GPL v2+, and have a huge, active community © 2010 Acquia, Inc.
Slide 6: Drupal Theme Controls Appearance Content presentation – Separate from data – De nes how content is displayed Alter module output Components include CSS les & PHP template les Support sub-themes for rapid customization © 2010 Acquia, Inc.
Slide 7: Drupal Nodes are Content + Data Nodes are the basic unit of content The node system is extensible - can represent any data Examples of content stored within Drupal – Text – Images – MP3s – Node reference © 2010 Acquia, Inc. Node 1 Node 2 Node 3 Node 4 Node 5 Node 6 Node 7 Node 8 Node 9
Slide 8: Node Types are Enriched With CCK Fields De ne new data elds within a node using the CCK module. – Text, images, integers, date, reference, etc Flexible and con gurable in the UI No programming required (many existing modules de ne elds) © 2010 Acquia, Inc.
Slide 9: Apply Taxonomy Vocabulary & Terms Provide a strong framework for content classi cation Modules provide taxonomy-based appearance, access control Standard input options include free tagging, at-controlled, and hierarchical-controlled © 2010 Acquia, Inc.
Slide 10: Drupal + Solr Powers Search for Businesses, Governements and NGOs http://www.whitehouse.gov/search/site/ http://www.mattel.com/search/apachesolr_search/ http://opensource.com/search/apachesolr_search/ https://www.ethicshare.org/publications/ http://www.nypl.org/search/apachesolr_search/ http://www.mylifetime.com/community/search/apachesolr_search/ http://www.restorethegulf.gov/search/apachesolr_search/ http://www.hrw.org/en/search/apachesolr_search/ http://www.poly.edu/search/apachesolr_search/ © 2010 Acquia, Inc.
Slide 11: Drupal + Solr Has Immediate Bene ts Dynamic content requires dynamic navigation which is provided by an e ective 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 © 2010 Acquia, Inc.
Slide 12: Node Data Gives Automatic Facets Content types Taxonomy terms per vocabulary Content authors Posted and modi ed dates Text and numbers selected via select list/ radios/check boxes © 2010 Acquia, Inc.
Slide 13: Easily Add Content Recommendation Uses the MLT handler Picks elds from the currently viewed node © 2010 Acquia, Inc.
Slide 14: Con gure Each MLT Block in the UI © 2010 Acquia, Inc.
Slide 15: Advanced Solr Features Plus Con guration in the UI Dynamic elds in schema.xml index CCK and custom node data elds Query-time boosting options available in the UI Dismax handler used for easy keyword searching and per- eld boosts Add a Drupal modules for attachment indexing Another module for multi-site search Here’s a quick look at the admin interface: © 2010 Acquia, Inc.
Slide 16: © 2010 Acquia, Inc.
Slide 17: © 2010 Acquia, Inc.
Slide 21: Drupal Modules Implement hooks to Control Indexing and Retrieval of Data hook_apachesolr_update_index(&$document, $node, $namespace) By creating a Drupal module (in PHP), you can implement module and theme hooks to extend or alter Drupal behavior. Change or replace the data normally indexed Modify the search results and their appearance © 2010 Acquia, Inc.
Slide 22: Image Data Using Dynamic Fields /** * Implementation of hook_apachesolr_update_index(). */ function apachesolr_image_apachesolr_update_index(&$document, $node, $namespace) { if ($node->type == 'image' && $document->entity == 'node') { $areas = array(); $sizes = image_get_derivative_sizes($node->images['_original']); foreach ($sizes as $name => $info) { $areas[$name] = $info['width'] * $info['height']; } asort($areas); $image_path = FALSE; foreach ($areas as $preset => $size) { $image_path = $node->images[$preset]; break; } if ($image_path) { $document->ss_image_relative = $image_path; // Support multi-site too. $document->ss_image_absolute = file_create_url($image_path); } } } /** * Implementation of hook_apachesolr_modify_query(). */ function apachesolr_image_apachesolr_modify_query(&$query, &$params, $caller) { // Also retrieve image thumbnail links. $params['fl'] .= ',ss_image_relative'; } © 2010 Acquia, Inc.
Slide 23: Image Data Using Dynamic Fields if ($image_path) { $document->ss_image_relative = $image_path; } /** * Implement hook_apachesolr_modify_query(). */ function apachesolr_image_apachesolr_modify_query( &$query, &$params, $caller) { // Also retrieve image thumbnail links. $params['fl'] .= ',ss_image_relative'; } © 2010 Acquia, Inc.
Slide 24: To Wrap Up Drupal has extensive Apache Solr integration already, and is highly customizable. The Drupal platform is widely adopted, and the Drupal community drives rapid innovation. Acquia provides Enterprise Drupal support and a network of partners. Acquia includes a secure, hosted Solr index with every support subscription. © 2010 Acquia, Inc.
Slide 25: Resources ... Questions? http://drupal.org/project/apachesolr http://drupal.org/project/apachesolr_attachments http://drupal.org/project/luceneapi (pure PHP) SF video: http://www.archive.org/details/ ApacheSolrSearchMastery http://acquia.com/category/tags/apachesolr http://groups.drupal.org/lucene-nutch-and-solr © 2010 Acquia, Inc.
Slide 26: Drupal Adapts toYou! © 2010 Acquia, Inc.

   
Time on Slide Time on Plick
Slides per Visit Slide Views Views by Location