Thanks, Jason. Is my understanding correct that LogByteSizeMergePolicy.setMaxMergeMB(100) will prevent merging of two segments that is larger than 100 Mb each at the optimizing time?
If so, why do think would I still see segment that is larger than 200 MB? On Wed, Jan 13, 2010 at 1:43 PM, Jason Rutherglen < jason.rutherg...@gmail.com> wrote: > Hi Trin, > > There was recently a discussion about this, the max size is > for the before merge segments, rather than the resultant merged > segment (if that makes sense). It'd be great if we had a merge > policy that limited the resultant merged segment, though that'd > by a rough approximation at best. > > Jason > > On Wed, Jan 13, 2010 at 1:36 PM, Trin Chavalittumrong <mrt...@gmail.com> > wrote: > > Hi, > > > > > > > > I am trying to optimize the index which would merge different segment > > together. Let say the index folder is 1Gb in total, I need each > segmentation > > to be no larger than 200Mb. I tried to use *LogByteSizeMergePolicy *and > > setMaxMergeMB(100) to ensure no segment after merging would be 200Mb. > > However, I still see segment that are larger than 200Mb. I did call > > IndexWriter.optimize(20) to make sure there are enough number > segmentation > > to allow each segment to be under 200Mb. > > > > > > > > Can someone let me know if I am using this right? Or any suggestion on > how > > to tackle this would be helpful. > > > > > > > > Thanks, > > > > Trin > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > >