Package com.flaptor.hounder.indexer

Examples of com.flaptor.hounder.indexer.RmiIndexerStub.index()


            for (int i=0; i < Integer.parseInt(args[1]); i++) {
                //String argstr[] = {"\'" + dg.getDocument() + "\'"};
                //System.out.println(dg.getDocument() + "\n\n");
                String doc = dg.getDocument();
                IndexerReturnCode result = indexerStub.index(doc);
                while (result == IndexerReturnCode.RETRY_QUEUE_FULL) {
                    System.out.println("queue full " + new Date());
                    try {
                        Thread.sleep(1000);
                    }
View Full Code Here


                        Thread.sleep(1000);
                    }
                    catch (Exception e) {
                        //ignore
                    }
                    result = indexerStub.index(doc);
                }
                if (i % 1000 == 0) {
                    System.out.println (i + " documents posted");
                    System.out.println(new Date());
                    //System.out.println(doc);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.