re7jenskramer

516 views
487 views

Published on

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
516
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • Hello everybody, and welcome to my talk about Rails full text search with the Ferret library. At first, I'd like to thank the people from O'Reilly for giving me the opportunity to speak here today. To introduce myself, my name is Jens Krämer, and I'm working at webit!, an IT consulting firm located in the beautiful city of Dresden here in Germany. I've split my talk in two parts. At first, I'll give you a brief overview over the Ferret full text search library. In the second part, I'll show you how to easily integrate Ferret with your Rails application with the help of the acts_as_ferret Rails plugin, which was initially created by Kasper Weibel, and which I'm the maintainer of since early 2006.
  • re7jenskramer

    1. 1. <ul><li>Jens Krämer </li></ul><ul><li>http://www.jkraemer.net/ </li></ul><ul><li>http://www.webit.de/ </li></ul>Rails Full Text Search with Ferret
    2. 2. <ul><li>$ gem install ferret </li></ul><ul><li>http://ferret.davebalmain.com/ </li></ul>
    3. 3. The Problem
    4. 4. <ul><li>Index </li></ul><ul><li>Documents </li></ul><ul><li>Fields </li></ul>
    5. 5. Indexing
    6. 6. Searching
    7. 7. Ferret Query Language
    8. 8. Basic Queries <ul><li>fox </li></ul><ul><li>w?ldcar* </li></ul><ul><li>quick~0.5 </li></ul><ul><li>[20050725 20050905} </li></ul><ul><li>&quot;quick|speedy|fast <> fox&quot; </li></ul><ul><li>&quot;quick|fast fox&quot;~2 </li></ul>
    9. 9. Combined queries <ul><li>(quick fast) AND fox </li></ul><ul><li>+(qui* fast) -brown +fox </li></ul><ul><li>description:(quick fast) AND name:fox </li></ul><ul><li>content:rails title:rails^5 +date: >= 20070101 </li></ul>
    10. 10. Ferret Query API
    11. 11. Sorting
    12. 12. Ferret Browser
    13. 13. +
    14. 14. Basic Usage
    15. 15. Field Options
    16. 16. Custom Fields
    17. 17. ActiveRecord Options
    18. 18. Lazy Loading
    19. 19. multi_search
    20. 20. Controller
    21. 21. View
    22. 22. Extended Search
    23. 23. Extended Search
    24. 24. Production Mode Mongrel Database DRb Mongrel Mongrel Mongrel Index
    25. 25. Production Mode
    26. 26. In the Wild <ul><li>omdb.org </li></ul><ul><li>xing.com </li></ul><ul><li>blogblogs.com.br </li></ul><ul><li>lingr.com </li></ul><ul><li>altlaw.org </li></ul><ul><li>Peritor Minea (peritor.com) </li></ul><ul><li>sachsen-gesetze.de </li></ul>
    27. 27. Further Reading <ul><li>[email_address] </li></ul><ul><li>ferret.davebalmain.com </li></ul><ul><li>projects.jkraemer.net/acts_as_ferret </li></ul><ul><li>Ferret Shortcut </li></ul><ul><li>Lucene in Action </li></ul>
    28. 28. ?

    ×