Your SlideShare is downloading. ×
0
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.c...
CONTENTS <ul><li>Basic things. Installation, configuration, multisite setup </li></ul><ul><li>Adding CCK fields to index, ...
INSTALLATION <ul><li>Server software </li></ul><ul><ul><li>Require root access and hands.  </li></ul></ul><ul><ul><li>Poss...
CONFIGURATION <ul><li>Enable Drupal module </li></ul><ul><ul><li>Configure host, port, patch variables </li></ul></ul><ul>...
EXAMPLE: STANFORD CSI
MULTISITE SETUP <ul><li>Multiple site setup on one core </li></ul><ul><li>Useful for development server with different sit...
ADDING CCK FIELDS TO INDEX
ADDING CCK FIELDS TO SEARCH QUERY
EXAMPLE: 4ALLPROMOS
FILTERS SEARCH RESULTS <ul><li>Content type and taxonomy filters supported </li></ul><ul><li>Faceted search by default </l...
THEMING RESULTS PAGE <ul><li>Simple template changing and text output search-result.tpl.php </li></ul>
APACHE SOLR WITH… <ul><li>Apache Solr Views (Apache Solr + Views 3) </li></ul><ul><ul><li>Output results with view without...
EXAMPLE: CULTIVATE
FILTERS CLOSER LOOK
D7: APACHE SOLR MODULE <ul><li>How to add fields into indexer (document) </li></ul><ul><li>How to execute results (if we n...
D7: ADDING TO INDEX
D7: EXECUTE THE SEARCH
D7: FACETED API
EXAMPLE: CASINO.AT
EXAMPLE: CASIONO.AT OVERLAY
SOLR VS. SPHINX <ul><li>Numbers? Nooo, just integration with Drupal </li></ul><ul><ul><li>Both modules provide faceted sea...
EXAMPLE: SPHINX CONFIG
EXAMPLE: SPHINX SEARCH RUN
EXAMPLE: JOBBX.SE
CONCLUSION <ul><li>Sphinx is fast (makes craigslist’s search fly) </li></ul><ul><li>With sphinx you can run indexes as you...
Useful links <ul><li>CONFIGURING APACHE SOLR MULTI-CORE WITH DRUPAL AND TOMCAT ON UBUNTU 9.10 </li></ul><ul><li>Displaying...
Upcoming SlideShare
Loading in...5
×

Apache Solr search for Drupal. Ievgen Kartakov.

2,203

Published on

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

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

No notes for slide
  • 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
  • Transcript of "Apache Solr search for Drupal. Ievgen Kartakov."

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

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

    ×