indexServer.setFilterCache(filterCache);
indexServer.setSafeModeDelay(configuration.getLong(BLUR_SHARD_SAFEMODEDELAY, 60000));
indexServer.setWarmup(indexWarmup);
indexServer.init();
final IndexManager indexManager = new IndexManager();
indexManager.setIndexServer(indexServer);
indexManager.setMaxClauseCount(configuration.getInt(BLUR_MAX_CLAUSE_COUNT, 1024));
indexManager.setThreadCount(configuration.getInt(BLUR_INDEXMANAGER_SEARCH_THREAD_COUNT, 32));
indexManager.setFilterCache(filterCache);
indexManager.setClusterStatus(clusterStatus);
indexManager.setFetchCount(configuration.getInt(BLUR_SHARD_FETCHCOUNT, 100));
indexManager.setMaxHeapPerRowFetch(configuration.getInt(BLUR_MAX_HEAP_PER_ROW_FETCH, 10000000));
indexManager.init();
final BlurShardServer shardServer = new BlurShardServer();
shardServer.setIndexServer(indexServer);
shardServer.setIndexManager(indexManager);
shardServer.setZookeeper(zooKeeper);