well, I did not understand here. so there is a no way of using the new constructor - and specify autoCommit = false ?
Best On Mon, Sep 15, 2008 at 10:30 PM, Michael McCandless <[EMAIL PROTECTED]> wrote: > > Cam Bazz wrote: > >> However the documentation states that autoCommit=true. > > For now, keep using the deprecated API and specify autoCommit=false. Then > in 3.0, when IndexWriter switches to autoCommit=false, remove the boolean > autoCommit from your constructor. > >> How do we disable this? In 2.3 I used to do a: >> >> writer.setMaxBufferedDocs(IndexWriter.DISABLE_AUTO_FLUSH); >> >> would that totally disable autoCommit, or will it autoCommit when the >> ram usage reaches a certain criteria. > > Actually, this (maxBufferedDocs, as well as ramBufferSizeMB) controls when > buffered docs in RAM are written as a new segment to disk. When such a > segment is created, it's not yet referenced by a segments_N file (thus a > newly opened IndexReader won't see them) until a commit (or flush) happens. > > autoCommit=true, instead, means IndexWriter will periodically (on it's own > schedule) call commit() internally. > > Mike > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]