Last modified: 2014-04-23 13:45:59 UTC
# Better make sure the global setting is enabled $wgUseLuceneSearch = true; if ( $wgUseLuceneSearch ) { wfProfileIn( "$fname-lucene" ); include( "$wmfConfigDir/lucene-common.php" ); wfProfileOut( "$fname-lucene" ); } Lucene config shouldn't be loaded for all wikis. Ideally varying on noncirrus.dblist lucene-labs.php is also useless, pointing at Tampa IPs (and no Lucene servers setup in EQIAD for labs). Removing it, without a plain lucene.php might cause errors (I can't remember how nicely it falls back). But as per above, we shouldn't be loading this code and MWSearch etc anyway where not used etc
(In reply to Sam Reed (reedy) from comment #0) > # Better make sure the global setting is enabled > $wgUseLuceneSearch = true; > if ( $wgUseLuceneSearch ) { > wfProfileIn( "$fname-lucene" ); > include( "$wmfConfigDir/lucene-common.php" ); > wfProfileOut( "$fname-lucene" ); > } > > > Lucene config shouldn't be loaded for all wikis. Ideally varying on > noncirrus.dblist > > Yes it should always be loaded still. It's configured as secondary for the time being until we're 100% cut over and start decom'ing the old stuff. > lucene-labs.php is also useless, pointing at Tampa IPs (and no Lucene > servers setup in EQIAD for labs). Removing it, without a plain lucene.php > might cause errors (I can't remember how nicely it falls back). But as per > above, we shouldn't be loading this code and MWSearch etc anyway where not > used etc I don't disagree here.
+1 to Chad's stuff. I've not done enough digging to know if we still need to load lucene for all the stuff on cirrus but everything else makes sense.
Change 126804 had a related patch set uploaded by Reedy: Only load/enable Lucene on production (not on labs) https://gerrit.wikimedia.org/r/126804
Change 126804 merged by jenkins-bot: Only load/enable Lucene on production (not on labs) https://gerrit.wikimedia.org/r/126804
urgent: this may currently cause fatals at beta see Bug 64283