12. The server of claim 11 , where, when determining whether an input document is similar to the document, the processor executes instructions to: create the pairs of terms from the input document based on enumerating possible pairs of terms within the input document; and determine a quantity of matches between the enumerated pairs of terms and the plurality of term pairs of the cluster.
11. A server comprising: a memory to store instructions; and a processor to execute the instructions to: receive a document; select terms from the document to form a plurality of term pairs, where the selection of terms is weighted such that terms that appear closer to each other in the document have a higher probability of being included in the plurality of term pairs than terms that appear farther from each other in the document; create a cluster that includes the plurality of term pairs, where the cluster is created by sampling at least one of the plurality of term pairs, and a quantity of the plurality of term pairs that is sampled is determined based on a length of the document; and determine whether an input document is similar to the document by comparing pairs of terms from the input document with the plurality of term pairs in the cluster for the document.