6. The method of claim 1 , wherein at least one of the obtained ranking factors is active in the ranking algorithm if terms in the query match a value of the at least one ranking factor.
1. A computer-implemented method for ranking search results using user preferences, comprising: obtaining a set of custom ranking factors which specify document attributes to be applied to search results for a query within an heterogeneous enterprise environment; for each of the custom ranking factors, defining a type of the custom ranking factor, wherein the type of the ranking factor comprises a query factor or a static factor; receiving a user-supplied weight from a user for each of the set of custom ranking factors which specify document attributes; generating, using a processor operatively coupled to a memory, a ranking algorithm that is a combination function of the ranking factors which specify document attributes based on the user-supplied weights for the ranking factors and the type of the custom ranking factors; applying the ranking algorithm to search results for the query; and displaying the search results ranked according to the ranking algorithm.