In information retrieval, one of the contemporary methods for fast retrieval of documents containing a certain word (or phrase) is inverted indexing (Manning, et al, 2008), which manages a mapping from a keyword to a set of documents containing it.
given a keyword, we will quickly have the list of related documents.