A metal detector's response is in the form of slight changes of its oscillating frequency, as it gets close to metal (or various dense substances). The more sophisticated instruments have a setting which discriminates certain types of metals. However none have a setting which detects gold and only gold.
Even if we might find a schematic for a professional model, it requires a lot of experience to get familiar with its operation. It's common to dig up 'throwaway' objects. With luck you might find precious metals underground within range of detection, because the sensing method only works a few inches down.