Re: batch delete

2005-03-29 Thread Daniel Naber
On Monday 28 March 2005 11:59, Ben wrote: > Is there a typo in the javadoc for Term.compareTo(Term other)? Thanks --the before/after issue has been fixed in SVN some time ago already, I just also fixed the iff -> if. Regards Daniel -- http://www.danielnaber.de --

Re: batch delete

2005-03-28 Thread Ben
Cheers, I didn't know iff = if and only if. :) My question was mainly about the polarity. Thanks, Ben On Mon, 28 Mar 2005 08:19:19 -0800, Chuck Williams <[EMAIL PROTECTED]> wrote: > Otis Gospodnetic writes (3/28/2005 7:34 AM): > > >iff = if and only if. Not a typo, but it may be redundant. > >

Re: batch delete

2005-03-28 Thread Chuck Williams
Otis Gospodnetic writes (3/28/2005 7:34 AM): iff = if and only if. Not a typo, but it may be redundant. Definitely not a typo, but also definitely redundant since the integers are partitioned into before-zero, zero and after-zero. However, nobody seems to have noticed the other change below.

Re: batch delete

2005-03-28 Thread Otis Gospodnetic
iff = if and only if. Not a typo, but it may be redundant. Otis --- Ben <[EMAIL PROTECTED]> wrote: > Thanks, will investigate your method. > > Is there a typo in the javadoc for Term.compareTo(Term other)? > > From javadoc: > > Compares two terms, returning an integer which is less than zero

Re: batch delete

2005-03-28 Thread Ben
Thanks, will investigate your method. Is there a typo in the javadoc for Term.compareTo(Term other)? >From javadoc: Compares two terms, returning an integer which is less than zero iff this term belongs after the argument, equal zero iff this term is equal to the argument, and greater than zero

Re: batch delete

2005-03-28 Thread Chris Lamprecht
That's one way to do it - do a query, get a list of document IDs, and then delete that list of doc IDs. The method I mentioned in my previous message is different - you're getting a list of all Terms that are in the index. There will be 1 term for each date (possibly down to the millisecond), whi

Re: batch delete

2005-03-28 Thread Ben
OK, so I have to query for a list of old documents (from a given date) and delete each document individually? Can I use DateFilter.Before() with Term? Thanks, Ben On Mon, 28 Mar 2005 02:13:48 -0600, Chris Lamprecht <[EMAIL PROTECTED]> wrote: > Ben, > > If you know the exact terms you want to de

Re: batch delete

2005-03-28 Thread Chris Lamprecht
Ben, If you know the exact terms you want to delete, you can do it without querying: IndexReader reader = IndexReader.open(indexDir); Term deleteTerm = new Term("mmdd", mmdd); reader.delete(deleteTerm); If you are using a lucene date field, I think you'll have to enumerate through all th

Re: batch delete

2005-03-27 Thread Ben
BTW is it possible to do what I am trying to achieve without querying the database or the index? Thanks, Ben On Mon, 28 Mar 2005 10:38:52 +1000, Ben <[EMAIL PROTECTED]> wrote: > Hi > > I need to delete a number of documents that are older than a > particular time from a Lucene index. What is the

batch delete

2005-03-27 Thread Ben
Hi I need to delete a number of documents that are older than a particular time from a Lucene index. What is the best way to do this? Thanks, Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAI