Whoosh is a fast, featureful, full-text indexing and searching library that's implemented in Python. It has a pure Pythonic API and allows developers to add search functionality to their applications easily and efficiently. In this recipe, we will use a package called Flask-WhooshAlchemy, which integrates the text-search functionality of Whoosh with SQLAlchemy for use in Flask applications.
Implementing full-text search with Whoosh
Getting ready
The Flask-WhooshAlchemy package can be installed via pip using the following command:
$ pip3 install git+git://github.com/gyllstromk/Flask-WhooshAlchemy.git
This will install the required packages and dependencies. This library is being cloned and installed from GitHub because...