Hearts won an entertaining contest with RFS of Latvia as they kickstarted their Europa Conference League campaign.
Lawrence Shankland’s first-half penalty put them ahead before the break, and Alan Forrest’s strike in stoppage time sealed victory.
Hearts had goalkeeper Craig Gordon to thank at points, especially for tipping one effort on to the woodwork.
They also passed up good chances to add to their tally – including Shankland missing an empty net.
In the end it did not matter as Hearts move second in Group A behind Istanbul Basaksehir – who defeated Fiorentina 3-0 – as Robbie Neilson’s side prepare to face the Serie A club home and away next.
The win in Riga keeps some hope of progression alive for injury-hit Hearts, who were handed a sixth defeat in seven games by Basaksehir last week when the Turkish side left Edinburgh with a 4-0 win.
Given that display, this was a must-win game for Neilson and his squad and at various stages of the first half they looked rattled, especially when centre-back Craig Halkett limped off 20 minutes into his return from injury.
RFS – last season’s champions of Latvia who earned a shock draw in Florence in their opening match – hit the woodwork after two minutes when Gordon was at his acrobatic best to tip Emerson’s shot onto the woodwork.
And the Hearts keeper pulled off another two stops in quick succession to keep his side in front just before half-time.
But Hearts were equally as dangerous in spells before the break, and had the better of the second-half without exerting total control throughout.
By that point Shankland had emphatically stroked his penalty into the top corner after Elvis Stuglis blocked Andy Halliday’s cross with his arm, and missed an open goal on the stretch when Josh Ginnelly slightly overhit his pass across the six-yard box.
Nevertheless, Hearts did more than enough to earn a difficult victory, their first in European group stage football for 18 years, and made sure of it when Cammy Devlin broke free at the end before teeing up Forrest to slot home.
Player of the match – Andy Halliday
Hearts get reward for attacking intent – analysis
Neilson switched to a back four for this match, and signalled his intent to use Barrie McKay and Josh Ginnelly to cause problems with their direct dribbling.
It was the right approach against an inferior team, albeit one with a recent history of shocks. It paid off, too, with McKay’s incredible touch and driving run instrumental in the lead up to the penalty, while Ginnelly was lively.
Halliday was also willing to drive forward from midfield and had several opportunities to score.
The commitment to pour more bodies forward clearly came with risk, but Hearts still conceded more chances than they would have liked, with Gordon rescuing them on a couple of occasions.
One gamble which did not come off was the decision to play Halkett, whose hamstring didn’t hold up for even half an hour.
His absence has been harshly felt amid a long injury list, and a few more weeks out could do more damage to the team in the long run.
Overall, though, Hearts appeared to swell in confidence as the match progressed and with a struggling Fiorentina to visit Tynecastle next, the dream of qualification for the last-16 remains alive.
Hearts are away to Motherwell in the Scottish Premiership on Sunday (15:00 BST) before club football halts for the international break.
Rigas Futbola Skola
- 92JagodinskisBooked at 42mins
- 66VlalukinSubstituted forSorokinsat 58′minutes
- 28PanicBooked at 80mins
- 25MaresBooked at 52mins
- 81SimkovicBooked at 45minsSubstituted forFriesenbichlerat 59′minutes
- 9Santana Deocleciano
- 1GordonBooked at 74mins
- 4HalkettSubstituted forNeilsonat 22′minutes
- 19CochraneBooked at 8mins
- 7GrantSubstituted forHaringat 70′minutesBooked at 83mins
- 30GinnellyBooked at 79minsSubstituted forHumphrysat 79′minutes
- 9ShanklandBooked at 45minsSubstituted forForrestat 79′minutes
- Aleksandar Stavrev
Match ends, Rigas FS 0, Heart of Midlothian 2.
Second Half ends, Rigas FS 0, Heart of Midlothian 2.
Goal! Rigas FS 0, Heart of Midlothian 2. Alan Forrest (Heart of Midlothian) right footed shot from the right side of the box to the bottom right corner. Assisted by Cameron Devlin following a fast break.
Attempt blocked. Ziga Lipuscek (Rigas FS) left footed shot from the right side of the box is blocked.
Alex Cochrane (Heart of Midlothian) wins a free kick in the defensive half.
Foul by Ziga Lipuscek (Rigas FS).
Foul by Stephen Humphrys (Heart of Midlothian).
Vitalijs Jagodinskis (Rigas FS) wins a free kick in the defensive half.
Cameron Devlin (Heart of Midlothian) wins a free kick in the defensive half.
Foul by Petr Mares (Rigas FS).
Foul by Lewis Neilson (Heart of Midlothian).
Andrej Ilic (Rigas FS) wins a free kick on the left wing.
Peter Haring (Heart of Midlothian) is shown the yellow card for a bad foul.
Foul by Peter Haring (Heart of Midlothian).
Elvis Stuglis (Rigas FS) wins a free kick on the left wing.
Offside, Heart of Midlothian. Stephen Humphrys tries a through ball, but Michael Smith is caught offside.
Attempt blocked. Stephen Humphrys (Heart of Midlothian) left footed shot from outside the box is blocked. Assisted by Cameron Devlin.
Stefan Panic (Rigas FS) is shown the yellow card for a bad foul.
Alan Forrest (Heart of Midlothian) wins a free kick in the attacking half.
Foul by Stefan Panic (Rigas FS).