1. A method of ranking documents in response to a search query comprising: a. determining a formula having variables and parameters, the formula for computing a relevance score for a document and a search query; and b. ranking the document based on the relevance score.