Page MenuHomePhabricator

`ForceSearchIndex` maintenance script falsly reports indexed pages when indexing jobs are skipped
Open, LowPublic1 Estimated Story PointsBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • set $wgCirrusSearchDisableUpdate to true in your LocalSettings.php file
  • run mw dev mw mwscript CirrusSearch:ForceSearchIndex

What happens?:

  • The script reports that all pages were indexed, even though newly indexed pages will be missing due to the configuration being set

What should have happened instead?:

  • The script does not report on indexed pages if they are not indexed

Event Timeline

pfischer set the point value for this task to 1.Nov 3 2025, 4:19 PM

Change #1201182 had a related patch set uploaded (by Ebernhardson; author: Ebernhardson):

[mediawiki/extensions/CirrusSearch@master] ForceSearchIndex: fail fast when updates disabled

https://gerrit.wikimedia.org/r/1201182

Change #1201182 merged by jenkins-bot:

[mediawiki/extensions/CirrusSearch@master] ForceSearchIndex: fail fast when updates disabled

https://gerrit.wikimedia.org/r/1201182