1. A method comprising: receiving a plurality of documents, the plurality of documents having an initial order; identifying local term relationships between terms in the plurality of documents, each local term relationship being a relationship between a pair of terms in a respective document, wherein identifying local term relationships between terms in the documents comprises generating, for each of the documents in the plurality of documents, a local term relationships graph, the local term relationships graph representing the local term relationships in the respective document; determining relationships among the documents in the plurality of documents based on the local term relationships and on the initial order of the documents, wherein determining relationships between the documents based on the local term relationships and the initial order of the documents within the plurality of documents comprises: generating a global term relationships graph based on the local term relationships graphs; and generating a document relationships graph based on the global term relationships graph; and determining a respective score for each document in the plurality of documents based on the document relationships.