Re: problem deleting documents

2006-10-15 Thread cfowler
Ismail, I was having the same type of problem (using v2) until I changed my index to change the ID field from Field.Index.TOKENIZED to Field.Index.UN_TOKENIZED. Can you try that, or create a secondary field that is set up that way with your pk id in it? Chris Ismail Siddiqui [EMAIL

deleteDocuments being ingnored

2006-10-09 Thread cfowler
Hello, I'm brand new to this, so hopefully you can help me. I'm attempting to use the IndexReader object in lucene v2 to delete and readd documents. I very easily set up an index and my documents are added. Now I'm trying to update the same index by deleting the document before

Re: deleteDocuments being ingnored

2006-10-09 Thread cfowler
My apologies, the IndexReader code I included was a commented out trial. Here is the active version. Sorry for the error: IndexReader ir = IndexReader.open(indexDir); System.out.println( + ir.numDocs()); int deleted = ir.deleteDocuments(new