Examples of processDocuments()


Examples of com.ikanow.infinit.e.processing.generic.GenericProcessingController.processDocuments()

    docToUpdate1.setId(null); // (should be unnecessary, _id shouldn't have been set)
    docToUpdate2.setId(null);
    docToUpdate2.setUpdateId(new ObjectId("5277fec1256f16a6d3def633")); // (Doesn't matter what it is, just check the diagnostic from StoreAndIndexManager.removeFromSearch matches)
    toUpdate_feed.add(docToUpdate1);
    toUpdate_feed.add(docToUpdate2);
    pxControl_feed.processDocuments(InfiniteEnums.FEEDS, toAdd_feed, toUpdate_feed, toDelete_feed); // (add, update, delete)
    // 2.1.3] Deleting some docs, adding others
//    toDelete_feed.add(toAdd_feed.pop());
//    pxControl_feed.processDocuments(InfiniteEnums.FEEDS, toAdd_feed, toUpdate_feed, toDelete_feed); // (add, update, delete)
    // 2.1.4] More logic:
//    DocumentPojo doc1 = null;
View Full Code Here

Examples of com.ikanow.infinit.e.processing.generic.GenericProcessingController.processDocuments()

        hc.harvestSource(_sourceToProcess, toAdd, toUpdate, toRemove);
          // (toAdd includes toUpdate)
       
        if (HarvestEnum.error != _sourceToProcess.getHarvestStatus().getHarvest_status()) {
          gpc = _genericController.get();
          gpc.processDocuments(SourceUtils.getHarvestType(_sourceToProcess), toAdd, toUpdate, toRemove, _sourceToProcess);
            // (toRemove includes toUpdate)
         
          SourceUtils.updateHarvestStatus(_sourceToProcess, HarvestEnum.success, toAdd, toRemove.size(), null);
            // (note also releases the "in_progress" lock)
            // (note also prunes sources based on "maxDocs")
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.