By JANIE McCAULEY, AP Baseball Writer

SAN FRANCISCO (AP) — The Milwaukee Brewers would have much preferred to leave for an important road series against baseball’s best Los Angeles Dodgers with momentum from a series win.

Instead, they dropped a pair of two-run defeats to the lowly San Francisco Giants.
Jarrett Parker hit a go-ahead two-run double on a checked swing in the seventh, Buster Posey hit a sacrifice fly, and San Francisco beat the contending Brewers 4-2 on Wednesday.

“Obviously these two losses here hurt. Those are both games that we are right in,” said Stephen Vogt, who had his first career pinch-hit home run in the ninth for Milwaukee. “Obviously you’re going in to play the best team in baseball. That’s also a good opportunity for us to go show them what we can do. You’ve got to look at it as a fun challenge and not an uphill battle.”

The Brewers began the day 2 1/2 games behind the first-place Cubs in the NL Central, having won six of seven games before arriving at AT&T Park.

Hunter Strickland (3-3) pitched the seventh for the victory. Carlos Moncrief added a sacrifice fly in the eighth before Sam Dyson, San Francisco’s third reliever after Mark Melancon tossed a 1-2-3 eighth, closed it out for his 12th save in 13 opportunities.

The Brewers took a 1-0 lead in the first on Travis Shaw’s RBI double after Domingo Santana hit a one-out double two batters earlier.

The Giants then loaded the bases in the bottom half with no outs on a leadoff double by Gorkys Hernandez, Kelby Tomlinson’s single and a walk to Parker. Posey followed with a fly to left to tie it.

Hernandez doubled again leading off the third then was hit by losing pitcher Jacob Barnes (3-4) in the midsection during the seventh and flipped his bat in disgust after nearly being plunked in the fifth, when he struck out.

On Sunday, Posey took issue with Phillies closer Hector Neris and accused the reliever of hitting him on purpose — prompting San Francisco skipper Bruce Bochy to call the Philadelphia pitcher an “idiot.”

Of Parker’s decisive hit, Bochy said, “I don’t think that was the swing he was looking for on the first pitch but that’s a break for us, we’ll take it.”

San Francisco lefty Matt Moore struck out six and walked two with five hits and a run in six innings of his first career appearance against Milwaukee. His last time out, Moore snapped a nine-start winless stretch during which he was 0-5 since a June 20 win at Atlanta.

Milwaukee starter Matt Garza struck out six over five innings, allowing one run and five hits with two walks but left without a decision in a tie game.

The Brewers did little to support him, stranding runners on second and third in the sixth.
“We just didn’t do enough today,” manager Craig Counsell said.

ERRORS
Ryder Jones’ missed catch at first base on a pickoff attempt in the seventh allowed Manny Pina to advance to second and gave the Giants an error in their sixth straight game and 11 in the last 11.
TRAINER’S ROOM
Brewers: 3B Shaw fouled a ball off his right foot in the ninth and went down in pain but stayed in and drew a walk. He will have an X-ray. … LHP Brent Suter threw his first bullpen session since going on the disabled list Aug. 13 with a strained rotator cuff in his pitching shoulder.
Giants: RF Hunter Pence sat out a day after he was a late scratch with a tight left hamstring. … RHP Johnny Cueto (flexor tendon strain) felt fine after he threw 47 pitches in three scoreless innings of rehab start Tuesday for Triple-A Sacramento. Bochy expects him to pitch once more in the minors before rejoining the Giants rotation. … 2B Joe Panik, working back from a concussion, was set to play for Class-A San Jose at Visalia on Wednesday after he also played for Sacramento on Tuesday. It’s unclear when Panik will rejoin San Francisco. … 1B Brandon Belt (concussion) is doing cardio work but Bochy figures he is still two or three weeks away from being fully healthy.

UP NEXT
Brewers: RHP Chase Anderson (7-2, 2.83 ERA) takes the mound as Milwaukee visits the red-hot Dodgers on Friday night.
“Well, it’s historic,” Counsell said of Los Angeles. “They’re on a historic pace so you certainly respect that. There’s not many teams saying they beat them. That’s the bottom line. … I’m looking forward to it. It’s definitely a challenge. It comes at an important time in the season. And look, let’s face it, the ultimate goal probably goes through L.A. at some point.”
Giants: LHP Ty Blach (8-9, 4.59) pitches the series opener Friday at Arizona — his first career start vs. the Diamondbacks.
___

Giants 4, Brewers 2

MilwaukeeSan Francisco
abrhbiabrhbi
Villar 2b4010G.Hrnan cf3220
Do.Sntn rf3120Tmlnson 2b4020
Braun lf4000J.Prker lf3012
T.Shaw 3b3011Posey c3001
Aguilar 1b4000Crwford ss4120
Pina c2000Sndoval 3b4010
Vogt ph1111Mncrief rf3001
Broxton cf3010R.Jones 1b3000
Thames ph1000M.Moore p2000
Arcia ss3000Strckln p0000
Garza p2000Span ph1110
Hader p0000Mlancon p0000
N.Wlker ph1000Calixte ph1000
J.Brnes p0000S.Dyson p0000
C.Trres p0000
Totals31262Totals31494
Milwaukee100000001—2
San Francisco10000021x—4

E_R.Jones (3). DP_San Francisco 2. LOB_Milwaukee 5, San Francisco 8. 2B_Do.Santana (23), T.Shaw (28), G.Hernandez 2 (17), J.Parker (9), Crawford (24), Span (26). HR_Vogt (9). SF_Posey (4), Moncrief (1).

IPHRERBBSO
Milwaukee
Garza551126
Hader100001
Barnes L,3-4122202
Torres121101
San Francisco
Moore651126
Strickland W,3-3100000
Melancon H,5100002
Dyson S,12-17111110

M.Moore pitched to 1 batter in the 7th

HBP_by Barnes (Hernandez). WP_Torres.

Umpires_Home, Fieldin Cubreth; First, Manny Gonzalez; Second, Mark Carlson; Third, CB Bucknor.

T_3:08. A_40,015 (41,915).