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 identified 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; for each particular face of the one or more faces detected in the one or more first digital images, calculating a particular similarity score for each particular named entity of the one or more identified named entities, wherein each particular similarity score indicates a similarity between the particular face and the one or more second digital images received from the search engine in response to execution of the query based on the particular named entity; storing, in a non-transitory storage medium, a mapping, based at least in part on the similarity 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 named entities; and wherein the method is performed by one or more special-purpose computing devices.