You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Vaibhav Khanduja <va...@gmail.com> on 2022/12/17 01:25:06 UTC

Extending Directory Object

Hello,

I am looking to write out a custom storage for lucene indexes. Can somebody
point me to a location where I can find an example of it?

Thx

Re: Extending Directory Object

Posted by Matt Davis <kr...@gmail.com>.
A really old example (Lucene 6.x) is here:
https://github.com/lumongo/lumongo/wiki/Distributed-Directory
https://github.com/lumongo/lumongo/tree/master/lumongo-storage/src/main/java/org/lumongo/storage/lucene

But the gist is to extend BaseDirectory and IndexOutput/IndexInput which I
think still applies.

The above project was abandoned because storing the index in MongoDB (or
any DB) probably requires block caching in memory for decent performance in
which case you are caching plus the DB is caching and using more memory.
Can you expand on your use case for custom storage?

Thanks,
Matt


On Mon, Dec 19, 2022 at 12:31 PM Vaibhav Khanduja <va...@gmail.com>
wrote:

> Hello,
>
> I am looking to write out a custom storage for lucene indexes. Can somebody
> point me to a location where I can find an example of it?
>
> Thx
>