you have to search against something known. You simply (as has been
mentioned many times) cannot rely on the document IDs.

So, I'd store the full path (untokenized) of the file. When you move a file,
search for the path in the appropriate field in your index that the file was
originally stored in. Then delete. Or just delete it by that term.

Erick

On 12/12/06, spinergywmy <[EMAIL PROTECTED]> wrote:


Hi,

   When I perform delete document and delete document based on the Id,
does
the Id is the unique key and by deleting based on the Id, all the related
info will be deleted as well? If so, how can I know the document Id?
Thanks.


regards,
Wooi Meng
--
View this message in context:
http://www.nabble.com/How-to-delete-partial-index-tf2806204.html#a7844980
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to