I have autoCommit with openSearcher=false. The only time autocommit
comes into play is when I am rebuilding the entire index from MySQL, 12
million docs per shard.
The autoCommit values within that are high enough (25000 docs and five
minutes) that autoCommit will never be triggered during typical
once-a-minute updates. When those once-a-minute update cycles are
complete, I do an explicit hard commit (which defaults to
openSearcher=true).
I am not yet using soft commits on the new Solr, because I'm only
halfway through the upgrade from 3.5. When that's done, I will look
into soft commits.
I just had an idea for a feature request - I'd like to have two parts to
the autoCommit config - separate time/doc intervals for
openSearcher=false and openSearcher=true. Because soft commits are
usually done with openSearcher=true, I don't think it really makes sense
to have two interval sets there.
Thanks,
Shawn
On 2/9/2013 12:51 PM, Mark Miller wrote:
Nothing will ever open a new searcher unless you explicitly send a commit with
openSearcher=true.
Either change openSearcher on your auto hard commit to true, or start using
soft commit for visibility.
- Mark
On Feb 9, 2013, at 12:44 PM, Alexandre Rafalovitch <arafa...@gmail.com> wrote:
Hello,
I am looking at example in Solr 4.1 distribution. We have:
1) updateLog and _version_ enabled
2) (Hard) autoCommit set to 15 secs (15000) but also openSearcher=false
3) (Soft) autoCommit is commented out (disabled, I guess)
Given that, what is the expected behaviour when somebody adds documents
without committing? Without doing any extra commits, will they ever see
them even if they are committed to disk?
Or is something going to reopen searcher eventually?
I guess if there was a soft commit enabled, that would reopen the searcher
on its schedule even if hard commit did not. But it is not in the example.
Regards,
Alex.
Personal blog: http://blog.outerthoughts.com/
LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch
- Time is the quality of nature that keeps events from happening all at
once. Lately, it doesn't seem to be working. (Anonymous - via GTD book)