Search - How to implement the Google website search like the one used here
I would like to implement a search function for my website as the functions listed here
https://stackoverflow.com/search
What should I do in order to do this?
Based on my understanding, two methods开发者_StackOverflow中文版 can be used to provide search function for my website.
1> MySQL full text search 2> Use search lucene package.
My guess is that the search function here https://stackoverflow.com/search is neither of them. So what is the method that has been used to provide such a search on the website?
Thank you
Just look at the url:
http://www.google.com/search?sitesearch=stackoverflow.com%2Fquestions&q=texthere
It would seem that a MySQL approach would work if your site is entirely database-driven. Otherwise, you need something that spiders, such as Zoom by WrenSoft. http://www.wrensoft.com/
精彩评论