Abstract:
Configurations for providing a multi-tier hierarchy to manage geographical data are disclosed. The subject technology identifies a first geographic location and determines where, in a geographic hierarchy, the first location belongs, including associating one or more labels with the first location. Each label is associated with a respective level in the geographic hierarchy that includes the first location. The subject technology identifies a second, different geographic location and determines where, in the geographic hierarchy, the second location belongs. One or more different number of levels in the geographic hierarchy are determined to associate with the second location than a number of levels in the geographic hierarchy associated with the first location. The subject technology associates one or more labels for the one or more different number of levels with the second location, and uses respective labels to target content delivered to users associated with the first or second locations.
Abstract:
A computer-implemented method may include receiving, from a device, a search query that includes search terms, parsing the search terms into combinations of search terms, where each of the combinations includes one or more adjacent search terms, determining whether a hierarchical relationship exists for the one or more adjacent search terms of each of the combinations, generating one or more interpretations for each of the combinations based on whether the hierarchical relationship exists for the one or more adjacent search terms, performing a search based on at least one of the one or more interpretations to identify search results, generating a search result document containing the search results, and providing, to the device, the search result document.