Reading from a compressed lucene index

I created a lucene index and compressed the index using bz2 or zip. I don't want to split him. Is there any API call that can read the index from this zip directory and thus allow searches and other functions. That is, lucence IndexReader can read the index from the compressed file.

I saw that Lucnene IndexReader does not support "Reader" to open the index, otherwise I would create a Reader class that unpacks the file and uploads the uncompressed version.

Any alternatives to this are appreciated.

Thanks, Akhil

+2


a source to share


2 answers


There are several implementations of virtual filesystems that will allow you to mount a ZIP / GZ file as a disk. One example is a fuse: http://code.google.com/p/fuse-zip/ .



Lucene, however, has no built-in support for reading the zip index.

0


a source


I would most likely go with a virtual file system, but in theory you could implement an implementation of the Directory interface



0


a source







All Articles