1. A method, comprising: searching for resources in response to a search query with a number of search terms; retrieving search term position information for each resource; generating with a computing device a proximity feature value based on the search term position information using an unordered cost function, wherein the unordered cost function does not require search terms to be in the same order as in the search query and wherein the unordered cost function is proportional to a number of different search terms in a chunk of the resource and inversely proportional to a length of the chunk and the number of search terms in the search query; and ranking the resources based on the proximity feature value.
1. A method, comprising: searching for resources in response to a search query with a number of search terms; retrieving search term position information for each resource; generating with a computing device a proximity feature value based on the search term position information using an unordered cost function, wherein the unordered cost function does not require search terms to be in the same order as in the search query and wherein the unordered cost function is proportional to a number of different search terms in a chunk of the resource and inversely proportional to a length of the chunk and the number of search terms in the search query; and ranking the resources based on the proximity feature value. 4. The method of claim 1 , comprising retrieving the search term position information for each resource from a proximity database.