I noticed the following code in CirrusSearch:
$term = trim( $term );
// No searching for nothing! That takes forever!
if ( !$term ) {
return null;
}In PHP, '0' converts to false. That means that although https://en.wikipedia.org/w/index.php?search=1&title=Special%3ASearch&fulltext=1 returns plenty of results, https://en.wikipedia.org/w/index.php?search=0&title=Special%3ASearch&fulltext=1 returns none.