Yes, with AF447, they immediately knew approximately where it went down, and aircraft spotted floating debris within the first couple of days. Ships recovered the debris and positively identified it as being from that particular plane a few days later.
What took two years was finding the fuselage and the majority of the wreckage, including the black boxes, on the floor of the ocean.
In the MH370 case, there has been no floating debris yet identified. If and when that does happen, the debris will have been adrift for a much longer time. The distance between the floating debris and anything that might be on the ocean floor may be considerably larger than it was in the AF447 case. So far, it's not looking like the MH370 search will be any easier or quicker than the AF447 search was.
Finding anything will be helpful, but it's possible that floating debris will still leave most of the serious questions unanswered. The FDR and CVR would be very valuable in figuring out what was going through the pilots' minds when the transponder was shut off and the course was changed, and it should go a long way toward ruling out either hijacking, pilot suicide, or mechanical/electrical trouble of some sort. But those recorders are very unlikely to be floating or easy to recover quickly.