Los Angeles: Matt Moore came within an out of recording his first no-hitter as the San Francisco Giants beat the Los Angeles Dodgers 4-0 on Thursday.

Moore held the Dodgers hitless until Corey Seager blooped a single to right to end the bid with two outs in the ninth. Santiago Casilla came on in relief and forced Justin Turner to pop out to clinch the victory for the Giants.

Moore wound up allowing a hit and three walks in 8 2/3 innings on a career-high 133 pitches (88 strikes). He struck out seven.

Joe Panik homered and drove in two runs for the Giants, who snapped a four-game losing streak and dropped the Dodgers’ lead in the National League West to two games.

Max Scherzer gave up two hits, no walks and no runs in eight innings and Jayson Werth had two key hits, including a solo homer in the fourth, as the Washington Nationals beat the Baltimore Orioles 4-0 on Thursday.

Scherzer (14-7), who lowered his ERA to 2.92, did not allow a run for the fifth time this season. Closer Mark Melancon pitched the ninth in a non-save situation and retired the side while allowing one hit.

First-place Washington (73-54) snapped a four-game slide and had dropped its last six games to Baltimore over the past two seasons, including four straight at Nationals Park.

Left-hander Cole Hamels allowed two singles in eight innings as Texas shut out Cleveland 9-0.

Hamels (14-4) allowed a two-out single to Francisco Lindor in the first inning and retired the next 19 batters he faced, finishing with eight strikeouts as the Indians managed to get only four balls out of the infield against him until the eighth.

The Rangers did not have the same kind of problem against Cleveland starter Josh Tomlin (11-8). Texas jumped on Tomlin for three runs in the second inning on a three-run homer from newly acquired Carlos Gomez.