You delete it first using your id:

>            writer.deleteDocuments(term);
>

and then re-add it with the same id:

writer.addDocument(d);
>

Please explain:
How looks your document BEFORE you try to delete it? (Which fields has it?)

Greetings Danny

Reply via email to