[
https://issues.apache.org/jira/browse/LUCENE-4884?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13613704#comment-13613704
]
Michael McCandless commented on LUCENE-4884:
--------------------------------------------
Hmm, how are you calling .deleteAll on the taxonomy directory? I think
DirectoryTaxonomyWriter needs to expose a .deleteAll method? (As a workaround
you can just close your taxonomy writer and then open a new one with
OpenMode.CREATE to overwrite the old index).
> deleteAll() does not remove all TaxonomyWriter files
> ----------------------------------------------------
>
> Key: LUCENE-4884
> URL: https://issues.apache.org/jira/browse/LUCENE-4884
> Project: Lucene - Core
> Issue Type: Bug
> Components: core/index
> Affects Versions: 4.2
> Reporter: Rob Audenaerde
> Priority: Minor
>
> When calling deleteAll() on the IndexWriter, the documents are removed from
> the index and from the taxonomy. When investigating what is happing after the
> deleteAll() on the disk, I see that in the index-directory I end up with just
> two files:
> Index-directory:
> * segments.gen
> * segments_2
> Taxonomy directory:
> * segments.gen
> * segments_h
> BUT also a lot of 'older' files, like
> * _1_Lucene41_0.tip
> * _1_Lucene41_0.tim
> etc.
> It seems these files are never deleted. If you index a lot and call deleteAll
> a lot, it will fill up your disk.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]