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 Deepak Vohra <dv...@yahoo.com.INVALID> on 2015/02/22 23:01:31 UTC

Auto Commit and Hard Commit being differentiated

 In the SOLR-7133 issue hard commit and auto commit are being differentiated, but aren't they the same? Doesn't the following setting apply a hard commit?
<autoCommit> 
 <maxTime>${solr.autoCommit.maxTime:15000} </maxTime> 
 <openSearcher>false</openSearcher> 
 </autoCommit>
https://issues.apache.org/jira/browse/SOLR-7133


Re: Auto Commit and Hard Commit being differentiated

Posted by Erick Erickson <er...@gmail.com>.
No. This has openSearcher set to false, which means that the index
segment will be closed, the docs are not visible for search.

Please take the time, as Shawn suggested on the JIRA, to read this blog.

https://lucidworks.com/blog/understanding-transaction-logs-softcommit-and-commit-in-sorlcloud/

Best,
Erick

On Sun, Feb 22, 2015 at 2:01 PM, Deepak Vohra
<dv...@yahoo.com.invalid> wrote:
>  In the SOLR-7133 issue hard commit and auto commit are being differentiated, but aren't they the same? Doesn't the following setting apply a hard commit?
> <autoCommit>
>  <maxTime>${solr.autoCommit.maxTime:15000} </maxTime>
>  <openSearcher>false</openSearcher>
>  </autoCommit>
> https://issues.apache.org/jira/browse/SOLR-7133
>

Re: Auto Commit and Hard Commit being differentiated

Posted by Shawn Heisey <ap...@elyograg.org>.
On 2/22/2015 3:01 PM, Deepak Vohra wrote:
>  In the SOLR-7133 issue hard commit and auto commit are being differentiated, but aren't they the same? Doesn't the following setting apply a hard commit?
> <autoCommit> 
>  <maxTime>${solr.autoCommit.maxTime:15000} </maxTime> 
>  <openSearcher>false</openSearcher> 
>  </autoCommit>
> https://issues.apache.org/jira/browse/SOLR-7133

The autoCommit settings in Solr control the automatic application of
hard commits on the basis of a certain amount of time passing or a
certain number of documents indexed.  Similarly, the autoSoftCommit
settings control the automatic application of soft commits.

In that sense, you could say that autoCommit and a hard commit are the
same ... except that one executes the other.

Thanks,
Shawn