The index class should be a wrapper class around the PocketSearch class that allows convenient construction of a search index from a source. A FileSystemIndex class should be provided as example:
index = FileSystemIndex(base_dir=tmpdirname, file_extensions=[".txt"])
index.build()
index.search(text="Hello")
The index class should be a wrapper class around the PocketSearch class that allows convenient construction of a search index from a source. A FileSystemIndex class should be provided as example: