I'm not sure this should be here. Seems to me like search app logic.
Regardless, it doesn't take into consideration the same query with a different `type`.