Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Like this presentation? Why not share!

Haystack

on

  • 1,259 views

 

Statistics

Views

Total Views
1,259
Views on SlideShare
1,241
Embed Views
18

Actions

Likes
0
Downloads
4
Comments
0

1 Embed 18

http://lanyrd.com 18

Accessibility

Categories

Upload Details

Uploaded via as OpenOffice

Usage Rights

CC Attribution-NonCommercial-ShareAlike LicenseCC Attribution-NonCommercial-ShareAlike LicenseCC Attribution-NonCommercial-ShareAlike License

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

Haystack Haystack Presentation Transcript

  • Searching for owls
  •  
  •  
  •  
  • Haystack and Whoosh
  • $ git clone git://github.com/toastdriven/django-haystack.git $ git clone http://github.com/toastdriven/whoosh.git Get from Git
    • Add haystack to INSTALLED_APPS
    • Set HAYSTACK_SEARCH_ENGINE and HAYSTACK_WHOOSH_PATH
    • Add global search_sites.py
    • Add search_indexes.py for each app
    • ./manage.py reindex
    • SearchQuerySet for building searches
    • auto_query(), filter() and exclude()
    • Consistent with QuerySet
    • But feels the wrong model to me
  •  
    • Install from separate repo
    • Set HAYSTACK_SEARCH_ENGINE
    • Set HAYSTACK_XAPIAN_PATH
    • reindex
  • Summary
    • Convenient and easy to use
    • Easy to switch backend
    • Unsure about SearchQuerySet
    • Awkward to pull data from multiple models
    • Only supports one language at a time