IBM clearly don't provide all the details / "secret sauce" but there is some information out there on how Watson works. Some of the text search / retrieval stuff uses a technology called UIMA which IBM open-sourced a few years ago. It also uses Prolog and some custom C++ code. Some more information can be found herehere.