In 3e Search was the skill you used for traps, and Spot/Listen was mostly for creatures. 5e made their version of "Search" (Investigation) of minimal usefulness and bundled most of the important trap stuff into their version of Spot/Listen (Perception). Some people have said forget that and just put traps and secret doors back into Investigation. Even some of the newer adventures have followed suit.
During the playtest there was more usage of Investigation, but their explanations were a little tricky to get for some, so they just put it all (mostly) under Perception. They could and should have just directly said "Investigation is what you use for things like traps, secret doors, and other intentionally built hidden features. Perception is what you use for creatures and natural environmental features." Or somethingthing like that.