lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Willnauer <simon.willna...@googlemail.com>
Subject Re: spellcheck-index is rebuilt on commit
Date Tue, 03 Jan 2012 08:42:10 GMT
On Tue, Jan 3, 2012 at 9:12 AM, OliverS <oliver.schihin@unibas.ch> wrote:
> Hi all
>
> Thanks a lot, and it seems to be a bug, but not of 4.0 only. You are right,
> I was doing a commit on an optimized index without adding any new docs (in
> fact, I did this for replication on the master). I will open a ticket as
> soon as I fully understand what's going on. I have difficulties
> understanding Simons answer:
> * building the spellcheck-index is triggered by a new searcher?
> * why would this not happen after post/commit?

a commit in solr forces a new searcher to be opened. this new searcher
is passed to the spellcheckers listener which reopens / rebuilds the
spellcheck index. Yet, if you way rebuildOnOptimize=true it only
checks if the index has a single segment. since you didn't change
anything since this was last checked it still has one segment. The
problem is that the listener doesn't safe any state or the version of
the index since it was last called and assumes the index was just
optimized.

simon
>
> Thanks
> Oliver
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/spellcheck-index-is-rebuilt-on-commit-tp3626492p3628423.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message