@fbievan It's under Settings > Public profile > Privacy and reach > Search
They've changed the wording around it since I set it. I'm pretty sure it used to just say about allowing your content (in general) to be indexed, and in practice on your own Mastodon instance I believe that is what it does. None of my posts show up from my own instance in engines like Google.
But they do on other instances.