Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have created a WildCard managed path named departments, and then under this managed path I have created five “Publishing site- enterprise Wiki” site collections.

Now, by default, each of the enterprise site collection will have a Search functionality to search all the Pages content, attachments etc.

But I want to allow users to either search a specific Site collection or to search all the site collectiosn under the specific managed path. How can this be done?

share|improve this question
    
I'd say you should setup some additional Search Scopes in which you configure which index should be searched through when chosen. –  Daniel Ziga May 23 '13 at 11:38
    
can you explain more your answers please... –  John Peter May 23 '13 at 11:41
add comment

1 Answer

The default behavior of the Site Search box in 2013 is to search the site first and then when the user clicks the link to "Search Everything" that are taken to the global search center configured in the SSA. If you want an intermediate step where they only search the site collections under the Departments managed path there are a few approaches you can take.

You can make the process easier by creating Result Source for the departments managed path. Use a query like Path:http://mycompany/departments/*.

You could then add a search vertical to the search center for searching department content and direct the search query to use the Result Source you created above.

You could go one step further by creating a Query Rule that detects a user query for the Action Term "Department" and create a result block of results from the Departments Result Source.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.