Cosine similarity
Cosine similarity between two vectors is their dot product, normalized by their norms. It measures the angle between them and ignores their lengths entirely.
That is exactly what you want when the length carries no meaning — a long document and a short one about the same subject should count as similar.