lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steven A Rowe <>
Subject RE: RAMDirectory and expungeDeletes()/optimize()
Date Wed, 11 Jul 2012 14:48:57 GMT
Nabble silently drops content from email sent through their interface on a regular basis. 
I've told them about it multiple times.  My suggestion: find another way to post to this mailing

-----Original Message-----
From: Michael McCandless [] 
Sent: Wednesday, July 11, 2012 10:07 AM
Subject: Re: RAMDirectory and expungeDeletes()/optimize()

What I meant was your original email says "My code looks like",
followed by blank lines, and then "Doesn't it conflict with the
JavaDoc saying:", followed by blank lines. Ie we can't see your code.

However, when I look at your email here at
I do see the code and javadocs.

But when I look at
they are missing.

Not sure what's going on.  Maybe your email was originally HTML but
got converted to plain text somewhere along the way, losing those
important parts?

Anyway, to try to answer your question: you should be able to simply
call optimize (forceMerge(1)): it does what expungeDeletes does, and
more (merges down to 1 segment).  Yes, it's horribly costly, and so
you should do it rarely, but it sounds like it may be OK in this case
(one time thing before you send a segment off to the main index).
Still, you should test whether it actually helps in the end, because
likely the main index will have to merge these segments anyway (if
enough are added) which'd mean the merging you did on adding them was
redundant (unless bandwidth is very costly...).

Mike McCandless

On Wed, Jul 11, 2012 at 9:55 AM, Konstantyn Smirnov <> wrote:
> JavaDoc comes from here
> other blanks are here because it's groovy :) Or what did you mean exactly?
> --
> View this message in context:
> Sent from the Lucene - Java Users mailing list archive at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message