Re: problem deleting documents

2006-10-15 Thread cfowler
diqui" <[EMAIL PROTECTED]> 10/15/2006 01:58 AM Please respond to java-user@lucene.apache.org To java-user@lucene.apache.org cc Subject problem deleting documents hi guys i am having problem deleting documents .. apparently its not doin it.. here is the code snippet public v

Re: problem deleting documents

2006-10-15 Thread Ismail Siddiqui
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.

Re: problem deleting documents

2006-10-14 Thread Doron Cohen
> 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 docum

problem deleting documents

2006-10-14 Thread Ismail Siddiqui
hi guys i am having problem deleting documents .. apparently its not doin it.. here is the code snippet public void delete(final BoardMessage message) { try{ IndexReader fsReader; if (index.exists()) { fsReader =IndexReader.open(index