5. června 2007 14:28
In my MOSS 2007 site, the contextual search scopes ("this site," "this list," etc.) seem to point to a results page called "_layouts/OSSSearchResults.aspx," within that particular site or list -- not my default search results page URL.
In this particular site, there are far too many lists and sub-sites to customize each list/site in order to point it to the correct search URL.
Is there any way to (1) set the default search URL for contextual search scopes or (2) remove contextual search scopes all together?
Thanks for any help that you can offer.
5. června 2007 17:14
There is no supported way to change the results page for contextual scopes. You can however choose to not show the contextual scopes in the search box.
If you are using the searchbox as a webcontrol(most likely if this is coming from master page) then you can set the attribute DropDownModeEx=ShowDD_NoContextual and you wont get the contextual scopes. There is one more option ShowDD_NoContextual_DefaultURL which is more typically used on results pages.
5. června 2007 20:55
Thank you, that seemed to help.
I noticed that the contextual scopes, although removed from all other sites and pages, still appear on Wiki pages. Wierd.
8. května 2012 14:27
There are no other settings, but what you have found under the site collection administration that would help you in this situation.
You option is to either set the “Show and default to contextual scope” in the site collection admin. The drawback is that all your results will default to SharePoint contextual search results page "_layouts/OSSSearchResults.aspx” and not to you search center.
Here is what I’d recommend. On your custom search results page, edit the Core Search Results web part, Under Location Properties, in the Scope box, type a valid scope (“Tes1 site”) for the search results. This is a value that you would have previously configured as a scope for this site and is used for queries when the URL does not contain the ‘s’ parameter. In this case you will have to create scopes for each site and create search results pages for each site as well.
SharePoint MVP, Microsoft VTSP, http://www.arcovis.com