IndexWriter: setRAMBufferSizeMB

2008-02-08 Thread spring
Hi, if I understand this property correctly every time the ram buffer is full it gets automaticaly written to disk. Something like a commit in a database. Thus if my application dies, all docs in the buffer get lost. Right? If so, is there any event/callback etc. which informs my application that

Re: IndexWriter: setRAMBufferSizeMB

2008-02-08 Thread Michael McCandless
Well ... every time the RAM buffer is full, a new segment is flushed to the Directory, but that is not necessarily a "commit" in that an IndexReader would see the new segment, nor, that the segment would survive if the machine suddenly crashed. You should't rely on when specifically IndexWriter m

RE: IndexWriter: setRAMBufferSizeMB

2008-02-08 Thread spring
9:34 > To: java-user@lucene.apache.org > Subject: Re: IndexWriter: setRAMBufferSizeMB > > Well ... every time the RAM buffer is full, a new segment is flushed > to the Directory, but that is not necessarily a "commit" in that > an IndexReader would see the new segment, nor

Re: IndexWriter: setRAMBufferSizeMB

2008-02-08 Thread Michael McCandless
pache.org Subject: Re: IndexWriter: setRAMBufferSizeMB Well ... every time the RAM buffer is full, a new segment is flushed to the Directory, but that is not necessarily a "commit" in that an IndexReader would see the new segment, nor, that the segment would survive if the machine suddenly

RE: IndexWriter: setRAMBufferSizeMB

2008-02-10 Thread spring
e.apache.org > Subject: Re: IndexWriter: setRAMBufferSizeMB > > > It's complicated. > > In 2.3, you can use IW.flush to write docs to disk. But that method > will be deprecated in 2.4 and replaced with commit. Or, you > can close. > > If application (jvm) dies

Re: IndexWriter: setRAMBufferSizeMB

2008-02-10 Thread Michael McCandless
21:01 To: java-user@lucene.apache.org Subject: Re: IndexWriter: setRAMBufferSizeMB It's complicated. In 2.3, you can use IW.flush to write docs to disk. But that method will be deprecated in 2.4 and replaced with commit. Or, you can close. If application (jvm) dies or killed, the index w