Where Does Whoosh (python) Physically Store The Indexed Content?
I am beginning to research on content indexing implementation, and was having a look at Whoosh (https://pypi.python.org/pypi/Whoosh/). I am curious to know where Whoosh stores its
Solution 1:
Whoosh uses a pluggable storage system; if you use the create_in() function then a FileStorage() class is used that stores indexes in files in a directory.
See the Whoosh quickstart:
Once you have the schema, you can create an index using the
create_infunction:import os.path from whoosh.index import create_in ifnotos.path.exists("index"): os.mkdir("index") ix = create_in("index", schema)(At a low level, this creates a
Storageobject to contain the index. AStorageobject represents that medium in which the index will be stored. Usually this will beFileStorage, which stores the index as a set of files in a directory.)
Post a Comment for "Where Does Whoosh (python) Physically Store The Indexed Content?"