distribusi-verse/verse/search/search.py

9 lines
216 B
Python
Raw Normal View History

2024-06-06 19:42:06 +02:00
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"))