Mailing List Archive

Optimization and deletes
Hi,
I have noticed that unless I optimize the indexing while adding documents to
it, the deleted documents are not getting physically deleted right away
(even though they seemed to have been flagged as "deleted". The searcher
could not find them once they were deleted). If I decide not to optimize the
index, when would the deleted documents actually get deleted?

--
To unsubscribe, e-mail: <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>
RE: Optimization and deletes [ In reply to ]
> From: Aruna Raghavan [mailto:ArunaR@opin.com]
>
> I have noticed that unless I optimize the indexing while
> adding documents to
> it, the deleted documents are not getting physically deleted
> right away
> (even though they seemed to have been flagged as "deleted".
> The searcher
> could not find them once they were deleted). If I decide not
> to optimize the
> index, when would the deleted documents actually get deleted?

They are in fact deleted, however the space they consume in the index has
not yet been reclaimed. It will eventually be reclaimed as more documents
are added to the index, or when you optimize the index.

Doug

--
To unsubscribe, e-mail: <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>