Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Switch to Xapian as the search backend.

  • Loading branch information...
commit 82276c1c35d7a3eb9853fff784ce9ec3774c00f3 1 parent 0c1d16a
Jacob Kaplan-Moss authored
1  deploy-requirements.txt
@@ -12,4 +12,5 @@ python-memcached >= 1.45, < 2.0
12 12
 Sphinx >= 1.0, < 1.1
13 13
 South >= 0.7, < 0.8
14 14
 Unipath >= 0.2, < 0.3
  15
+xapian-haystack == 1.1.5beta
15 16
 http://bitbucket.org/ubernostrum/django-contact-form/get/tip.bz2
8  django_website/settings/docs.py
@@ -22,5 +22,9 @@
22 22
 
23 23
 # Haystack settings
24 24
 HAYSTACK_SITECONF = 'django_website.docs.search_sites'
25  
-HAYSTACK_SEARCH_ENGINE = 'whoosh'
26  
-HAYSTACK_WHOOSH_PATH = '/tmp/djangodocs.index'
  25
+if PRODUCTION:
  26
+    HAYSTACK_SEARCH_ENGINE = 'xapian'
  27
+    HAYSTACK_XAPIAN_PATH = BASE.ancestor(2).child('djangodocs.index')
  28
+else:
  29
+    HAYSTACK_SEARCH_ENGINE = 'whoosh'
  30
+    HAYSTACK_WHOOSH_PATH = '/tmp/djangodocs.index'

0 notes on commit 82276c1

Please sign in to comment.
Something went wrong with that request. Please try again.