return _memoryUsage;
}
IndexSearcherClosable searcher = getIndexReader();
try {
IndexReaderContext topReaderContext = searcher.getTopReaderContext();
return _memoryUsage = RamUsageEstimator.sizeOf(topReaderContext, new ClassNameFilter() {
@Override
public boolean include(String className) {
if (className.startsWith("org.apache.blur.index.ExitableReader")) {
return true;
} else if (className.startsWith("org.apache.blur.")) {