Hello, Of course, if you actually want the last 7 days rolling effect and not the this week vs. previous week, then you could go with smaller indices, say daily ones. Then you'd always add new docs to the latest index and removing the oldest index completely every 24 hours.
You could go hourly, too, depending on your exact needs. Otis ---- Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch Lucene ecosystem search :: http://search-lucene.com/ ----- Original Message ---- > From: Shai Erera <ser...@gmail.com> > To: java-user@lucene.apache.org > Sent: Wed, October 13, 2010 11:06:46 AM > Subject: Re: How about lucene's delete performance ? > > 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 <docon...@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 <zjf...@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-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