Yeah, the only code path I can see this happening on is:
newSearcher.getIndexReader().getSequentialSubReaders().length == 1
So if you keep issuing commits on an optimized index, it will open a new Searcher and keep
rebuilding the index.
Really, this should probably *only* trigger on an optimize call - not on every commit against
a single segment index.
- Mark Miller
lucidimagination.com
On Jan 2, 2012, at 4:22 PM, Simon Willnauer wrote:
> hey, is it possible that during those commits nothing has changed in
> the index? I mean are you committing nevertheless there are changes?
> if so this could happen since the spellchecker gets a new even that
> you did a commit but the index didn't really change. The spellchecker
> really only checks if there is a single segment in the index and
> rebuilds the index.
>
> if this is the case, I think this is a bug... can you open a jira ticket?
>
> simon
>
> On Mon, Jan 2, 2012 at 8:36 PM, OliverS <oliver.schihin@unibas.ch> wrote:
>> Hi
>>
>> Looks like they strip the <raw>-Text for the list. Whole message here:
>> http://lucene.472066.n3.nabble.com/spellcheck-index-is-rebuilt-on-commit-td3626492.html
>>
>> Yes, I did restart tomcat.
>>
>> Thanks
>> Oliver
>>
>> Zitat von "Jan Høydahl / Cominvent [via Lucene]"
>> <ml-node+s472066n3627105h61@n3.nabble.com>:
>>
>>>
>>>
>>> Olivier, your log snippets did not make it into the mail. I think
>>> the mailing list strips attachments.
>>>
>>> Did you reload core or restart Jetty/Tomcat after your changes?
>>>
>>> --
>>> Jan Høydahl, search solution architect
>>> Cominvent AS - www.cominvent.com
>>> Solr Training - www.solrtraining.com
>>>
>>> On 2. jan. 2012, at 13:48, Oliver Schihin wrote:
>>>
>>>> Hello
>>>>
>>>> We are working with solr 4.0, the spellchecker used is still the classic
>>>> IndexBasedSpellChecker. Now every time I do a commit, it rebuilds the
>>>> spellchecker index, even though I clearly state a build on optimize. The
>>>> configuration in solrconfig looks like this:
>>>>
>>>>
>>>> I call commits testwise through curl
>>>>
>>>>
>>>> This is from the log:
>>>>
>>>>
>>>> Where am I wrong, any suggestions? Thanks for help
>>>> Oliver
>>>>
>>>> --
>>>> View this message in context:
>>>> http://lucene.472066.n3.nabble.com/spellcheck-index-is-rebuilt-on-commit-tp3626492p3626492.html
>>>> Sent from the Solr - User mailing list archive at Nabble.com.
>>>
>>>
>>>
>>> _______________________________________________
>>> If you reply to this email, your message will be added to the
>>> discussion below:
>>> http://lucene.472066.n3.nabble.com/spellcheck-index-is-rebuilt-on-commit-tp3626492p3627105.html
>>>
>>> To unsubscribe from spellcheck-index is rebuilt on commit, visit
>>> http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3626492&code=b2xpdmVyLnNjaGloaW5AdW5pYmFzLmNofDM2MjY0OTJ8LTE5ODUwMDUwMTY=
>>
>>
>>
>> ----------------------------------------------------------------
>> This message was sent using IMP, the Internet Messaging Program.
>>
>>
>>
>>
>> --
>> View this message in context: http://lucene.472066.n3.nabble.com/spellcheck-index-is-rebuilt-on-commit-tp3626492p3627383.html
>> Sent from the Solr - User mailing list archive at Nabble.com.
|