thanks, it worked On 10/15/06, Doron Cohen <[EMAIL PROTECTED]> wrote:
> now pk is primary key which i am storing but not indexing it.. > doc.add(new Field("pk", message.getId().toString(),Field.Store.YES, > Field.Index.NO)); You would need to index it for this to work. From javadocs for IndexReader.deleteDocuments(Term): Deletes all documents _containing_ term Containment relates to indexed terms. > > when i am making a search i can get pk and show it in result...but above > code is not deleting the document - Doron --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]