views:

37

answers:

2

Hello all,

I would like to implement a search function for my website as the functions listed here

http://stackoverflow.com/search

What should I do in order to do this?

Based on my understanding, two methods 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 http://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

+1  A: 

Just look at the url:

http://www.google.com/search?sitesearch=stackoverflow.com%2Fquestions&q=texthere
poke
Hello Poke,The provided link doesn't work for me. Please tell me the keyword that I should use for search.thank you
q0987
It's not a link. It's the URL you are redirected to when searching here on SO using Google. The `q` parameter is the text that is searched for, the `sitesearch` parameter specifies on which page Google should look.
poke
+1  A: 

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/

Chris Thornton