Olly Lee opened the scoring after just 20 seconds with a back post finish and doubled his own and his team’s tally a minute later with a shot from an Elliot Frear corner.
East Fife hit back through Jack Hamilton to reduce the deficit before half-time although Andy Irvine restored Hearts’ two-goal advantage with a long-range stunner midway through the second half.
The home side hit back immediately though through Ryan Wallace and the Robbie Nielson’s men had to hang on for victory in the closing stages. Here's how the Hearts players rated on the night:
Player ratings scale - 10: One of the best performances you've seen. 9: Outstanding. 8: Very good. 7: Good. 6: Average. 5: Poor, 4: Very poor. 3: A terrible day at the office. 2: Abysmal. 1: One of the worst performances you've seen.

5. CB - Christophe Berra - 6
Kept it simple in his first game since March but, unsurprisingly, looked a little off the pace at times before being replaced on 70 minutes. Important game time though as he looks to get back to full fitness. Photo: Ross Parker - SNS Group

6. CM - Olly Lee - 7
Started like a train with two good finishes inside two minutes as he made the most of a more advanced role but seemed to get frustrated thereafter as he dropped deeper in search of the ball. Went off injured early in the second half. Photo: Bill Murray - SNS Group

7. CM - Andy Irving - 7
Produced a stunning strike when Hearts needed inspiration in a rare moment of quality. Photo: Ross Parker - SNS Group

8. RW - Elliot Frear - 6
A few decent runs and crosses but overall not involved enough. Game seemed to pass him by for long spells. Photo: Mark Scates - SNS Group

