The process of drilling boreholes into the subsurface to retrieve core samples and assess the location, size, and quality of mineral or geothermal resources. This geological phase is crucial for determining the feasibility and designing the thermal infrastructure of potential extraction sites.