1. A computer-implemented method comprising: receiving information about a geographic feature; identifying a plurality of contexts related to the geographic feature, and for each context, identifying a distinct respective ranking function for generating rank scores for geographic features, where each context is a respective purpose of a query; and generating, for each context, using the respective ranking function for the context and based on a relationship between the geographic feature and at least another geographic feature, a rank score for the geographic feature.