Solr AutoSoftCommit

来源:互联网 发布:手机中文编程 编辑:程序博客网 时间:2024/06/05 05:56

什么是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