Thanks @Chr1sG . I had one more questions: does hiding databases from search affect API queries? The items that I want to hide the most are written and updated through the graphQL API and so as long as that side is unaffected, I think this might work out for me.
I find the access templates interface to be a really great prototype for how search could be customized developing on the function: