zhaih opened a new issue, #11885: URL: https://github.com/apache/lucene/issues/11885
### Description As far as I know there're 2 file deleters inside lucene, one is `IndexFileDeleter` which is package private and only used by `IndexWriter`, another is `ReplicaFileDelter` which is also package private and only used by `ReplicaNode`, and they shares quite a lot of common functionalities but none of them are made available as public use so when I am looking for an option of implemented file deleter the seemingly only one is to fork the `ReplicaFileDeleter` if I don't want to use `nrt` module. (Please suggest if there's a better way!) I would like to: 1. Generalize those two file deleter into one and make it a public class 2. Probably make a directory wrapper or make it an option in StandardDirectoryReader so that we're able to delete expired index files even when we're not in NRT mode. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org