{"id":100,"date":"2014-04-05T13:06:42","date_gmt":"2014-04-05T12:06:42","guid":{"rendered":"https:\/\/vlieshout.net\/?p=100"},"modified":"2014-06-30T14:24:18","modified_gmt":"2014-06-30T13:24:18","slug":"sharepoint-migration-search-part1-search-settings","status":"publish","type":"post","link":"https:\/\/vlieshout.net\/?p=100","title":{"rendered":"SharePoint Migration &#038; Search Part 1: Search Settings"},"content":{"rendered":"<p>In a few series of posts I will discuss changes in SharePoint Search which might affect you when migrating from SharePoint 2010 to 2013. Search is one of the most changed components in SharePoint 2013 and therefore I split the posts up in four parts covering some subjects you need to know before migrating to SharePoint 2013. All parts will be available with the links below when the posts are available:<\/p>\n<p><a href=\" https:\/\/vlieshout.net\/sharepoint-migration-search-part1-search-settings\">Part 1: Search Settings<\/a><br \/>\n<a href=\"https:\/\/vlieshout.net\/sharepoint-migration-search-part-2-search-web-parts\">Part 2: Search Web Parts<\/a><br \/>\n<a href=\"https:\/\/vlieshout.net\/sharepoint-migration-search-part-3-result-sources\">Part 3: Search Results Sources<\/a><br \/>\n<a href=\"https:\/\/vlieshout.net\/sharepoint-search-migration-part-4-search-result-types-and-display-templates\">Part 4: Search Result Types and Display Templates<\/a><\/p>\n<p>In this post I will cover the search settings in-depth. But first some general information about what has happened to the Search component in SharePoint 2013 compared to 2010. In&nbsp;SharePoint 2010 we had actually three options for search:<br \/>\n&#8211; SharePoint Foundation Search<br \/>\n&#8211; SharePoint Enterprise Search<br \/>\n&#8211; FAST<\/p>\n<p>In 2013 the FAST search engine&nbsp;is fully&nbsp;integrated into SharePoint and there is only a difference in features for search based on the three types of licenses (Foundation, Standard and Enterprise). See a <a title=\"SharePoint 2013 feature comparison chart all editions\" href=\"http:\/\/blog.blksthl.com\/2013\/01\/14\/sharepoint-2013-feature-comparison-chart-all-editions\/#SER\" target=\"_blank\">list of feature comparisons<\/a>&nbsp;for a quick overview for differences between editions within search.&nbsp;This automatically implies changes to the search functionality on different levels. In this post we&#8217;ll focus on the Search Settings for Site Collections and Sites where some things has been changed.<\/p>\n<p>In SharePoint 2010, Search Settings could be managed per Site Collection using the Search Settings link when going to Site Settings:<\/p>\n<div id=\"attachment_103\" style=\"width: 600px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/vlieshout.net\/wp-content\/uploads\/2014\/04\/SearchSettingsLinks2010.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-103\" class=\" wp-image-103\" style=\"width: 452px;\" src=\"https:\/\/vlieshout.net\/wp-content\/uploads\/2014\/04\/SearchSettingsLinks2010.png\" alt=\"Search Settings Link in 2010 on Site Settings Page\" width=\"590\" height=\"547\" \/><\/a><p id=\"caption-attachment-103\" class=\"wp-caption-text\">Search Settings Link in 2010 on Site Settings Page<\/p><\/div>\n<p>On the Search Settings page itself you were able to set settings like enabling custom scopes, set the drop down mode for Search Boxes and specify the Site Collection Search Results Page. Those settings where actually kept in the property bag of the rootWeb of a Site Collection. See the picture below for the mapping of the properties in 2010:<\/p>\n<div id=\"attachment_105\" style=\"width: 635px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/vlieshout.net\/wp-content\/uploads\/2014\/04\/SearchSettings2010Properties.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-105\" class=\" wp-image-105\" style=\"width: 742px;\" src=\"https:\/\/vlieshout.net\/wp-content\/uploads\/2014\/04\/SearchSettings2010Properties-1024x250.png\" alt=\"Search Settings in 2010 with Propertynames of properties stored in propertybag\" width=\"625\" height=\"243\" \/><\/a><p id=\"caption-attachment-105\" class=\"wp-caption-text\">Search Settings in 2010 with Propertynames&nbsp;of properties stored in propertybag<\/p><\/div>\n<p>* Note the spell error in the Search Results Page propertyname. This was a spell mistake which was there in the SharePoint product itself.<\/p>\n<p>When you upgrade a Site Collection using Visual Upgrade or so-called Site Collection Upgrade to 2013 mode we will notice a few differences. First when we browse to the Site Settings page you&#8217;ll notice two Search Settings links. The first one on the left is on Site Level and the second one on the righ is on Site Collection Level:<\/p>\n<div id=\"attachment_107\" style=\"width: 593px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/vlieshout.net\/wp-content\/uploads\/2014\/04\/SearchSettingsLinks2013.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-107\" class=\" wp-image-107\" style=\"width: 415px;\" src=\"https:\/\/vlieshout.net\/wp-content\/uploads\/2014\/04\/SearchSettingsLinks2013.png\" alt=\"Search Settings are in 2013 available on two different levels when browsing Site Settings page.\" width=\"583\" height=\"574\" \/><\/a><p id=\"caption-attachment-107\" class=\"wp-caption-text\">Search Settings are in 2013 available on two different levels.<\/p><\/div>\n<p>When browsing to Site Collection Level Search Settings you&#8217;ll notice that all settings from before the upgrade are lost:<\/p>\n<div id=\"attachment_106\" style=\"width: 635px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/vlieshout.net\/wp-content\/uploads\/2014\/04\/SearchSettings2013.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-106\" class=\"size-large wp-image-106\" src=\"https:\/\/vlieshout.net\/wp-content\/uploads\/2014\/04\/SearchSettings2013-1024x307.png\" alt=\"Default Search Settings after visual upgrade. All customized settings seems to be lost.\" width=\"625\" height=\"187\" srcset=\"https:\/\/vlieshout.net\/wp-content\/uploads\/2014\/04\/SearchSettings2013-1024x307.png 1024w, https:\/\/vlieshout.net\/wp-content\/uploads\/2014\/04\/SearchSettings2013-300x90.png 300w, https:\/\/vlieshout.net\/wp-content\/uploads\/2014\/04\/SearchSettings2013-624x187.png 624w, https:\/\/vlieshout.net\/wp-content\/uploads\/2014\/04\/SearchSettings2013.png 1265w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/a><p id=\"caption-attachment-106\" class=\"wp-caption-text\">Default Search Settings after visual upgrade. All customized settings seems to be lost.<\/p><\/div>\n<p>As you see in the screenshot all old settings seems to be lost and reset to default values. When diving into the property bag on the rootWeb we&#8217;ll notice that internally new properties are used to store the settings and the Visual Upgrade doesn&#8217;t migrate those settings automatically. I&#8217;ve marked the properties in the next screenshot for Site Collection Level:<\/p>\n<div id=\"attachment_111\" style=\"width: 635px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/vlieshout.net\/wp-content\/uploads\/2014\/04\/SearchSettings2013Properties.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-111\" class=\"size-large wp-image-111\" src=\"https:\/\/vlieshout.net\/wp-content\/uploads\/2014\/04\/SearchSettings2013Properties-1024x334.png\" alt=\"Search Propertynames mapped to the settings in the User Interface in 2013.\" width=\"625\" height=\"203\" srcset=\"https:\/\/vlieshout.net\/wp-content\/uploads\/2014\/04\/SearchSettings2013Properties-1024x334.png 1024w, https:\/\/vlieshout.net\/wp-content\/uploads\/2014\/04\/SearchSettings2013Properties-300x98.png 300w, https:\/\/vlieshout.net\/wp-content\/uploads\/2014\/04\/SearchSettings2013Properties-624x204.png 624w, https:\/\/vlieshout.net\/wp-content\/uploads\/2014\/04\/SearchSettings2013Properties.png 1269w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/a><p id=\"caption-attachment-111\" class=\"wp-caption-text\">Search Propertynames mapped to the settings in the User Interface in 2013.<\/p><\/div>\n<p>As you can see two new properties have been introduced. You&#8217;ll also notice the SITE in the name of the property. This has to do with the scoping of the search settings. When you store these settings on a web, then the SITE in the property name is replaced with WEB. The setting which is the lowest in the tree takes precedence. So if you set it on&nbsp;Web&nbsp;Level, that web will only look at the web setting, otherwise it will look at Site Level. The following schema shows how the settings are actually stored per level:<\/p>\n<p><a href=\"https:\/\/vlieshout.net\/wp-content\/uploads\/2014\/04\/SearchSettingsSchema.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-112\" src=\"https:\/\/vlieshout.net\/wp-content\/uploads\/2014\/04\/SearchSettingsSchema.png\" alt=\"SearchSettingsSchema\" width=\"891\" height=\"509\" srcset=\"https:\/\/vlieshout.net\/wp-content\/uploads\/2014\/04\/SearchSettingsSchema.png 891w, https:\/\/vlieshout.net\/wp-content\/uploads\/2014\/04\/SearchSettingsSchema-300x171.png 300w, https:\/\/vlieshout.net\/wp-content\/uploads\/2014\/04\/SearchSettingsSchema-624x356.png 624w\" sizes=\"auto, (max-width: 891px) 100vw, 891px\" \/><\/a><\/p>\n<p>In the schema some examples are shown. Lets start with Web 2 which is a sub site under Site Collection 1. On Site Collection 1 the search settings are applied and stored in the&nbsp; property bag of the rootWeb (haven&#8217;t shown this in the schema to keep it clean). Because Web 2 doesn&#8217;t have specific Search Settings it will by default take the settings from the Site Collection 1. Web 1, which is also a sub site&nbsp;under Site Collection 1 has specific settings on Web Level and&nbsp;will use them instead of using the Site Collection Level settings. There&#8217;s also one exception which is not shown in the schema. You can set the Search Center URL also in the Search Service Application and then also all associated Web Applications can use that setting. But it will only be used when it is not set at Web or Site Collection Level! The screenshot below shows where you can specify this setting on Service Application Level:<\/p>\n<div id=\"attachment_114\" style=\"width: 635px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/vlieshout.net\/wp-content\/uploads\/2014\/04\/SearchServiceApplicationSearchCenterSetting.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-114\" class=\"size-large wp-image-114\" src=\"https:\/\/vlieshout.net\/wp-content\/uploads\/2014\/04\/SearchServiceApplicationSearchCenterSetting-1024x428.png\" alt=\"Search Center URL can also be specified in Search Service Application.\" width=\"625\" height=\"261\" srcset=\"https:\/\/vlieshout.net\/wp-content\/uploads\/2014\/04\/SearchServiceApplicationSearchCenterSetting-1024x428.png 1024w, https:\/\/vlieshout.net\/wp-content\/uploads\/2014\/04\/SearchServiceApplicationSearchCenterSetting-300x125.png 300w, https:\/\/vlieshout.net\/wp-content\/uploads\/2014\/04\/SearchServiceApplicationSearchCenterSetting-624x260.png 624w, https:\/\/vlieshout.net\/wp-content\/uploads\/2014\/04\/SearchServiceApplicationSearchCenterSetting.png 1045w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/a><p id=\"caption-attachment-114\" class=\"wp-caption-text\">Search Center URL can also be specified in Search Service Application.<\/p><\/div>\n<p>For the inner structure of&nbsp;the properties I want to refer to the article of <a title=\"Radu Tut: Search Box Settings in SharePoint 2013\" href=\"http:\/\/radutut.wordpress.com\/2013\/06\/02\/search-box-settings-in-sharepoint-2013\/\" target=\"_blank\">Radu Tut about Search Box Settings<\/a>&nbsp;as there is already written a lot about this on the internet. A scenario which hasn&#8217;t mentioned a lot is how you can migrate the old settings to the new ones. It cannot be done OOTB, you&#8217;ll need PowerShell scripts, custom-made CSOM tooling or Server Side Code to do this. When you are using custom Farm solutions with a custom feature to set the Search Settings it might be very powerful to use <a title=\"Chris O'Brien: Feature Upgrade Part 1:Fundamentals\" href=\"http:\/\/www.sharepointnutsandbolts.com\/2010\/06\/feature-upgrade-part-1-fundamentals.html\" target=\"_blank\">Feature Upgrades<\/a> to apply the new settings using code. In combination with the article of Radu Tut you should be able to create an upgrade yourself and invoke it using <a title=\"Chris O'Brien: Feature Upgrade Part 5: Using PowerShell\" href=\"http:\/\/www.sharepointnutsandbolts.com\/2010\/08\/feature-upgrade-part-5-using-powershell.html\" target=\"_blank\">Powershell Scripts<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In a few series of posts I will discuss changes in SharePoint Search which might affect you when migrating from SharePoint 2010 to 2013. Search is one of the most changed components in SharePoint 2013 and therefore I split the posts up in four parts covering some subjects you need to know before migrating to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,2],"tags":[45,20,18,21,19,5],"class_list":["post-100","post","type-post","status-publish","format-standard","hentry","category-migration","category-sharepoint","tag-migration","tag-propertybag","tag-search","tag-search-settings","tag-sharepoint-2010","tag-sharepoint-2013"],"_links":{"self":[{"href":"https:\/\/vlieshout.net\/index.php?rest_route=\/wp\/v2\/posts\/100","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vlieshout.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vlieshout.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vlieshout.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vlieshout.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=100"}],"version-history":[{"count":17,"href":"https:\/\/vlieshout.net\/index.php?rest_route=\/wp\/v2\/posts\/100\/revisions"}],"predecessor-version":[{"id":199,"href":"https:\/\/vlieshout.net\/index.php?rest_route=\/wp\/v2\/posts\/100\/revisions\/199"}],"wp:attachment":[{"href":"https:\/\/vlieshout.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vlieshout.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vlieshout.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}