use of org.apache.jackrabbit.oak.plugins.index.lucene.directory.IndexConsistencyChecker.Level in project jackrabbit-oak by apache.
the class LuceneIndexMBeanImpl method getConsistencyCheckResult.
private Result getConsistencyCheckResult(String indexPath, boolean fullCheck) throws IOException {
NodeState root = nodeStore.getRoot();
Level level = fullCheck ? Level.FULL : Level.BLOBS_ONLY;
IndexConsistencyChecker checker = new IndexConsistencyChecker(root, indexPath, workDir);
return checker.check(level);
}
Aggregations