Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Switch to Xapian as the search backend.

  • Loading branch information...
commit 82276c1c35d7a3eb9853fff784ce9ec3774c00f3 1 parent 0c1d16a
@jacobian jacobian authored
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'
Please sign in to comment.
Something went wrong with that request. Please try again.