class LuceneAspspRepository implements AspspRepository {

    @Override
    public void deleteById(String aspspId) {
        IndexWriterConfig indexWriterConfig = new IndexWriterConfig();
        try (IndexWriter indexWriter = new IndexWriter(directory, indexWriterConfig)) {
            indexWriter.deleteDocuments(new Term(ID_FIELD_NAME, aspspId));
        } catch (IOException e) {
            throw new RegistryIOException(e);
        }
    }

    public  LuceneAspspRepository(Directory directory);

}