I have the following code for a deletion (ES 7.13):
final DeleteByQueryRequest delQreq = new DeleteByQueryRequest(targetIndex); final ESQueryFilter esq = getFilters(null); final QueryBuilder qb = ...; delQreq.setConflicts("proceed"); delQreq.setQuery(qb); final BulkByScrollResponse bulkResponse = getClient().deleteByQuery(delQreq, RequestOptions.DEFAULT);
I am trying to figure out how delay the return from that last call until the index is updated, that is to do the same as I can for indexing a document - e.g.
While the documents seem to suggest that it's possible for deleteByQuery I can't find any examples or methods.
How can I accomplish this?