Shout out to Jarrod for putting this together for me.
What are you talking about?
In SharePoint 2010, we had “scopes” to filter through our search results. For example, if you search for “Jarrod Ferguson”, you will have numerous results at every mention of my name- so you use the “People” scope.
This will result in only showing users with the name “Jarrod Ferguson”, instead of returning content. Very helpful, and likely something that you have used in SharePoint… but now the time has come to upgrade to SharePoint 2013. You’ve set up your search application and you’re getting ready to transfer your scopes. Only one problem- you can’t. Scopes do not exist in SharePoint 2013.
What can I do?
While searching for answers, you may have ended up with the same answers I found:
- We now have “Result Sources” instead of scopes
- Result Sources do not really accomplish the same thing
- There are no longer drop down menus to use
- Replicating the same function as scopes or 2010 in 2013 is nearly impossible
- Oh no, panic!
But wait- don’t panic! I knew there was no way recreating a “scope” was as impossible as it seemed, so I continued to brainstorm and try new ideas. After many failures, I realized I was overcomplicating this big time.
How did you fix it?
For my specific problem, I needed a scope to only search through a different content location. What do I mean by that? itgroove is in the middle of migrating from SharePoint 2010 to SharePoint 2013, and we need the ability to distinguish what we are searching. We crawl our new (2013) portal and our old (2010) portal daily, so that we have access to all of our content- but we want to have the ability to search through all of it, or just the new/migrated stuff. If you are looking to do the same thing, ensure you are successfully crawling your content (in your Search Service Application settings in Central Admin).
Here’s the end result of what:
- First, we need to create a new search results page. Browse to your “Pages” library, and add a new “Search Results” page. Open/Edit the new results page, and edit the “Search Results” web part.
- Click “Change Query” and edit the query to match your scope. For example, we added a “Path” variable to only search through our new portal (go.itgroove.ca).
- This new page will be your new drop down menu selection. Make sure for every result page (and as such, drop down item) you create, your query is correct and works. The above image shows a search that will only return items that match what is typed in the Search Box + go.itgroove.ca/* in their URL. To add the new search result page(s) to the drop down, go to your search service application home page.
- Edit the page, and edit your search box web part.
- Select “Turn on drop-down” and “Use this site’s Search Settings” in the web part menu, and hit apply.
- Next, click on “Search Settings” to edit your sites search settings. Note: This can also be done by going to Site Settings à Search à Search Settings.
- Ensure the drop-down and use parent settings are applied, and then add a new link.
- Fill out the title and URL (the URL is the link to your new Search Result page), and click OK.
- Save your new Search Settings, and test out Search 2013 with the familiar drop-down menu with a mock scope.
Here is how it works. First, I tested searching our new portal (using our new Search Result page) for the word “Christmas” with no luck. Then I changed back to the original Search Result Page (searching “Everything”), which searches itgroove’s old content as well as the new content, as there are no Search Queries on that page besides matching text with Search Box. The result looks like…
And searching Everything…
Hey look at all those results!
Hope this helps you out with your Search 2013 problems, cheers!