Package org.apache.solr.update

Examples of org.apache.solr.update.DirectUpdateHandler2$CommitTracker


    cmd.waitFlush = true;
    cmd.waitSearcher = true;
    solrCore.getUpdateHandler().commit(cmd);
    if (solrCore.getUpdateHandler() instanceof DirectUpdateHandler2) {
      LOG.info("Force open index writer to make sure older index files get deleted");
      DirectUpdateHandler2 handler = (DirectUpdateHandler2) solrCore.getUpdateHandler();
      handler.forceOpenWriter();
      replicationHandler.refreshCommitpoint();
    } else  {
      LOG.warn("The update handler is not an instance or sub-class of DirectUpdateHandler2. " +
              "ReplicationHandler may not be able to cleanup un-used index files.");
    }
View Full Code Here


    cmd.waitFlush = true;
    cmd.waitSearcher = true;
    solrCore.getUpdateHandler().commit(cmd);
    if (solrCore.getUpdateHandler() instanceof DirectUpdateHandler2) {
      LOG.info("Force open index writer to make sure older index files get deleted");
      DirectUpdateHandler2 handler = (DirectUpdateHandler2) solrCore.getUpdateHandler();
      handler.forceOpenWriter();
      replicationHandler.refreshCommitpoint();
    } else  {
      LOG.warn("The update handler is not an instance or sub-class of DirectUpdateHandler2. " +
              "ReplicationHandler may not be able to cleanup un-used index files.");
    }
View Full Code Here

TOP

Related Classes of org.apache.solr.update.DirectUpdateHandler2$CommitTracker

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.