As suggested on the talk page in the URL field. Could be set with a variable, $wgSearchOnlyContentNamespaces, which would default to false, of course.
On the other hand, the default doesn't count Project: as a content namespace, and people might want to search it without changing that, so maybe it would make more sense not to couple this with $wgContentNamespaces, and instead make it as flexible as possible with a new variable, $wgSearchableNamespaces, which would default to including all namespaces. This might not work too well with extra namespaces, though, so maybe it would be better to have $wgUnsearchableNamespaces.
Version: 1.16.x
Severity: minor
URL: http://www.mediawiki.org/w/index.php?title=Manual_talk:%24wgContentNamespaces&oldid=203869#Namespaces_without_real_content_in_search