AUGUSTA — Maine election officials have scheduled a ballot recount in a state House primary race that was decided by two votes.

A recount will be held Tuesday for the House District 47 Republican primary, which covers Rockland and part of Owls Head.

Unofficial results from last Tuesday’s primary showed GOP candidates Gordon Mank Jr. with 165 votes and James Raye with 163 votes.

The seat is currently occupied by Democrat Edward Mazurek, who is term-limited and cannot seek re-election.

The GOP recount will take place at the Maine Department of Public Safety. Representatives for each candidate and staff members from the secretary of state’s office will manually review each ballot to determine if the initial tabulation was correct.

Maine doesn’t have automatic recounts, no matter how close the final vote count. But the loser of an election can request a recount within five days of the election.

If the percentage difference between the leading candidate and the requesting candidate is 2 percent or less of the total votes cast for that office, no monetary deposit is not required.

The Republican nominee will eventually square off against Democrat Elizabeth Dickerson of Rockland in the November general election. Dickerson was unopposed in her primary.

Mank operates the Mid-Coast Hospitality House homeless shelter in Rockport. Raye is a former mayor of Rockland.