In the context of text analysis, these concepts tend to be reciprocally related - distance is simply the opposite of similarity and vice versa. When you measure distance, the most closely related points will have the lowest distance, but when you measure similarity, the most closely related points will have the highest degree of similarity.