QueryHandler qh = ri.getSearchManager(workspaceName).getQueryHandler();
if (!(qh instanceof SearchIndex)) {
throw new NotExecutableException("No search index");
}
SearchIndex si = (SearchIndex) qh;
return si.runConsistencyCheck();
}
/**
* Runs a consistency check on the versioning store used by the specified session.
*