Thank you, I didn't realize all terms need to be indexed to be searched. -----Original Message----- From: Erik Hatcher [mailto:[EMAIL PROTECTED] Sent: Monday, January 08, 2007 2:04 AM To: lucene-net-user@incubator.apache.org Subject: Re: can't delete documents
Oh did you index "MessageId"? Is it possible you analyzed it during indexing and thus mangled it? Erik On Jan 8, 2007, at 2:16 AM, Michael Paine wrote: > Hi, I have been having problems trying to delete documents within an > index. > Whenever I execute the following: > > Dim reader As IndexReader = IndexReader.Open(DefaultStore) > Dim deleted As Integer = reader.DeleteDocuments(New > Term("MessageId", CStr(MessageId))) > reader.Close() > > whereby MessageId is always unique, deleted always equals 0. Do I > need to do something in particular before this will work? > > Thank you, > Michael