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 Brian Whitman <br...@echonest.com> on 2010/12/04 16:36:50 UTC

autocommit commented out -- what is the default?

Hi, if you comment out the block in solrconfig.xml

<!--
   <autoCommit>
      <maxDocs>10000</maxDocs>
      <maxTime>600000</maxTime>
    </autoCommit>
-->

Does this mean that (a) commits never happen automatically or (b) some
default autocommit is applied?

Re: autocommit commented out -- what is the default?

Posted by Yonik Seeley <yo...@lucidimagination.com>.
On Sat, Dec 4, 2010 at 10:36 AM, Brian Whitman <br...@echonest.com> wrote:
> Hi, if you comment out the block in solrconfig.xml
>
> <!--
>   <autoCommit>
>      <maxDocs>10000</maxDocs>
>      <maxTime>600000</maxTime>
>    </autoCommit>
> -->
>
> Does this mean that (a) commits never happen automatically or (b) some
> default autocommit is applied?

Commented out means they never happen automatically (i.e., no default).
In general commitWithin is a better strategy to use... bulk updates
can use a large value (or no value w/ explicit commit at end) for
better indexing performance, while other updates can use a smaller
value depending on how soon the update needs to be visible.

-Yonik
http://www.lucidimagination.com

RE: autocommit commented out -- what is the default?

Posted by Jonathan Rochkind <ro...@jhu.edu>.
It means they never happen automatically, added documents wont' be committed until you send a commit to solr. 

Jonathan
________________________________________
From: Brian Whitman [brian@echonest.com]
Sent: Saturday, December 04, 2010 10:36 AM
To: solr-user@lucene.apache.org
Subject: autocommit commented out -- what is the default?

Hi, if you comment out the block in solrconfig.xml

<!--
   <autoCommit>
      <maxDocs>10000</maxDocs>
      <maxTime>600000</maxTime>
    </autoCommit>
-->

Does this mean that (a) commits never happen automatically or (b) some
default autocommit is applied?