You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Giovanni Fernandez-Kincade <gf...@capitaliq.com> on 2010/04/09 02:30:03 UTC
autocommiting with expungeDeletes=true
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.
Re: autocommiting with expungeDeletes=true
Posted by Koji Sekiguchi <ko...@r.email.ne.jp>.
Giovanni Fernandez-Kincade wrote:
> Is there any way to configure autocommit to expungeDeletes? Looking at the code it seems to be that there isn't...
>
>
Hi Gio.,
I don't think Solr supports it. Please open an issue.
Koji
--
http://www.rondhuit.com/en/