Answer: Spectral shift is systematic displacement of the spectrum due to relative motion of the observer relative to the emitter.
A hot body (such as the sun) emits light over a broad range of frequencies. If this light is spread out into a continuous spectrum with a prism, the relative intensity of light in each colour is characteristic of the temperature of the emitting surface.

Although the spectrum is a continuous “rainbow”, very specific “signpost” lines can appear where gas molecules have interacted with light at that exact frequency. The lines can be either dark (where the atom has absorbed light from passing light)

or bright (where an excited atom has emitted light).

But in either case, the position of the lines (and their relation with each other) are absolutely characteristic of the molecule, and independent of the distance between source and observer.
However, if the source and observer are moving towards each other, all the lines will be shifted towards higher frequency (“blue shifted”). If the source and observer are moving away from each other the lines will be shifted towards lower frequencies (“red shifted”).
This effect was first described by Christian Doppler in 1842 and is referred to as “Doppler shift”

If the observer can identify the emitting molecule from the pattern of lines, the red (or blue) shift can reveal the relative velocity of source and observer as well as the chemical makeup of the emitter.
Illustrations from Wikipedia