Reputation: 5601
Note: This question originally applied to Xapian, but due to cross-platform issues and poor understanding of Xapian I (our team) chose Solr instead.
I'm looking for snippets, tricks, tips, links, and anything to watch out for (gotchas). My technology stack includes:
Thank you all for the help and insight!
Upvotes: 0
Views: 2324
Reputation: 3784
A few notes and resources. My advice is mostly related to Haystack in general since I don't have experience with Xapian as a backend.
A snippet from my own code of switching between Whoosh and Solr easily:
# Haystack search settings
HAYSTACK_SITECONF = 'project.search_sites'
HAYSTACK_INCLUDE_SPELLING = True
# Haystack backend settings
HAYSTACK_SEARCH_ENGINE = 'solr' # Switch this to 'whoosh' to use that backend instead
if DEBUG:
HAYSTACK_SOLR_URL = 'solr.development.url'
else:
HAYSTACK_SOLR_URL = 'solr.production.url'
HAYSTACK_WHOOSH_PATH = os.path.join(PROJECT_ROOT, 'search_index', 'whoosh')
Upvotes: 3