Yahoo is the legit search engine from a reputed tech company. If you are getting unintentional redirects to search.yahoo.com, it is because a browser hijacker has got an entry on your device.