SharePoint User Group UK

Share the knowledge!

Welcome to SharePoint User Group UK Sign in | Join | Help
in
Home Blogs Forums Photos Files Roller

Setting up a new search page to default to a custom search scope

Last post 05-16-2008, 11:13 AM by Ubersnug. 0 replies.
Sort Posts: Previous Next
  •  05-16-2008, 11:13 AM 10808

    Setting up a new search page to default to a custom search scope

    Hello everyone,

    I'm having a wee frustrated moment configuring a new search page to use a new search scope I created.

    What I've done thus far:

    My custom search scope has been created under central admin and has about 50,000 odd items.

    My site collection has a new scope display group created which only contains my new search scope.

    My custom search page has been created, the search box webpart on this page has been configured to only display the items contained in the display group I created above. Then I made sure that the dropdown mode only displays the options within the Display group. I then connect it up to my new search results page.

    I configure the new search results page in the same way as the search page above.

    I then configure the Tabs that are displayed in the search and search results pages and add the new pages to the lists.

    The Problem:

    I go into the search center and if I select my new search tab from teh offset, the new search page loads no problem. The search option has defaulted to the new search scope I created and any search performed returns the results I expected 

    Please read this next paragraph slow, as I've been having a mare of a time trying to write it as clear and consise as possible.

    However, if a user was to first perform a search on the 'All Sites' search page, in theory, if they where to then click on the 'new search' tab I added, the results should be based on the search scope I defined for the new page. But in reality, clicking on the new tab returns the same results as the 'All Sites' search page. If the user was to then click on the search icon in the search box once this page has loaded, the reults will THEN be based on the new search scope I setup for the page.

    (For clarity, if you first performed a search on the 'All Sites' search page, then click on the 'People' search tab the results will be completely different and do not require you to then click on the search icon to apply the new search scope)

    The Question:

    How can I make the new search page ignore this 'All Sites' scope when a user clicks on the tab while viewing the results from another search? As mentioned above, the new search page has been configured to ignore the 'All Sites' scope should only be using the new scope I created.

    Or, if no-one can advise on teh above paragraph, how can I embedd the 's' querystring into the tab links so that it will always default to the scope I wish teh page to use. For example, I tried the following link:

    newsearchpage.aspx?s=new%20scope

    However, when you select the tab, as I suspected, it doesn't work as it then add's its own query embedding the search string, completely ignoring my 'baked in' querystring and thus breaks the url:

    newsearchpage.aspx?s=new%20scope?k=search%20string

    If I haven't explained thigns clearly then please ask for an elaboration. As I said, i found it hard trying to describe the nuace of this problem I am having.

    Thanks

     

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems