lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Danny Lade <dannyl...@googlemail.com>
Subject Re: Updating a document
Date Fri, 10 Jun 2011 11:14:46 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message