Michael is, of course, the Master of Merges... I have to ask, though, have you demonstrated to your satisfaction that you're actually seeing a problem? And that fewer merges would actually address that problem?
'cause this might be an "XY" problem.... Best, Erick On Thu, Jun 12, 2014 at 4:11 AM, Michael McCandless <luc...@mikemccandless.com> wrote: > Likely you should implement a custom MergeScheduler (MergePolicy picks > which merges to do, and MergeScheduler schedules them). > > Or you could e.g. make a MergePolicy that picks only "easy-ish" merges > during busy times and leaves hard merges for later. > > Just be very careful: if merges fall behind and your index has too > many segments then things can be even worse (more open file > descriptors, slower searching, more RAM used, etc.). > > Mike McCandless > > http://blog.mikemccandless.com > > > On Thu, Jun 12, 2014 at 12:38 AM, Jamie <ja...@mailarchiva.com> wrote: >> Hi All, >> >> What's the best way to control the timing when merges occur? In particular, >> I'd like less merges to occur when the rate of indexing new documents is >> high, and more merges to occurs when the indexing rate drops. What's the >> best way to accomplish this? Do I need to implement a custom merge policy? >> >> Thank you in advance for your consideration. >> >> Jamie >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org >> For additional commands, e-mail: java-user-h...@lucene.apache.org >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org