It would be a better practice to use module_implements() as opposed to module_list() and checking which modules implement hook_luceneapi_index(). module_implements() takes some more things into consideration and should be used in favor of the current implementation.
Comments
Comment #1
cpliakas commentedCompleted in commit #298642.