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
本站文章为和通数据库网友分享或者投稿,欢迎任何形式的转载,但请务必注明出处.
同时文章内容如有侵犯了您的权益,请联系QQ:970679559,我们会在尽快处理。