Is there any way to configure autocommit to expungeDeletes? Looking at the code 
it seems to be that there isn't...

>From org.apache.solr.update.DirectUpdateHandler2:
public synchronized void run() {
      long started = System.currentTimeMillis();
      try {
        CommitUpdateCommand command = new CommitUpdateCommand( false );
        command.waitFlush = true;
        command.waitSearcher = true;
        //no need for command.maxOptimizeSegments = 1;  since it is not 
optimizing
        commit( command );
        autoCommitCount++;
      }
      catch (Exception e) {
        log.error( "auto commit error..." );
        e.printStackTrace();
      }
      finally {
        pending = null;
      }

      // check if docs have been submitted since the commit started
      if( lastAddedTime > started ) {
        if( docsUpperBound > 0 && docsSinceCommit > docsUpperBound ) {
          pending = scheduler.schedule( this, 100, TimeUnit.MILLISECONDS );
        }
        else if( timeUpperBound > 0 ) {
          pending = scheduler.schedule( this, timeUpperBound, 
TimeUnit.MILLISECONDS );
        }
      }


Am I looking in the right spot? Are there any plans to change this? I feel like 
autcommit should always expungeDeletes.

Thanks,
Gio.

Reply via email to