Browse files

Switch to Xapian as the search backend.

  • Loading branch information...
1 parent 0c1d16a commit 82276c1c35d7a3eb9853fff784ce9ec3774c00f3 @jacobian jacobian committed Feb 1, 2011
Showing with 7 additions and 2 deletions.
  1. +1 −0 deploy-requirements.txt
  2. +6 −2 django_website/settings/docs.py
View
1 deploy-requirements.txt
@@ -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
View
8 django_website/settings/docs.py
@@ -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.