if (blockCacheEnabled) {
Set<String> blockCacheFileTypes = descriptor.getBlockCachingFileTypes();
directory = _blockCacheDirectoryFactory.newDirectory(table, shard, directory, blockCacheFileTypes);
}
BlurIndex index = tableContext.newInstanceBlurIndex(shardContext, directory, _mergeScheduler, _searchExecutor,
_indexCloser, _warmup);
if (_clusterStatus.isReadOnly(true, _cluster, table)) {
index = new BlurIndexReadOnly(index);
}