0
Advanced searching
with Views and ApacheSolr
         Robert Douglass
        December 12, 2008
         Do It With Drupal...
The search box




                 © 2008 Acquia, Inc.
The search box

      It has revolutionized
    the Internet by taking an
  impossibly large result set and
     making it...
The search box




           Ye Ol’ Internets




                              © 2008 Acquia, Inc.
The search box
      Drupal




                 Drupal




                          © 2008 Acquia, Inc.
The search box
      Drupal ponies




                      Drupal

          ponies



                               © ...
The search box
      Drupal ponies bacon




         bacon

                   Drupal

          ponies



              ...
The search box
        Drupal ponies bacon




            bacon

                       Drupal

              ponies


  ...
The search box


You are forced to guess in advance
     what might be available,
   and how it describes itself.


      ...
The search box


                  Please be
                 descriptive.




                                © 2008 Acqu...
The search box


                    And
                 inventive.




                              © 2008 Acquia, Inc.
The search box


                  Sorry, that
                 doesn’t exist.




                                  © 200...
Drupal’s search box




                      © 2008 Acquia, Inc.
Drupal’s search box




                      © 2008 Acquia, Inc.
Drupal’s search box



    Not exactly the emphasis
          of our site.



                               © 2008 Acquia...
Drupal’s search box



 Why can’t Drupal’s search be as
       good as Google?



                              © 2008 Acq...
Drupal’s search box



          Tip: set your
     scoring factors to zero.



                                © 2008 Acq...
Drupal’s search box




                      © 2008 Acquia, Inc.
Drupal’s search box



 Why can’t Drupal’s search be as
        fast as Google?



                              © 2008 Ac...
Drupal’s search box



       Hint: node_load()



                           © 2008 Acquia, Inc.
The advanced search
        box




                      © 2008 Acquia, Inc.
Advanced search box



Attempts to reduce the result set
      by using meta data.



                              © 2008...
Advanced search box



  Is somewhat better than the
       naked search box.



                            © 2008 Acquia...
Advanced search box


     The person searching
    has guidance on how to
      reduce the results.


                   ...
Advanced search box



  You can still end up with zero
         results, though.



                               © 2008...
Advanced search box



You still have to guess about how
 to find what you’re looking for.



                             ...
Advanced search box



 People don’t want to have to do
        that much work!



                              © 2008 Ac...
Advanced search box


       The best recipe for
    “advanced” search forms
  is Views, with a search filter.


          ...
Advanced search box




                      © 2008 Acquia, Inc.
Advanced search box




                      © 2008 Acquia, Inc.
Advanced search box




                      © 2008 Acquia, Inc.
Advanced search box




                      © 2008 Acquia, Inc.
Advanced search box




                      © 2008 Acquia, Inc.
Advanced search box




                      © 2008 Acquia, Inc.
Advanced search box




                      © 2008 Acquia, Inc.
Advanced search box




                      © 2008 Acquia, Inc.
Views and search lters



Why can’t Views with search filters
     be as fast as Google?



                              ©...
Views and search lters



       Hint: node_load()



                           © 2008 Acquia, Inc.
Views and search lters



   And you can still come to a
    zero result search query.



                                ...
Meet faceted search




                      © 2008 Acquia, Inc.
Meet faceted search



         Faceted search
  reverses the search paradigm.



                              © 2008 Acq...
Meet faceted search


  Instead of thinking of a super-
  specific search to cut through
        too many results,


      ...
Meet faceted search


 you start with the most general
search that describes what you’re
           looking for.


       ...
Meet faceted search



          From there
   you narrow the set down.



                              © 2008 Acquia, In...
Meet faceted search



You get guidance from the facets.



                              © 2008 Acquia, Inc.
Meet faceted search


          You never
      come to a dead-end
       with zero results.


                           ...
Meet faceted search


    If you sense that you are
 refining in the wrong direction
         you can back up.


          ...
Meet faceted search



 Or you can remove a criterion
    and broaden the search.



                            © 2008 Ac...
Meet faceted search



        Search becomes
       multi-dimensional.



                            © 2008 Acquia, Inc.
Meet faceted search



  Search becomes interactive.



                                © 2008 Acquia, Inc.
Meet faceted search



    Search becomes iterative.



                                © 2008 Acquia, Inc.
Meet faceted search
  • Start broad and general
  • Narrow on facets
  • Sort
  • Back up (remove facetes)
  • Narrow agai...
Meet faceted search

Your idea of the search goal often
changes in the midst of searching.

   Faceted search does more to...
Meet ApacheSolr




                  © 2008 Acquia, Inc.
Meet ApacheSolr


   Next generation search
        for Drupal.



                            © 2008 Acquia, Inc.
Meet ApacheSolr


    Lucene / Solr / Drupal



                             © 2008 Acquia, Inc.
Meet ApacheSolr


Java = faster than PHP + MySQL



                            © 2008 Acquia, Inc.
Meet ApacheSolr


   Solr is a separate server.



                                © 2008 Acquia, Inc.
Meet ApacheSolr
       Webserver +
          PHP


          SQL
                  POST         GET
                 to in...
Meet ApacheSolr


ApacheSolr is a Drupal module that
   integrates Drupal with Solr.

      http://drupal.org/project/apac...
Meet ApacheSolr
  •   Robert Douglass
  •   Jacob Singh
  •   Peter Wolanin
  •   Frank Febbraro
  •   Mike J. O’Connor
  ...
Meet ApacheSolr


 ApacheSolr has native faceted
           search.



                             © 2008 Acquia, Inc.
Meet ApacheSolr




                  © 2008 Acquia, Inc.
Meet ApacheSolr
  • Content types
  • Authors
  • Taxonomy terms
  • Languages
  • CCK field values
  • Site (for multisite...
Meet ApacheSolr


        ApacheSolr has
    sortable search results.



                               © 2008 Acquia, Inc.
Meet ApacheSolr




                  © 2008 Acquia, Inc.
Meet ApacheSolr


       ApacheSolr can
     index attached files.



                            © 2008 Acquia, Inc.
Meet ApacheSolr


  ApacheSolr can recommend
          content.



                             © 2008 Acquia, Inc.
Meet ApacheSolr

 By evaluating the similarity of
  texts, Solr determines what
    content has similarities.


          ...
Meet ApacheSolr

         The ApacheSolr
     quot;More Like Thisquot; module
provides content recommendation
   blocks on...
Meet ApacheSolr

   Solr evaluates the title, body,
taxonomy terms, author name, etc.
           for similarity.


       ...
Meet ApacheSolr
   Content recommendation
       is a great tool for
     making your site sticky
    and leading site vis...
Meet ApacheSolr




                  © 2008 Acquia, Inc.
Meet ApacheSolr


ApacheSolr is highly configurable.



                              © 2008 Acquia, Inc.
Meet ApacheSolr




                  © 2008 Acquia, Inc.
Meet ApacheSolr




                  © 2008 Acquia, Inc.
Meet ApacheSolr




                  © 2008 Acquia, Inc.
Meet ApacheSolr




                  © 2008 Acquia, Inc.
Meet ApacheSolr




                  © 2008 Acquia, Inc.
Meet ApacheSolr


 ApacheSolr can search across
      multiple websites.



                            © 2008 Acquia, Inc.
© 2008 Acquia, Inc.
?   ?
        ?




            © 2008 Acquia, Inc.
Meet ApacheSolr


    Why can’t ApacheSolr
    be as fast as Google?



                            © 2008 Acquia, Inc.
Meet ApacheSolr


        It can be!!!



                       © 2008 Acquia, Inc.
Meet ApacheSolr


    Hint: No node_load()



                           © 2008 Acquia, Inc.
Meet ApacheSolr

          ApacheSolr
    will soon be available
    as a hosted solution
         from Acquia.


        ...
Meet ApacheSolr


Acquia’s hosted solution is a way to
        scale your website.



                                © 20...
Meet ApacheSolr


  Move server load from your
       servers to ours.



                               © 2008 Acquia, In...
Meet ApacheSolr


 Move sysadmin load from your
     organization to ours.



                           © 2008 Acquia, In...
Meet ApacheSolr


 Move uptime and monitoring
worries from your team to ours.



                            © 2008 Acquia...
Meet ApacheSolr


        Questions?



                     © 2008 Acquia, Inc.
Upcoming SlideShare
Loading in...5
×

ApacheSolr presentation from "Do it With Drupal"

30,178

Published on

Here I show you how to get the most out of Drupal in terms of search. The focus of the presentation is how faceted search will change the way you approach finding things. The ApacheSolr Drupal module is featured.

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

No Downloads
Views
Total Views
30,178
On Slideshare
0
From Embeds
0
Number of Embeds
9
Actions
Shares
0
Downloads
349
Comments
0
Likes
15
Embeds 0
No embeds

No notes for slide

Transcript of "ApacheSolr presentation from "Do it With Drupal""

  1. 1. Advanced searching with Views and ApacheSolr Robert Douglass December 12, 2008 Do It With Drupal © 2008 Acquia, Inc.
  2. 2. The search box © 2008 Acquia, Inc.
  3. 3. The search box It has revolutionized the Internet by taking an impossibly large result set and making it manageable. © 2008 Acquia, Inc.
  4. 4. The search box Ye Ol’ Internets © 2008 Acquia, Inc.
  5. 5. The search box Drupal Drupal © 2008 Acquia, Inc.
  6. 6. The search box Drupal ponies Drupal ponies © 2008 Acquia, Inc.
  7. 7. The search box Drupal ponies bacon bacon Drupal ponies © 2008 Acquia, Inc.
  8. 8. The search box Drupal ponies bacon bacon Drupal ponies Jeff Eaton © 2008 Acquia, Inc.
  9. 9. The search box You are forced to guess in advance what might be available, and how it describes itself. © 2008 Acquia, Inc.
  10. 10. The search box Please be descriptive. © 2008 Acquia, Inc.
  11. 11. The search box And inventive. © 2008 Acquia, Inc.
  12. 12. The search box Sorry, that doesn’t exist. © 2008 Acquia, Inc.
  13. 13. Drupal’s search box © 2008 Acquia, Inc.
  14. 14. Drupal’s search box © 2008 Acquia, Inc.
  15. 15. Drupal’s search box Not exactly the emphasis of our site. © 2008 Acquia, Inc.
  16. 16. Drupal’s search box Why can’t Drupal’s search be as good as Google? © 2008 Acquia, Inc.
  17. 17. Drupal’s search box Tip: set your scoring factors to zero. © 2008 Acquia, Inc.
  18. 18. Drupal’s search box © 2008 Acquia, Inc.
  19. 19. Drupal’s search box Why can’t Drupal’s search be as fast as Google? © 2008 Acquia, Inc.
  20. 20. Drupal’s search box Hint: node_load() © 2008 Acquia, Inc.
  21. 21. The advanced search box © 2008 Acquia, Inc.
  22. 22. Advanced search box Attempts to reduce the result set by using meta data. © 2008 Acquia, Inc.
  23. 23. Advanced search box Is somewhat better than the naked search box. © 2008 Acquia, Inc.
  24. 24. Advanced search box The person searching has guidance on how to reduce the results. © 2008 Acquia, Inc.
  25. 25. Advanced search box You can still end up with zero results, though. © 2008 Acquia, Inc.
  26. 26. Advanced search box You still have to guess about how to find what you’re looking for. © 2008 Acquia, Inc.
  27. 27. Advanced search box People don’t want to have to do that much work! © 2008 Acquia, Inc.
  28. 28. Advanced search box The best recipe for “advanced” search forms is Views, with a search filter. © 2008 Acquia, Inc.
  29. 29. Advanced search box © 2008 Acquia, Inc.
  30. 30. Advanced search box © 2008 Acquia, Inc.
  31. 31. Advanced search box © 2008 Acquia, Inc.
  32. 32. Advanced search box © 2008 Acquia, Inc.
  33. 33. Advanced search box © 2008 Acquia, Inc.
  34. 34. Advanced search box © 2008 Acquia, Inc.
  35. 35. Advanced search box © 2008 Acquia, Inc.
  36. 36. Advanced search box © 2008 Acquia, Inc.
  37. 37. Views and search lters Why can’t Views with search filters be as fast as Google? © 2008 Acquia, Inc.
  38. 38. Views and search lters Hint: node_load() © 2008 Acquia, Inc.
  39. 39. Views and search lters And you can still come to a zero result search query. © 2008 Acquia, Inc.
  40. 40. Meet faceted search © 2008 Acquia, Inc.
  41. 41. Meet faceted search Faceted search reverses the search paradigm. © 2008 Acquia, Inc.
  42. 42. Meet faceted search Instead of thinking of a super- specific search to cut through too many results, © 2008 Acquia, Inc.
  43. 43. Meet faceted search you start with the most general search that describes what you’re looking for. © 2008 Acquia, Inc.
  44. 44. Meet faceted search From there you narrow the set down. © 2008 Acquia, Inc.
  45. 45. Meet faceted search You get guidance from the facets. © 2008 Acquia, Inc.
  46. 46. Meet faceted search You never come to a dead-end with zero results. © 2008 Acquia, Inc.
  47. 47. Meet faceted search If you sense that you are refining in the wrong direction you can back up. © 2008 Acquia, Inc.
  48. 48. Meet faceted search Or you can remove a criterion and broaden the search. © 2008 Acquia, Inc.
  49. 49. Meet faceted search Search becomes multi-dimensional. © 2008 Acquia, Inc.
  50. 50. Meet faceted search Search becomes interactive. © 2008 Acquia, Inc.
  51. 51. Meet faceted search Search becomes iterative. © 2008 Acquia, Inc.
  52. 52. Meet faceted search • Start broad and general • Narrow on facets • Sort • Back up (remove facetes) • Narrow again • Victory! © 2008 Acquia, Inc.
  53. 53. Meet faceted search Your idea of the search goal often changes in the midst of searching. Faceted search does more to inspire you into new directions. © 2008 Acquia, Inc.
  54. 54. Meet ApacheSolr © 2008 Acquia, Inc.
  55. 55. Meet ApacheSolr Next generation search for Drupal. © 2008 Acquia, Inc.
  56. 56. Meet ApacheSolr Lucene / Solr / Drupal © 2008 Acquia, Inc.
  57. 57. Meet ApacheSolr Java = faster than PHP + MySQL © 2008 Acquia, Inc.
  58. 58. Meet ApacheSolr Solr is a separate server. © 2008 Acquia, Inc.
  59. 59. Meet ApacheSolr Webserver + PHP SQL POST GET to index to search Database Solr Server © 2008 Acquia, Inc.
  60. 60. Meet ApacheSolr ApacheSolr is a Drupal module that integrates Drupal with Solr. http://drupal.org/project/apachesolr © 2008 Acquia, Inc.
  61. 61. Meet ApacheSolr • Robert Douglass • Jacob Singh • Peter Wolanin • Frank Febbraro • Mike J. O’Connor • Alejandro Garza • Thomas Seidl http://drupal.org/project/apachesolr © 2008 Acquia, Inc.
  62. 62. Meet ApacheSolr ApacheSolr has native faceted search. © 2008 Acquia, Inc.
  63. 63. Meet ApacheSolr © 2008 Acquia, Inc.
  64. 64. Meet ApacheSolr • Content types • Authors • Taxonomy terms • Languages • CCK field values • Site (for multisite search) © 2008 Acquia, Inc.
  65. 65. Meet ApacheSolr ApacheSolr has sortable search results. © 2008 Acquia, Inc.
  66. 66. Meet ApacheSolr © 2008 Acquia, Inc.
  67. 67. Meet ApacheSolr ApacheSolr can index attached files. © 2008 Acquia, Inc.
  68. 68. Meet ApacheSolr ApacheSolr can recommend content. © 2008 Acquia, Inc.
  69. 69. Meet ApacheSolr By evaluating the similarity of texts, Solr determines what content has similarities. © 2008 Acquia, Inc.
  70. 70. Meet ApacheSolr The ApacheSolr quot;More Like Thisquot; module provides content recommendation blocks on node view pages. © 2008 Acquia, Inc.
  71. 71. Meet ApacheSolr Solr evaluates the title, body, taxonomy terms, author name, etc. for similarity. © 2008 Acquia, Inc.
  72. 72. Meet ApacheSolr Content recommendation is a great tool for making your site sticky and leading site visitors to the next item of interest. © 2008 Acquia, Inc.
  73. 73. Meet ApacheSolr © 2008 Acquia, Inc.
  74. 74. Meet ApacheSolr ApacheSolr is highly configurable. © 2008 Acquia, Inc.
  75. 75. Meet ApacheSolr © 2008 Acquia, Inc.
  76. 76. Meet ApacheSolr © 2008 Acquia, Inc.
  77. 77. Meet ApacheSolr © 2008 Acquia, Inc.
  78. 78. Meet ApacheSolr © 2008 Acquia, Inc.
  79. 79. Meet ApacheSolr © 2008 Acquia, Inc.
  80. 80. Meet ApacheSolr ApacheSolr can search across multiple websites. © 2008 Acquia, Inc.
  81. 81. © 2008 Acquia, Inc.
  82. 82. ? ? ? © 2008 Acquia, Inc.
  83. 83. Meet ApacheSolr Why can’t ApacheSolr be as fast as Google? © 2008 Acquia, Inc.
  84. 84. Meet ApacheSolr It can be!!! © 2008 Acquia, Inc.
  85. 85. Meet ApacheSolr Hint: No node_load() © 2008 Acquia, Inc.
  86. 86. Meet ApacheSolr ApacheSolr will soon be available as a hosted solution from Acquia. © 2008 Acquia, Inc.
  87. 87. Meet ApacheSolr Acquia’s hosted solution is a way to scale your website. © 2008 Acquia, Inc.
  88. 88. Meet ApacheSolr Move server load from your servers to ours. © 2008 Acquia, Inc.
  89. 89. Meet ApacheSolr Move sysadmin load from your organization to ours. © 2008 Acquia, Inc.
  90. 90. Meet ApacheSolr Move uptime and monitoring worries from your team to ours. © 2008 Acquia, Inc.
  91. 91. Meet ApacheSolr Questions? © 2008 Acquia, Inc.
  1. A particular slide catching your eye?

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

×