Boosting and online learning for classification and ranking