[ 
https://issues.apache.org/jira/browse/SOLR-2999?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13180101#comment-13180101
 ] 

Hoss Man commented on SOLR-2999:
--------------------------------

bq. as there is less need in general to call optimize explicitly anymore, 
buildOnOptimize is not super useful either.

the number of reasons to call optimize hasn't changed: if you know your index 
isn't going to be modified for "a while" then it can be efficient to optimize 
your index down to a single segment.  for people who don't do incremental 
updates, who just build whole indexes from scratch (either manually, or on some 
fixed schedule) optimizing at the end of their index build process can make a 
lot of sense, and features like this to automaticly generate the spell check 
dictionary from the index once it's built and optimized can be useful to people 
in that situation.

Having that said: if it's broken, and has never really worked properly, and 
there is no clean way to make it work, then let's just rip the fucker out and 
tell people "we're sorry, but this feature has never worked properly so it's no 
longer supported, send a request with spellcheck.build=true if/when you want 
the index rebuilt"

(particularly if, as i understand it, IndexBasedSpellChecker is a lame-duck and 
moving forward people should use DirectSolrSpellChecker instead .. making 
FileBasedSpellChecker the only impl where "rebuild" matters, and  buildOnCOmmit 
and builtOnOptimize are both really silly in that case)
                
>  spellcheck-index is rebuilt on commit if optimized
> ---------------------------------------------------
>
>                 Key: SOLR-2999
>                 URL: https://issues.apache.org/jira/browse/SOLR-2999
>             Project: Solr
>          Issue Type: Bug
>          Components: spellchecker
>    Affects Versions: 3.1, 3.2, 3.3, 3.4, 3.5, 4.0
>            Reporter: Oliver Schihin
>            Priority: Minor
>             Fix For: 3.6, 4.0
>
>
> If an empty commit (i.e. without having posted new documents) is issued on an 
> optimized index, the spellcheck-index is rebuilt even though solrconfig 
> defines buildOnOptimize=true, not buildOnCommit=true.
> The problem was discovered on solr 4.0 but seems to happen on 3.x, too. 
> Discussion and further information can be found on the list 
> (http://lucene.472066.n3.nabble.com/spellcheck-index-is-rebuilt-on-commit-tp3626492p3626492.html)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to