During migration of very old installs, this script no longer runs properly since at HEAD it can't index against older schemas.
Since it's pretty fluff, just toss it. Installs can run bin/search index --type PROJ after finishing migrations to achieve the same effect, if necessary.