Closed (cannot reproduce)
Project:
Apache Solr Search
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Apr 2011 at 16:12 UTC
Updated:
2 Jul 2012 at 14:48 UTC
Jump to comment: Most recent file
Comments
Comment #1
pwolanin commentedComment #2
pwolanin commentedI think the form submit handler should skip the API call if the box is not checked, rather than adding a variable check in the API function.
Comment #3
craig_ commentedif we go that route, it should also be caught here, as well (also apachesolr_search.module)
function apachesolr_search_form_apachesolr_delete_index_form_alter(&$form, $form_state) {
$form['submit']['#submit'][] = 'apachesolr_search_build_spellcheck';
}
Comment #4
pwolanin commentedoh, if we are using that functuin directly as the submit handler maybe your patch is the easiest fix.
Comment #5
pwolanin commentedSo - can you tell me what the problem is here? Are you having performance issues?
When deleting the index it does seems like the index should be rebuilt if the index is empty?
Comment #6
pwolanin commentedHere's a patch similar to yours, but correct default and better placement outside the try{}
Comment #7
craig_ commentedthe issue is performance-related, in that either the system is running unneeded jobs during cron runs (to be honest, i'm not sure which cron job is calling that function, but it is getting rebuilt every day, even when disabled ... and in read-only mode), and that the admin is paying the rebuild time cost, when trying to disable the spellchecker. those are the two scenarios i am aware of
i'm ok with the default either way, as long as it can be explicitly set in the apachesolr admin screen, which it currently can. also, moving it outside the try makes sense
Comment #8
nick_vhClosing in favor of 6.x-3.x and because nobody seems to care (time of last response). If you think this is still an issue in 6.x-3.x, feel free to re-open!