A General Boosting Method and its Application to Learning Ranking Functions for Web Search