1. A computer-implemented method, comprising: detecting one or more faces in one or more first digital images; identifying one or more named entities contained in text of a document that is associated with the one or more first digital images; for each particular named entity of the one or more named entities: sending, to a search engine, a query based on the particular named entity; and receiving, from the search engine, in response to execution of the query by the search engine, one or more second digital images; calculating a plurality of scores, wherein the plurality of scores includes a single score for each pairing of a set of pairings, wherein the set of pairings includes a pairing between each face of the one or more faces detected in the one or more first digital images and each named entity of the one or more named entities; wherein each score of the plurality of scores indicates a similarity between a particular face of the one or more faces and the one or more second digital images received from the search engine in response to execution of a query based on a particular named entity of the one or more named entities; storing, in a non-transitory storage medium, a mapping, based at least in part on the plurality of scores, between (1) each face of a subset of the faces detected in the one or more first digital images and (2) a particular named entity of the one or more named entities; and wherein the method is performed by one or more special-purpose computing devices.