Package com.flaptor.indextank.search

Examples of com.flaptor.indextank.search.TrafficLimitingSearcher


            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);
View Full Code Here


                DidYouMeanSuggestor dym = new DidYouMeanSuggestor((TermSuggestor)ie.getSuggestor());
                searcher = new DidYouMeanSearcher(searcher, dym);
                ie.setSearcher(searcher);
            }

            searcher = new TrafficLimitingSearcher(searcher);
            Runtime.getRuntime().addShutdownHook(new ShutdownThread(indexer));
            return ie;

        } catch( ParseException exp ) {
            printHelp(getOptions(),exp.getMessage());
View Full Code Here

TOP

Related Classes of com.flaptor.indextank.search.TrafficLimitingSearcher

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.