Correlation functions measured by indirect resonant inelastic X-ray scattering