changed LuceneSearchService.skipChecks() to "getXWikiPreferenceAsInt"