Mastodon Advanced Search is Here!
I love to find things and explore and discover. I love the creativeness of users on mastodon and how many engineers, scientists, teachers, authors, makers and creators came on board to share their stories, their creations and their experiences – but it was always hard to discover these people at times and I wished that I could search for them in ways that are familiar on all the other social networks.
With the magnificent work of some open-source creators, we have been able to launch advanced search on Universeodon.com for authenticated users and I'll say – what an improvement it has made.
Not only did it make the web search experience extremely feature rich, but it also fixed the search experience on the official mastodon mobile apps where the people, posts and hashtags are correctly populated when people use search terms!
Search operators are here!
Here are the details on new operators available on https://universeodon.com search for logged in users.
- domain:universeodon.com – find only posts from universeodon.com
- lang:es – find posts written in Spanish (we have translation!)
- lang:de – find posts written in German
- lang:en – find posts written in English
- is:bot – find posts that self-identify as bot
- is:reply – find replies
- has:cw – has content warning
- has:link – has link
- has:media – has media
- has:poll – has poll
- has:tag – has hashtag
- Date search by ES Date operators using before: or after: with a date range
You can also invert these by prefixing them with “-” such as “-has:cw” to filter out anything with content warnings.
Example Mastodon Advanced Searches
Let’s dive into some examples of advanced search operators and show you how to use them and what kind of results you can discover!
Use quotes when you want to match an entire phrase such as “Monday night football”. If you just search for Monday night football without quotes, you will match a much broader range of results, so sometimes targeting with a phrase match inside quotes is what you hope to see.
Has media is an amazing mastodon search operator because it can change your experience and I hope mobile apps pick it up to be able to create media centric carousels in apps. Within the web app though, you can use it to discover images that have keywords discovered via hashtag/term indexing.
With the inverse operator, you can find stuff that is “mastodon centric” and not just linking to other sites by doing “-has: link nasa”.
This shows posts without links – nice to explore and not get led off to other sites, but if you are looking for links/blogs to follow be sure to use has:link!
Interested in discovering posts/polls to see how people have voted on specific topics? has:poll will show all polls based on chronological order, but you can also use keywords to target them such as “has:poll mastodon” to see what polls have been shared with the word mastodon in it.
This one can be fun if you enjoy bots and like to get some comedy relief, automated news/posts or some of the memes and silly services offered. Here we search for “is:bot trek” and see some trek bots sharing too the world!
If you still want to use the old style of search that only searched your posts, boosts, favorites, and bookmarks, you can still do that with the “scope:classic” operator such as:
As you can see, using this operator it just shows your full text search by posts that you have interacted with – so you can still search your “mastodon experience” if you were using this type of search for curation.
We’d love to hear your feedback and if you have suggestions for how mastodon advanced search could be improved, I’m all ears! Send a message to @[email protected] and feel free to register on Universeodon.com and start searching today!
If you’re an instance admin and you’re interested in pulling in a PR to add this to your elastic search capability. Reach out, we’d be happy to help! The PR for Glitch is on GitHub here: https://github.com/VyrCossont/mastodon/pull/8
Official PRs were deleted. This is unfortunate news.