了解不同类型的 SOLR 提交

Understanding the different type of SOLR commits

我想澄清一下我对不同类型的 Solr 提交的理解。如有不妥请指正

So, if we set commit=true parameter to any solr api call with some document data, then it does HARD commit to current document also to the pending documents. doc will updated on the disk within (15000ms=15secs)

So, if we set commit=false parameter to any solr api call with some document data, then it does SOFT commit to current document also to the pending documents. doc will updated on the disk within (180000ms=3mins)

Solr 统计数据 url:https://cwiki.apache.org/confluence/display/solr/Performance+Statistics+Reference

Is it possible to give an example for commit, autoCommit and softCommit

我推荐这篇古老但黄金的文章[1] 和最近的邮件帖子[2]。 此外,您对如何触发硬提交和软提交的区分也不太正确 [3]

[1] https://lucidworks.com/2013/08/23/understanding-transaction-logs-softcommit-and-commit-in-sorlcloud/

[2] http://lucene.472066.n3.nabble.com/High-disk-write-usage-td4344356.html#a4345233

[3] https://cwiki.apache.org/confluence/display/solr/UpdateHandlers+in+SolrConfig#UpdateHandlersinSolrConfig-commitandsoftCommit