As is often the case, the streams repository provides a completely different vision of how to implement search in the fediverse and how permissions actually work in a decentralised/federated infrastructure.
In short, I can't stop you from searching for anything in the privacy of your own home. It's
physically impossible. I can only stop you from searching for something on my server.
https://fediversity.site/help/develop/en/Federated_Search