search: refactor parse-check-validate pipeline and alerts
Created by: rvantonder
Goals:
- Start implementing the pipeline where we do parse -> check (AST) -> validate (legal search queries). See RFC 75 for reference.
- Each stage in the pipeline promotes errors to friendly alerts that surface on the client side
- Get rid of
didYouMeanQuotedResolver
. UsesearchAlert
to surface the alerts and suggestions for this logic. I removed most of this and migrated into the pipeline for alerts, and then migrated the tests intosearch_test.go
I will do more moving things around but don't want to create rebase hell with the other outstanding PRs.