• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Apache Solr search for Drupal. Ievgen Kartakov.
 

Apache Solr search for Drupal. Ievgen Kartakov.

on

  • 2,591 views

 

Statistics

Views

Total Views
2,591
Views on SlideShare
2,381
Embed Views
210

Actions

Likes
2
Downloads
22
Comments
0

2 Embeds 210

http://donetsk.drupal.ua 207
http://camp2011.drupal.dn.ua 3

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • http://www.acquia.com/products-services/acquia-search http://www.drupalconcept.com/hosting/pro-shared http://drupion.com/
  • What the other options available on the configuration.
  • Easy upgrades Most of the hosting doesn’t support Separated search index paths
  • Sometimes client needs simple filters – not faced one. Create custom filters with panes output (custom module)
  • Writing custom panes
  • Looks cool but this is all taxonomy )
  • The idea here to separate results by content type – we call it bundle In the theme we output process the array of the results and output by content type (casino-search-results.tpl.php) For the ajax overlay we just use different teplate
  • We need to provide the list of items we need – buildListItems function The custom theming to be able to add X sign for the items
  • Views 3
  • Different types of content to search
  • Jobbx sphinx indexer query

Apache Solr search for Drupal. Ievgen Kartakov. Apache Solr search for Drupal. Ievgen Kartakov. Presentation Transcript

  • Apache Solr search for Drupal Ievgen Kartakov http://donetsk.drupal.ua
  • Apache Solr search for Drupal Ievgen Kartakov Propeople | Ukraine Department Manager Nikname: creaoy Email: jk@propeople.com.ua
  • CONTENTS
    • Basic things. Installation, configuration, multisite setup
    • Adding CCK fields to index, work with filters, theming results
    • Solr vs. Sphinx
  • INSTALLATION
    • Server software
      • Require root access and hands.
      • Possible to setup multiple search paths
    • Hosting
      • Don ’ t require server configuration
      • Usually not cheap
  • CONFIGURATION
    • Enable Drupal module
      • Configure host, port, patch variables
      • Select content types, configure weight for index
      • Run cron and wait for 2 min
  • EXAMPLE: STANFORD CSI
  • MULTISITE SETUP
    • Multiple site setup on one core
    • Useful for development server with different sites
    • Hosting companies doesn’t support this properly
  • ADDING CCK FIELDS TO INDEX
  • ADDING CCK FIELDS TO SEARCH QUERY
  • EXAMPLE: 4ALLPROMOS
  • FILTERS SEARCH RESULTS
    • Content type and taxonomy filters supported
    • Faceted search by default
    • D6. What to do with non standard filters?
  • THEMING RESULTS PAGE
    • Simple template changing and text output search-result.tpl.php
  • APACHE SOLR WITH…
    • Apache Solr Views (Apache Solr + Views 3)
      • Output results with view without database query
    • Apache Solr Panels (Apache Solr + Panels)
      • Build search page layout with panels
  • EXAMPLE: CULTIVATE
  • FILTERS CLOSER LOOK
  • D7: APACHE SOLR MODULE
    • How to add fields into indexer (document)
    • How to execute results (if we need different content types on page)
    • Faceted api (if we need custom blocks)
  • D7: ADDING TO INDEX
  • D7: EXECUTE THE SEARCH
  • D7: FACETED API
  • EXAMPLE: CASINO.AT
  • EXAMPLE: CASIONO.AT OVERLAY
  • SOLR VS. SPHINX
    • Numbers? Nooo, just integration with Drupal
      • Both modules provide faceted search
      • Sphinx module for drupal 6 in dev but it works :)
      • Sphinx is not so popular in Drupal community
      • Indexing difference
      • How easy to integrate?
  • EXAMPLE: SPHINX CONFIG
  • EXAMPLE: SPHINX SEARCH RUN
  • EXAMPLE: JOBBX.SE
  • CONCLUSION
    • Sphinx is fast (makes craigslist’s search fly)
    • With sphinx you can run indexes as you want
    • With sphinx you will enjoy your time optimizing MySQL queries
    • But if you need good and fast solution just go with Solr
  • Useful links
    • CONFIGURING APACHE SOLR MULTI-CORE WITH DRUPAL AND TOMCAT ON UBUNTU 9.10
    • Displaying CCK field data in Solr results
    • Comparison Between Solr And Sphinx Search Servers