Major repair on course catalog mongodb search algorithm.