4. The method of claim 1 , where the the method further comprises: determining that both of the third and fourth terms appear in the same one of the plurality of items of the list, and generating the particular distance value between the third and fourth terms using another one of the plurality of rules.
1. A method comprising: receiving, by one or more processors, a document that includes first, second, third, and fourth terms; identifying, by the one or more processors, that a list is present within the document, where the list includes a plurality of items; determining, by the one or more processors, that the first and second terms appear in the list; determining, by the one or more processors, in response to determining that the first and second terms appear in the list, a distance value between the first and second terms within the list, where the distance value is determined based on at least one of a plurality of rules that is associated with particular locations, in the list, of the first and second terms, where determining the distance value includes: determining, by the one or more processors, that the first term appears in one of the plurality of items of the list and the second term appears in a different one of the plurality of items of the list, and generating, by the one or more processors, the distance value based on the first term appearing in the one of the plurality of items of the list and the second term appearing in the different one of the plurality of items of the list, where the distance value, relative to a particular distance value of the third and fourth terms of the list, indicates that the first and second terms are farther apart from each other than the third and fourth terms, where the third and fourth terms appear in a same one of the plurality of items of the list; generating, by the one or more processors, a ranking score for the document based on the distance value; and ordering, by the one or more processors, the document with respect to at least one other document based on the ranking score for the document.