How to keep /search out of Google while still using SearchAction
- Leave search robots as
noindex, follow. - Keep the GET form
name=q. - WebSite JSON-LD already points at
/search?q={search_term_string}. - Do not sitemap result pages.
- Do not canonicalize search to the homepage.

Campus note: we added the course entity after step 2. Worked.