you observe a periodic shift of a star's spectrum caused by a planet orbiting the star. if the spectrum is redshifted, the star is movingaway from earth, away from earth