@Override
    public void deleteDocument(Iterable<String> haloDocIds) {
        var terms = new LinkedList<BytesRef>();
        haloDocIds.forEach(haloDocId -> terms.add(new BytesRef(haloDocId)));
        var deleteQuery = new TermInSetQuery("id", terms);
        try {
            this.indexWriter.deleteDocuments(deleteQuery);
            this.searcherManager.maybeRefreshBlocking();
            this.indexWriter.commit();
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
@Test
    void shouldDeleteDocument() throws IOException {
        this.searchEngine.deleteDocument(List.of("fake-id"));
        verify(this.indexWriter).deleteDocuments(any(Query.class));
        verify(this.searcherManager).maybeRefreshBlocking();
        verify(this.indexWriter).commit();
    }