A lot of users love the wiki tab in Microsoft Teams, until they find that there is no search feature.
In this blog post I’ll share with you not a baked solution, but a workaround which was shared on the Microsoft Community forums .
This workaround is a bit hacky, but it’ll allow you to do a full-text search through Microsoft Teams built-in wiki. At the end of this post, you'll be able to perform a full-text search with highlighting through your wiki content right inside Microsoft Teams.
We’ll use the fact that the Microsoft Teams built-in wiki stores all of its data in a document library that’s connected to the SharePoint team site of the team that created it. All wiki pages are stored as files with .mht extensions inside a folder named after the channel in the “Teams Wiki Data” document library on the team site.
So, to do a full-text search inside a built-in wiki, we’ll scope SharePoint full-text search to the “Teams Wiki Data” folder and *.mth extensions. Then we’ll add a SharePoint search view as a web tab to Microsoft Teams.
We’re done with theory, now let’s jump into detailed step-by-step instructions.
Find a link to the SharePoint site of your team. If you already have that link, you can skip this step. Otherwise, the easiest way to find where exactly your wiki data is stored inside SharePoint, is to get that data from a Microsoft Teams search.
Open the “Teams Wiki Data” folder in the SharePoint, and switch your view to the “Classic SharePoint”.
On the top right corner of the page, find a “Search this site” input. Type “*.mht” (w/o quotes) and press enter. Now you should see the search results with your wiki pages. Copy the URL of that page and use it to create a new web tab inside Microsoft Teams.
Woo hoo! You can now perform a full-text search through all the wiki content that you have. Do not remove *.mht from the query, it’ll scope the search to only wiki pages. The only big issue with this solution is that you can’t open the result wiki page right from the search view. You should manually find the exact page, but you can grab a wiki-channel name from the link.
As stated at the beginning, this method is not a baked solution but a workaround. If you need to have a solid solution, take a look at PerfectWiki. Perfect Wiki is a feature rich wiki for Microsoft Teams, with full-text search, export/import functions and much more.
Also, you can vote on Microsoft Feedback Portal to implement this feature inside the built-in wiki, or try to adopt OneNote as a wiki solution.