[ https://issues.apache.org/jira/browse/LUCENE-4884?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13614281#comment-13614281 ]
Michael McCandless commented on LUCENE-4884: -------------------------------------------- bq. I expect the deleteAll() on the IndexWriter would take care of cleaning the TaxonomyWriter, Hmm that won't happen: your primary IndexWriter, and the TaxonomyWriter, are independent of one another (they don't know about each other, at least currently). DirectoryTaxonomyWriter does have a private IndexWriter that it uses ... but it doesn't expose this to you. bq. just as addDocument() needs only to be called on the IndexWriter and takes care of filling the Facets in the TaxonomyWriter. Actually, it's FacetFields.addFields that takes care of interacting with the TaxonomyWriter (adding new label/ords to it). I think for this issue we should just add DirectoryTaxonomyWriter.deleteAll. But seems like lowish priority since the workaround should work ... > 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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org