DeepCS is just such a search engine for code, based on the CODEnn (Code-Description Embedding Neural Network) network model.