Hi all,

Is there a way to place a file in the Lucene directory and make Lucene
believe that it is part of the segment/index? I'm assuming FSDirectory is
being used (NIOFSDirectory for example).

One way I see is to use Directory#createOutput() and copy contents or use
copy from(). But both require copying bytes, and I want to avoid it.

I'm looking at SegmentState#segmentInfos and it has a set(Collection<File>)
and addFile() methods. Would they work?

Thanks and regards,
Ishan

Reply via email to