class LuceneAspspRepository implements AspspRepository {

    @Override
    public void deleteAll() {
        IndexWriterConfig indexWriterConfig = new IndexWriterConfig();
        try (IndexWriter indexWriter = new IndexWriter(directory, indexWriterConfig)) {
            indexWriter.deleteAll();
        } catch (IOException e) {
            throw new RegistryIOException(e);
        }
    }

    public  LuceneAspspRepository(Directory directory);

}