distribusi-verse/verse/search/search.py
2024-06-06 19:42:06 +02:00

9 lines
216 B
Python

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"))