Method to clear index
for some applications (that might have lots of data to index), I think it might be nice to be able to separately build a new index, while the application is still using the current index without getting disturbed in any way.
When the new index is fully built and fully up-to-date (that might need one full build + some incremental builds until nothing changes any more), there needs to be a way to quickly switch over to the new storage.
Here is some application code that supports this:
Problem: this is whoosh storage specific, so that code should be in whoosh, not in the application.
Or is there another way to reach this goal?