There shouldn't be any reason to install whoosh unless the site is configured with full-text search.
Possible Solution
In search.py, wrap import whoosh in a try/catch ImportError, and provide a proper error if the site is configured to use whoosh if it's not available. flask-caching's memcached backend has an example on one way to do this (although it seems overkill for this purpose).
Expected Behavior
There shouldn't be any reason to install
whoosh
unless the site is configured with full-text search.Possible Solution
In
search.py
, wrapimport whoosh
in atry
/catch ImportError
, and provide a proper error if the site is configured to use whoosh if it's not available. flask-caching's memcached backend has an example on one way to do this (although it seems overkill for this purpose).Steps to Reproduce (for bugs)
1. 2. 3. 4.
Context