We found this is relevant when searching for templates. Templates usually include their documentation from /doc subpages. As of now, CirrusSearch finds both the template page as well as the subpage, because they contain the same text.
We tried -intitle:"/", but this doesn't work (probably because the slash is not indexed as a separate term, or not indexed at all).
Something like -intitle:"doc" works, but doesn't scale:
- It will also exclude templates that actually contain this word.
- The naming convention for such subpages is different per wiki, e.g. /Doku in dewiki.
- Templates often contain many more subpages, e.g. forks, tests, and whatnot. We want them all lower in priority.
How to solve this in a way that works for all wikis?