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: Fwd: File name searching

2005-03-28 Thread Otis Gospodnetic
Super-cursory look over the code... the following doesn't look good: try { writer.addDocument(FileDocument.Document(file)); } // at least on windows, some temporary files raise this exception with an "access denied" message // checking if the file can be

Fwd: File name searching

2005-03-28 Thread Sushil Sureka
I am trying to learn Lucene by going through tutorials and article. I took a sample program and modified it a little to index all the file names on my local file system to allow me to search for a file quickly. I am not sure what's happening, for some file names the search is working where as for

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

How Lucene works with DB

2005-03-28 Thread Alex Kiselevski
Hi, I work with Lucene in file system. Please give me some links or tips how to work with Lucene and Data Base. Thanks in advance Alex Kiselevski +9.729.776.4346 (desk) +9.729.776.1504 (fax) AMDOCS > INTEGRATED CUSTOMER MANAGEMENT The information contained in this message is proprietary of