A recommendation algorithm based on search