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

Add docstring to BasicSearchIndex

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