protected Result check() throws Exception {
GeonetContext gc = (GeonetContext) context.getHandlerContext(Geonet.CONTEXT_NAME);
SearchManager searchMan = gc.getBean(SearchManager.class);
IndexAndTaxonomy indexAndTaxonomy= searchMan.getNewIndexReader(null);
GeonetworkMultiReader reader = indexAndTaxonomy.indexReader;
try {
TermQuery indexError = new TermQuery(new Term("_indexingError", "1"));
TopDocs hits = new IndexSearcher(reader).search(indexError, 1);
if (hits.totalHits > 0) {