您的位置:首页 > 其它

Solr AutoSoftCommit

2013-11-04 21:16 429 查看

什么是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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息