The issue was fixed by preventing the search from matching parents, as explained by Marius Dumitru Florea in the comment before me.
However, this fix makes it even harder to select a specific page when many pages match, XWIKI-16934, as it would not be possible to make alternate searches anymore by space name. As issue XWIKI-16934 mentions, we need a more fuzzy search, that can search both name and title and space, and multiple words that are not consecutive, etc.
This message was sent by Atlassian Jira (v9.3.0#930000-sha1:287aeb6)
If image attachments aren't displayed, see this article.