开发者

Reading from compressed lucene index

I created a lucene index and compressed the index directory with bz2 or zip. I donot want to uncompress it. Is there any API call that can read the index from this zipped directory and thus allow searching and other functionalities. That is, can lucence IndexReader read the index from a compressed file.

I saw that Luc开发者_C百科nene IndexReader does not support "Reader" to open the index, otherwise I would have created a Reader class that uncompresses the file and streams the uncompressed version.

Any alternatives to this are welcome.

Thanks, Akhil


There are some virtual filesystem implementations out there that would allow you to mount a ZIP/GZ file as a disk. One example is fuse-zip: http://code.google.com/p/fuse-zip/ .

However, Lucene has no built in support for for reading a zipped index.


I would probably go with the virtual filesystem myself, but you theoretically could implement a Directory interface implementaion

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜