When executing a search in the main dokuwiki site it displays the namespace a page is in, but I can't figure out how it is configured to do this - does anyone know?
Example search: https://www.dokuwiki.org/start?do=search&id=test
There's nothing to do. It's the default behaviour. Did you maybe change the useheadings configuration? Then search results will show the page's first header instead of the page name (and namespace).