if (configuration.containsKey("max_search_queue")) {
maxSearchQueueLength = ((Long) configuration.get("max_search_queue")).intValue();
logger.info("Using max_search_queue length: " + maxSearchQueueLength);
}
searcher = new TrafficLimitingSearcher(searcher, maxSearchQueueLength);
Runtime.getRuntime().addShutdownHook(new ShutdownThread(indexer));
new SearcherServer(searcher, ie.getParser(), ie.boostsManager, ie.scorer, basePort + 2).start();
new SuggestorServer(suggestor, basePort + 3).start();
IndexerServer indexerServer = new IndexerServer(ie, indexer, basePort + 1);