欢迎投稿

今日深度:

Solr AutoSoftCommit,

Solr AutoSoftCommit,


什么是SoftCommit?

请戳Solr Guide:Near Real Time Searching(NRT) https://cwiki.apache.org/confluence/display/solr/Near+Real+Time+Searching 。

里面讲了AutoCommit和AutoSoftCommit如何进行配置。配置建议:A common configuration is to do a hard autocommit every 1-10 minutes and a autosoftcommit every second. 


SoftCommit Tips:

1.Solr的softCommit是Write-ahead Logging的,所以不必担心softCommit的数据会丢失。Log数据就在$solrHome/collection/data/tlog/下。

2.solr关闭时会进行一次hard commit,所以不必担心关闭(或Kill process)时softCommit数据会丢失。当然kill -9除外~

3.测试发现autoSoftCommit的maxDocs配置是针对每个独立Core的。



当前solr版本:solr4.4

www.htsjk.Com true http://www.htsjk.com/solr/34022.html NewsArticle Solr AutoSoftCommit, 什么是SoftCommit? 请戳Solr Guide:Near Real Time Searching(NRT) https://cwiki.apache.org/confluence/display/solr/Near+Real+Time+Searching 。 里面讲了AutoCommit和AutoSoftCommit如何进行配置。配置建...
相关文章
    暂无相关文章
评论暂时关闭