1. A method of generating a positional representation of a document, comprising: identifying unique terms in a document and determining positions in the document at which each of the unique terms appear; and for each of the unique terms, storing positional information derived from the positions into a positional representation.