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

Spell checker #46

Closed kaykay-dv closed 1 year ago

kaykay-dv commented 1 year ago

Currently, the spell checking dictionary is built when the PocketWriter context manager is exited. As the dictionary is built from scratch every time, this is not very efficient. It would be better to give more control to the application developer when the dictionary actually gets built through explicitly invoking a dedicated method:

with PocketWriter(index_name="document",db_name=db_name,schema=self.LegacyTableSchema) as writer:
    writer.spell_checker().build()
kaykay-dv commented 1 year ago

Fixed in 0.20.0