Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

re7jenskramer

637 views

Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

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. ?

×