Here is the source code for four learning to rank algorithms: RankNet, LambdaRank, LamdbaMART, and a logistic regression.
RankNet and LambdaRank are implemented in Tensorflow with the models here and the training code here. Examples of how to run the training code is here.
LambdaMART was run with Lemur, the settings are here, here, here, and here
The logistic regression is here.
Joe Brown
Andrew Clarke
Anthony Hartshorn
Aseem Sharma