You can't create a google-like search unless you spend a month or two learning what free text and information retrieval technology is all about, and then a year or two applying what you have learnt. And even then, it will be a pale imitation.
I don't think I can say anything useful in five minutes to help you, so I'm not going to bother. Go down to your local library and start reading.
Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference