Closed (fixed)
Project:
Search API Solr
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Feb 2016 at 13:37 UTC
Updated:
31 Dec 2016 at 21:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mian3010 commentedAttached intermediate solution. The proper solution would possibly be adding a configuration on the server, for whether or not committing should be enabled.
Comment #3
drunken monkeyHaving a configuration setting for this (probably even "always"/"auto"/"never") would probably be the proper solution, but I guess this is better than nothing. However, for me to commit this, it would definitely need some documentation in
README.txtand proper handling at module uninstallation. I'd also call the variablesearch_api_solr_commits_disabledand invert the logic. Finally, it's "altogether", with one L.But apart from that, I'd commit this. Thanks a lot for posting it!
Comment #4
jts86 commentedI've added a configuration option for commits and updated the approach of the prior patch to use it. Hope it helps.
Comment #5
drunken monkeyThis would lead to warnings for existing (unedited) servers – you have to surround the check with
!empty().Also, I don't think speaking of "commit messages" is very clean. This makes me think of Git (or VCS in general) and wonder what this has to do with Solr. "Disable explicit committing" would be clearer, I think. Or maybe "commit commands".
Other than that this looks good, thanks!
Comment #6
jts86 commentedYeah, you're right. Fixed!
Comment #8
drunken monkeyLooks great, thanks!
Committed.