Narrative:

With first officer flying; shortly after takeoff we lost power on the right engine and then gained power. Engine was surging with no compressor stalls. We brought right engine to idle and declared an emergency. We returned to a landing visually.

Google
 

Original NASA ASRS Text

Title: A319 flight crew experiences engine surging shortly after takeoff and returns to the departure airport with the engine at idle.

Narrative: With First Officer flying; shortly after takeoff we lost power on the right engine and then gained power. Engine was surging with no compressor stalls. We brought right engine to idle and declared an Emergency. We returned to a landing visually.

Data retrieved from NASA's ASRS site as of July 2013 and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.