RE: deleting on a keyword field

2005-06-07 Thread Max Pfingsthorn
hanks for bearing with me though! max -Original Message- From: Erik Hatcher [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 07, 2005 03:37 To: java-user@lucene.apache.org Subject: Re: deleting on a keyword field On Jun 6, 2005, at 7:07 AM, Max Pfingsthorn wrote: > Thanks for all the re

Re: deleting on a keyword field

2005-06-07 Thread Erik Hatcher
y runnable example demonstrating this issue would be the next step. Erik Thanks! max -Original Message- From: Daniel Naber [mailto:[EMAIL PROTECTED] Sent: Friday, June 03, 2005 20:10 To: java-user@lucene.apache.org Subject: Re: deleting on a keyword field On Friday 03 June 2005 18:50, M

RE: deleting on a keyword field

2005-06-06 Thread Max Pfingsthorn
3, 2005 20:10 To: java-user@lucene.apache.org Subject: Re: deleting on a keyword field On Friday 03 June 2005 18:50, Max Pfingsthorn wrote: > reader.delete(new Term(URI_FIELD, uri)); > > This does not remove anything. Do I have to make the uri a normal field? How do you know nothing w

Re: deleting on a keyword field

2005-06-03 Thread Ernesto De Santis
from javadoc: public final int *delete*(Term term) throws IOException Deletes all documents containing |term|. This is useful if one uses a document field to hold a

Re: deleting on a keyword field

2005-06-03 Thread Daniel Naber
On Friday 03 June 2005 18:50, Max Pfingsthorn wrote: > reader.delete(new Term(URI_FIELD, uri)); > > This does not remove anything. Do I have to make the uri a normal field? How do you know nothing was deleted? Are you aware that you need to re-open your IndexSearcher/Reader in order to see the c

Re: deleting on a keyword field

2005-06-03 Thread Erik Hatcher
On Jun 3, 2005, at 12:50 PM, Max Pfingsthorn wrote: Hi! I'm trying to delete a document from the index. Somehow it doesn't work. I made a Field.Keyword out of my document's URI and would now like to delete a document with a certain uri like so: reader.delete(new Term(URI_FIELD, uri)); T

deleting on a keyword field

2005-06-03 Thread Max Pfingsthorn
Hi! I'm trying to delete a document from the index. Somehow it doesn't work. I made a Field.Keyword out of my document's URI and would now like to delete a document with a certain uri like so: reader.delete(new Term(URI_FIELD, uri)); This does not remove anything. Do I have to make the uri a n