lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <>
Subject Re: Lucene IndexOutput
Date Tue, 24 Nov 2009 20:51:05 GMT
No, createOutput is designed to always create a new file.  This fits
with Lucene because Lucene is "write once" (never writes to the same
file more than once).

Probably you should fallback to Java's IO APIs?


On Sat, Nov 21, 2009 at 10:36 AM, nithin kamath <> wrote:
> I use Lucene's IndexOutput to dump index contents to a file, I use
> createOutput method in FSDirectory to create the file in the directory with
> the given name and use writeString and writeInt to write into it.
> The createOutput method though creates a new file each time, is there anyway
> that I can append to an existing file by seeking to the end of the file?
> Thanks,
> nithin
> --
> View this message in context:
> Sent from the Lucene - Java Users mailing list archive at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message