On Wed, Apr 11, 2012 at 12:58 PM, vybe3142 <vybe3...@gmail.com> wrote:
> This morning, I've been looking at the autocommit functionality as defined
> in solrconfig.xml. By default, it appears that it should kick in 15 seconds
> after a new document has been added. I do see this event triggered via the
> SOLR/tomcat logs, but can't see the docs/terms  in the index or query them.
> I haven't bothered with the softcommit yet as I'd like to first understand
> what the issue is wrt the autocommit.

The 15 second hard autocommit is not for the purpose of update
visibility, but for durability (hence the hard autocommit uses
openSearcher=false).  It simply makes sure that recent changes are
flushed to disk.

If you want to automatically see changes after some period of time,
use an additional soft autocommit for that (and leave the hard
autocommit exactly as configured),
or use commitWithin when you do an update... that's more flexible and
allows you to specify latency on a per-update basis.

-Yonik
lucenerevolution.com - Lucene/Solr Open Source Search Conference.
Boston May 7-10

Reply via email to