Lucene 2.2 + Not Merging Segments

2007-07-23 Thread Harini Raghavan
Hi All, I just upgraded my application to use lucene 2.2. Prior to this, I was using lucene 1.9.1 and the addDocument method in the IndexWriter used to keep merging smaller segments while adding new documents depending on the mergeFactor. I was using the default mergeFactor settings. But after th

Re: Lucene 2.2 + Not Merging Segments

2007-07-23 Thread Michael McCandless
This is spooky. Could you provide more details about how you are using IndexWriter? Are you changing "max buffered docs" from the default? Also, can you call writer.setInfoStream(System.out), capture that log, and post it? Mike "Harini Raghavan" <[EMAIL PROTECTED]> wrote: > Hi All, > > I jus

Re: Lucene 2.2 + Not Merging Segments

2007-07-23 Thread Doron Cohen
Also, are you perhaps closing the indexWriter after each addDoc()? "Michael McCandless" <[EMAIL PROTECTED]> wrote: > > This is spooky. Could you provide more details about how you are using > IndexWriter? Are you changing "max buffered docs" from the default? > > Also, can you call writer.setIn

Re: Lucene 2.2 + Not Merging Segments

2007-07-24 Thread Harini Raghavan
I figured out the problem. The issue had nothing to do with Lucene 2.2. I had accidentally reset the default mergeFactor to 1000. This was the reason it was not merging the segments. With the default mergeFactor, the indexing is working perfectly fine. Thanks, Harini On 7/24/07, Michael McCandle