kaykay-dv / pocketsearch

A simple full-text search library for Python using SQLite and its FTS5 extension
https://pocketsearch.readthedocs.io/en/latest/
MIT License
1 stars 0 forks source link

Introduction of Index class #5

Closed kaykay-dv closed 1 year ago

kaykay-dv commented 1 year ago

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")
kaykay-dv commented 1 year ago

This has been implemented through the IndexReader classes - see README for more details