import os from whoosh.fields import * from whoosh.index import open_dir from whoosh.qparser import QueryParser SCRIPT_DIR = os.path.dirname(__file__) DATA_DIR = os.path.abspath(os.path.join(SCRIPT_DIR, "../data"))