Skip to content
Snippets Groups Projects
Commit ba1b257a authored by felixwelter's avatar felixwelter
Browse files

Add docstring to BasicSearchIndex

parent 04217b62
Branches
Tags
No related merge requests found
......@@ -7,6 +7,7 @@ from whoosh.qparser import QueryParser, OrGroup
class BasicSearchIndex:
"""Expose relevant functions of Whoosh using a simple interface"""
def __init__(self, index_dir="index"):
self.schema = Schema(path=ID(stored=True), page=NUMERIC(stored=True), content=TEXT(stored=True))
try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment