You are right, calling delete only marks the document(s) as deleted. However subsequent merging operations either called implicitly if you add documents or called explicitetly by calling optimize actually delte the document(s) and reduce the size of the index.
Christoph
Alex Aw Seat Kiong schrieb:
Hi!
Regarding the Lucene, delete(int) and delete(Term) function, After delete the index document with the function, It will not found when searching from it. But, The size of the Index Storage was not reduce? It seek like just mark the index document as deleted status only. So, how to delete the index document Permanently?
**The delete(int) method is used when the sequential number of the document to be deleted within the index is known. **The delete(Term) method can be used when a term that matches exactly the document(s) you want to delete can be specified.
Please kindly help. Thanks.
Regards, AlexAw
Senior Software Engineer BIGontheNet Pte Ltd Tel (office) : (65) 67799687 Tel (mobile) : (65) 96527369
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- ***************************************************************** * Dr. Christoph Goller Tel.: +49 89 203 45734 * * Detego Software GmbH Mobile: +49 179 1128469 * * Keuslinstr. 13 Fax.: +49 721 151516176 * * 80798 M�nchen, Germany Email: [EMAIL PROTECTED] * *****************************************************************
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
