lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: finalize delete without optimize
Date Tue, 14 Dec 2004 06:24:12 GMT
Hello John,

I believe you didn't get any replies to this.  What you are describing
cannot be done using the public, but maaay (no source code on this
machine, so I can't double-check that) be doable if you use some of the
'internal' methods.  

I don't have the need for this, but others might, so it may be worth
developing a tool that purges Documents marked as deleted without the
expensive segment merging, iff that is possible.  If you put this tool
under the approprite org.apache.lucene... package, you'll get access to
'internal' methods, of course.  If you end up creating this, we could
stick it in the Sandbox, where we should really create a new section
for handy command-line tools that manipulate the index.

Otis


--- John Wang <john.wang@gmail.com> wrote:

> Hi:
> 
>    Is there a way to finalize delete, e.g. actually remove them from
> the segments and make sure the docIDs are contiguous again.
> 
>    The only explicit way to do this is by calling
> IndexWriter.optmize(). But this call does a lot more (also merges all
> the segments), hence is very expensive. Is there a way to simply just
> finalize the deletes without having to merge all the segments?
> 
>     If not, I'd be glad to submit an implementation of this feature
> if
> the Lucene devs agree this is useful.
> 
> Thanks
> 
> -John
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
> 
> 


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


Mime
View raw message