The physical process in which an incident high-energy photon ejects one or more electrons from an atom, ion, or molecule.