gpt4 book ai didi

solr - 了解不同类型的 SOLR 提交

转载 作者:行者123 更新时间:2023-12-02 01:10:52 27 4
gpt4 key购买 nike

我想阐明我对不同类型的 Solr 提交的理解。如果我错了,请纠正我。

  • commits:所有类型的提交,包括SOFTHARD 提交。

  • autoCommit:对磁盘执行HARD 提交并确保所有 autoSoftCommit 提交都写入磁盘并提交任何其他未决文档。

  • autoSoftCommit - 执行SOFT 提交。在 autoSoftCommit 之后,如果 SOLR 服务器出现故障,autoSoftCommit 文档将丢失。
  • autocommit maxTime:两次自动提交执行之间的最长时间(在我的例子中设置为15000s)
  • soft autocommit maxTime:两次 SOFT 自动提交之间“添加”的最大文档数。 (在我的例子中,它被设置为 180000s)

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

enter image description here

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

最佳答案

关于solr - 了解不同类型的 SOLR 提交,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45234145/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com