tags:

views:

106

answers:

2

I need to make the search bar at the top of the page like stackoverflow.com have in its website. I need some sample code for jsp/servlet for performing the operation for searching. What operation it provide while one write something at the search bar. I want to search anything but into my website only.

Please give me some idea...

Thanks

+3  A: 

I believe you can use Google site search, there is more info here.

Or if you are willing to do more work you could check out the Apache Lucene project here.

Ankur
+2  A: 

You can use Lucene, that's a pretty good full text search engine. Since you are coding in Java it shouldn't be difficult at all to implement your search feature from Lucene.

RageZ