How to create a custom search results page in MOSS 2007
Posted on 2009-02-12
I have created a subsite in a MOSS 2007 installation, where I need to enable the users with local search functionality, i.e. sub-site content search only (docs, lists, pages, etc).
I need to create a page where to place a Search Box web part so as the users will type a query and the search will return results ONLY from the contents of the subsite (document libraries, lists, pages, etc), i.e. I do NOT want to get search results from the parent site or anywhere else BUT the current site.
I would like to be able to present the results of the search on the same page (if possible) using the functionality of the Search Paging web part, along with statistics provided by the Search Statistics and Search Summary web parts.
So far, I have managed to edit the Search Box web part, and selected "Contextual Scope" which seems to restrict results based on the current site, which is what I want. To be honest, I do not know whether this is the "correct" setting per se that I am looking for.
Also, I would like to hide the combobox on the left of the search box web part (the scope combo), since the users cannot change the search scope anyway, so I don't see why they should see that in the first place.
I have tried to place the Search Core Results web part on the same page with my Search Box web part, but I cannot get the search results shown on this page, since when I click the search icon I always get redirected to a "standard" search results page using a the OSSSearchResults.aspx "search page template" of MOSS.
I would appreciate a complete solution if anyone could help...
Thank you all for your time.