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()
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: