了解不同类型的SOLR提交 [英] Understanding the different type of SOLR commits

查看:109
本文介绍了了解不同类型的SOLR提交的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想澄清一下我对不同类型的Solr提交的理解.如果我错了,请纠正我.

I want to clarify my understanding about different type of Solr commits. Please correct me if I am wrong.

  • commits:所有类型的提交,包括 SOFT HARD 提交.

  • commits: all type of commits including SOFT and HARD commits.

autoCommit:对磁盘执行 HARD ,并确保所有autoSoftCommit提交均已写入磁盘并提交任何其他未决文档.

autoCommit: does a HARD commit to the disk and make sure all the autoSoftCommit commits are written to disk and commits any other pending documents.

因此,如果我们将commit = true参数设置为任何带有某些参数的solr api调用 文档数据,然后将其提交到当前文档 待处理的文件. doc将在磁盘上更新 (15000ms = 15secs)

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)

因此,如果我们将带有任何一些solr api调用的commit = false参数设置为 文档数据,然后它也将SOFT提交到当前文档 待处理的文件. doc将在磁盘上更新 (180000ms = 3mins)

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 Stats网址: https://cwiki.apache.org/confluence/display/solr/Performance + Statistics + Reference

Solr Stats url : https://cwiki.apache.org/confluence/display/solr/Performance+Statistics+Reference

是否可以举一个有关commit,autoCommit和 softCommit

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

推荐答案

我推荐这篇老而又金色的文章[1]和最近的邮件主题[2]. 另外,您在触发硬提交和软提交方面的区别不太正确[3]

I recommend this Old but Gold article[1] and this recent mail thread[2]. Also your distinction in how you can trigger Hard and Soft commit is not quite right [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

这篇关于了解不同类型的SOLR提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆