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
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
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