BOSTON — It was beginning to look familiar when Toronto's R.A. Dickey took a no-hitter into the sixth inning against the Boston Red Sox — the best-hitting team in baseball.

After all, the Blue Jays knuckleballer did the same thing in his previous start.

But five days after throwing 5 1/3 no-hit innings against the Red Sox in Toronto — and then watching it all fall apart — Dickey threw five innings of hitless ball and the Blue Jays held on to beat Boston 5-2 on Friday night.

"They're a smoking hot offence," Toronto manager John Gibbons said. "He was really, really good against them tonight."

Roberto Osuna helped, striking out Xander Bogaerts with two on to end the game and end the Boston shortstop's 26-game hitting streak, second-longest in the majors this year to teammate Jackie Bradley Jr.'s.

Bogaerts went 0 for 3 and walked twice, with the Fenway Park crowd booing when he didn't see a strike in the eighth inning. Bogaerts came up again as the tying run with two out in the ninth and worked the count to 3-0 before Osuna struck him out for his 13th save.

"I wish I was a little more patient the last at-bat," Bogaerts said. "It was a tough day to lose the streak. Obviously, I had a chance to at least get on base to give David a chance to do something for the game. But I battled and I enjoyed every bit of it."

One start after no-hitting into the sixth and then allowing the next five batters to reach base, Dickey didn't give up a hit until David Ortiz opened the sixth with a double. He got the next three batters on a flyball to centre, a comebacker to the mound and a strikeout.

"I just didn't want to give in tonight," Dickey said. "It's a really good (lineup). You can't afford to give in. If you do, it can be a crooked number real quick."

Dickey walked five, hit a batter and struck out four. He left after allowing Mookie Betts' ground rule double with two out in the seventh, only the second Red Sox hit.

Boston tied its longest losing streak of the season with its third consecutive defeat. The Red Sox have lost six of their last nine games.

David Price (7-2), who helped pitch Toronto into the playoffs last season and then signed with Boston, allowed two earned runs on six hits, four walks and a hit batter, striking out five in seven innings. He stayed in the game after being hit by Jose Bautista's line drive in the third.

"Scary," said Price. "It didn't hurt me; it didn't affect me. It's just more scary than anything else."

HOME RUNS

Edwin Encarnacion hit a two-run shot off Price in the first inning, and Devon Travis added a two-run homer off Koji Uehara in the eighth.

"That's what happens whenever you're behind in the count to hitters like that," Price said. "It was a 2-0 fastball that wasn't located. That's what good hitters do: they put good swings on bad pitches."

DOUBLES

Ortiz got his 500th double with Boston for the first hit off Dickey. Ortiz is now third in team history to Carl Yastrzemski (646) and Ted Williams (525).

Ortiz added double No. 501 in the eighth after Bogaerts walked. Hanley Ramirez's groundout scored one run to make it 5-2, but Boston got no closer.

TRAINER'S ROOM

Red Sox: OF Brock Holt will travel to Pittsburgh to see a concussion specialist when the team goes to San Francisco for next week's series against the Giants. Holt was put on the concussion injury list on May 20.

UP NEXT

RHP Steven Wright (5-4) goes for Boston on Saturday against Toronto RHP Marcus Stroman (5-1).