Found it here:
Manual:$wgNamespacesToBeSearchedDefault
Is it possible to make the top right search bar to select File & Main, other than Main only?
This was the solution: