Commit b9a4073d authored by Matija Obreza's avatar Matija Obreza

Delete from ES index

parent 29e31b83
......@@ -124,6 +124,12 @@ public class ElasticUpdaterAspect {
Object res = joinPoint.proceed();
// This will not trigger if an exception occurs
elasticUpdater.archive(deletedAccessions);
// Delete all
for (AccessionDetails accn : deletedAccessions) {
elasticUpdater.remove(Accession.class, accn.getId());
}
return res;
} finally {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment