diff --git a/invenio_records_resources/services/uow.py b/invenio_records_resources/services/uow.py index ae790eb0..80a7f110 100644 --- a/invenio_records_resources/services/uow.py +++ b/invenio_records_resources/services/uow.py @@ -202,6 +202,14 @@ def on_commit(self, uow): self._indexer.delete(self._record, refresh=self._index_refresh) +class RecordIndexDeleteOp(RecordDeleteOp): + """Record index delete operation.""" + + def on_register(self, uow): + """Overwrite method to not commit.""" + pass + + class IndexRefreshOp(Operation): """Search index refresh operation."""