By default, Safari searches using Google. You can search using Yahoo!, instead.
Tap the search field (on the right side of the title bar).
Type a word or phrase that describes what you’re looking for, then tap Google.
Tap a link in the list of search results to open a webpage.
From the Home screen choose Settings > Safari > Search Engine, then choose Yahoo!.