I'm trying to figure out an elegant solution to this problem, but haven't had any great ideas. (This question is similar but doesn't really answer my issue)
We allow our users to search different types of data from the same input box, but only searching one set of data at a time. (e.g. searching for cars or people but not both at the same time).
Currently we have a search box with a dropdown arrow that looks something like this:
Clicking the arrow drops down a list letting them select a different category to search.
Is there a better/nicer way to implement this sort of functionality?
Edit to clarify: I really do like the idea of a single search box without forcing the user to choose a category. However, technical limitations mean that this design is not feasible at this time, so Ades answer was the best solution for me.