I think there is a #mastodonbug - if I search for a hashtag, it often doesn't find it, but it does find tags that extend it. For example, if I search for '#foo' I get ''#foo2', '#foobar' and others, but not '#foo' itself. But it works when I just edit the URL.
#foobar #foo2 #foo #mastodonbug