Mastodon’s Next Major Release Enables Full-Text Search
A few flagship instances already have it.
After months of development and testing, some of the biggest Mastodon instances are adopting the new beta of the 4.2 release. Among a vast amount of changes is full-text search, a feature that has been fiercely debated by proponents and adherents alike. While platforms such as Pleroma, Akkoma, Firefish, and MissKey have enjoyed this benefit for a long time, Mastodon’s adoption is a big deal for the network.
Historically speaking, Mastodon has only offered a very limited version of search. Initially, users could only search for other users, or check posts containing hashtags. Over time, Mastodon’s search hub has evolved to include news articles and trending hashtags. For a few years, the platform has also offered the ability for users to look for their own posts using an ElasticSearch backend.
If text search is ever implemented, it should be limited to your home timeline/mentions only. Lack of full-text search on general content is intentional, due to negative social dynamics of it in other networks
Some of the project lead’s long-held convictions about these kinds of features have begun to change. Some users are still against having full-text search available, due to how it can be used for harassment campaigns by trolls. For now, the solution is largely a band-aid: if you want to keep your posts away from the index, don’t opt in.
How does the new search work?
Mastodon servers that have ElasticSearch enabled will now make all public posts that it knows about available to search. That means that users can not only search their local instances, but also search across the network to find things. If a user opted into being searchable, and your instance knows about their posts, you can search for them.
How do I use it?
This new feature brings in a handful of new operators, giving users more detailed choices.
- has: media, poll, or embed
- is: reply or sensitive
- language: ISO language code
- from: user
- from: me
- before: specific date
- after: specific date
How can I opt in?
If you would like for your own posts to be reachable by the search system, all you have to do is go to Preferences > Public Profile > Privacy and Reach. Once there, check the box that says Include Public Posts in Search Engines.
Please note: users do not need to opt in to the search to look through their own posts. That functionality is available to users regardless.