I’ve created a tridion web site, now i want to add some search control like Google custom search, is there any option provide by tridion for the same?
my option :
i have to create a user contol and implement Google custom search in there then render it on my pages. or any other approach’d be better.
search control (contain text box and a search button) should be able to search text.
search results should be formatted as search engines do.
When you say Google, are you talking about the Google Search Appliance (GSA)?
Assuming that is the case: You seem to have done quite a lot of work with XSLT, so in my opinion the easiest way to do thes is have your usercontrol call the XML API for the GSA with the relevant query, and simply transform the response with XSLT. This prevents you from having to recompile the control when you need layout changes, and you can publish the XSLT from Tridion.
I use the following XSLT to generate the search results on this page http://medicine.yale.edu/search.aspx?q=test&x=0&y=0&site=YSM_School_of_Medicine