And on the "input" side, one thing that used to improve google search result was to write like you are talking to a robot. "Ruby on rails http header set function". As opposed to "how do I set header in ruby?" Then you have to page through results until you find something specific to rails.
Now, the second example is the only thing that works. Power users have lost their powers with AI overview.
I still use the first strategy (with DDG) and it still works great. But for technologies I work often, I just take a bit of time to familiarize with the site's structure and maybe bookmarks a few pages.