"Ning Li" <[EMAIL PROTECTED]> wrote: > On 4/4/07, Michael McCandless (JIRA) <[EMAIL PROTECTED]> wrote: > > Note that for "autoCommit=false", this optimization is somewhat less > > important, depending on how often you actually close/open a new > > IndexWriter. In the extreme case, if you open a writer, add 100 MM > > docs, close the writer, then no segment merges happen at all. > > I think in the current code, the merge behavior for "autoCommit=false" > is the same as that for "autoCommit=true", isn't it?
Right, the current code implements the autoCommit=false case rather inefficiently. While LUCENE-843 fixes that to some extent, it must still do its own merging of "flushed" segments. But that merging ought to be faster since it does not merge the term vectors & stored fields. I will run a test to compare (the test I ran for that issue was with autoCommit=true). Mike --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]