refactor: move search type into search query package
Created by: rvantonder
Just moving SearchType
into the internal/search/query
package. This is towards implementing #7293, but I actually want this to set up an architecture where query validation is more general and systematic. Follow on PRs will make this clearer.