On Mon, Dec 13, 2010 at 9:27 PM, Jonathan Rochkind <rochk...@jhu.edu> wrote: > Yonik, how will maxWarmingSearchers in this scenario effect replication? If > a slave is pulling down new indexes so quickly that the warming searchers > would ordinarily pile up, but maxWarmingSearchers is set to 1.... what > happens?
Like any other commits, this will limit the number of searchers warming in the background to 1. If a commit is called, and that tries to open a new searcher while another is already warming, it will fail. The next commit that does succeed will have all the updates though. Today, this maxWarmingSearchers check is done after the writer has closed and before a new searcher is opened... so calling commit too often won't affect searching, but it will currently affect indexing speed (since the IndexWriter is constantly being closed/flushed). -Yonik http://www.lucidimagination.com