You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Konstantyn Smirnov <in...@yahoo.com> on 2013/05/21 15:12:01 UTC

Re: RAMDirectory and expungeDeletes()/optimize()

I want to refresh the topic a bit.

Using the Lucene 4.3.0, I could'n find a method like expungeDeletes() in the
IW anymore. I rely on lucence's MergePolicies to do the optimization, but I
need to keep the metadata up-to-date, docFreqs and termFreqs to name a few.

The only way to accomplish that was writer.forceMerge( 1 ), but it includes
the optimization.

Are there any other "cheaper" ways to do that?

TIA



--
View this message in context: http://lucene.472066.n3.nabble.com/RAMDirectory-and-expungeDeletes-optimize-tp3994350p4064890.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: RAMDirectory and expungeDeletes()/optimize()

Posted by Thomas Matthijs <li...@selckin.be>.
On Tue, May 21, 2013 at 3:12 PM, Konstantyn Smirnov <in...@yahoo.com>wrote:

> I want to refresh the topic a bit.
>
> Using the Lucene 4.3.0, I could'n find a method like expungeDeletes() in
> the
> IW anymore.



http://lucene.apache.org/core/4_3_0/core/org/apache/lucene/index/IndexWriter.html#forceMergeDeletes()