If the spell says that is a magical trap, like Explosive Runes, Fire Trap, Glyph of Warding, Snare, Spike Growth, Spike Stones, Symbol, Teleportation Circle, and so on.
Alarm and Mordenkainen's Faithful Hound are not magical traps. Thus a rogue can't find those spells by making Search checks.