Navigation Menu

Skip to content

Commit

Permalink
Switch to Xapian as the search backend.
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobian committed Feb 1, 2011
1 parent 0c1d16a commit 82276c1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions deploy-requirements.txt
Expand Up @@ -12,4 +12,5 @@ python-memcached >= 1.45, < 2.0
Sphinx >= 1.0, < 1.1
South >= 0.7, < 0.8
Unipath >= 0.2, < 0.3
xapian-haystack == 1.1.5beta
http://bitbucket.org/ubernostrum/django-contact-form/get/tip.bz2
8 changes: 6 additions & 2 deletions django_website/settings/docs.py
Expand Up @@ -22,5 +22,9 @@

# Haystack settings
HAYSTACK_SITECONF = 'django_website.docs.search_sites'
HAYSTACK_SEARCH_ENGINE = 'whoosh'
HAYSTACK_WHOOSH_PATH = '/tmp/djangodocs.index'
if PRODUCTION:
HAYSTACK_SEARCH_ENGINE = 'xapian'
HAYSTACK_XAPIAN_PATH = BASE.ancestor(2).child('djangodocs.index')
else:
HAYSTACK_SEARCH_ENGINE = 'whoosh'
HAYSTACK_WHOOSH_PATH = '/tmp/djangodocs.index'

0 comments on commit 82276c1

Please sign in to comment.