lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shai Erera <ser...@gmail.com>
Subject Re: How about lucene's delete performance ?
Date Wed, 13 Oct 2010 15:06:46 GMT
Note that deleteAll does not require you to optimize anything. It literally
removes all segments from the index in one shot, and when the files are
unreferenced, they will be removed entirely.

Shai

On Wed, Oct 13, 2010 at 4:53 PM, Dan OConnor <doconnor@acquiremedia.com>wrote:

> Jeff,
> I would suggest not deleting documents off the back of the index unless you
> can optimize your index regularly. (Depending on your volume, this could be
> every day or once a week)
>
> I would suggest having two indexes, one that is "this" week and one that is
> "last" week and a multi-index searcher that is aware of the date. When you
> get to the end of "this" week, you would delete "last" week's index and
> create a new "next" week index.
>
> Regards
> Dan
>
>
> ----- Original Message -----
> From: Jeff Zhang <zjffdu@gmail.com>
> To: java-user@lucene.apache.org <java-user@lucene.apache.org>
> Sent: Wed Oct 13 09:37:31 2010
> Subject: How about lucene's delete performance ?
>
> Hi all,
>
> I only want to index the latest one week's data, the previous data can
> be deleted. So I'd like to know about lucene's delete performance and
> whether it will has impact on the search performance when I do lots of
> delete operation in the meantime.  Thanks
>
> --
> Best Regards
>
> Jeff Zhang
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message