SearchSettings

SearchSettings

Export
To export the search configuration navigate to “Make Configuration”, enter the site URL from which the search configuration needs to be exported, enter an export name and select the “Search Settings” scope. Click submit to add this export to the queue.

Figure 2: Export Search Settings

Figure 2: Export Search Settings

Import
The exported search configuration can be used in a template of choice. Copy the “SearchSettings” part of the export (see below) to the desired configuration template and paste it inside the “Site” element.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<Site Url="{url}" Title="{title}" Template="STS#3" LCID="1033" OwnerLogin="{owner}" UserCodeQuota="0" StorageQuota="0" DenyAddAndCustomizePages="Disabled" TimeZoneId="4" >
    <SearchSettings>
        <SearchConfigurationSettings xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Microsoft.Office.Server.Search.Portability">
            <SearchQueryConfigurationSettings>
                <SearchQueryConfigurationSettings>
                    <BestBets xmlns:d4p1="http://www.microsoft.com/sharepoint/search/KnownTypes/2008/08" />
                    <DefaultSourceId>00000000-0000-0000-0000-000000000000</DefaultSourceId>
                    <DefaultSourceIdSet>true</DefaultSourceIdSet>
                    <DeployToParent>false</DeployToParent>
                    <DisableInheritanceOnImport>false</DisableInheritanceOnImport>
                    <QueryRuleGroups xmlns:d4p1="http://www.microsoft.com/sharepoint/search/KnownTypes/2008/08" />
                    <QueryRules xmlns:d4p1="http://www.microsoft.com/sharepoint/search/KnownTypes/2008/08" />
                    <ResultTypes xmlns:d4p1="http://schemas.datacontract.org/2004/07/Microsoft.Office.Server.Search.Administration" />
                    <Sources xmlns:d4p1="http://schemas.datacontract.org/2004/07/Microsoft.Office.Server.Search.Administration.Query" />
                    <UserSegments xmlns:d4p1="http://www.microsoft.com/sharepoint/search/KnownTypes/2008/08" />
                </SearchQueryConfigurationSettings>
            </SearchQueryConfigurationSettings>
            <SearchRankingModelConfigurationSettings>
                <RankingModels xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
            </SearchRankingModelConfigurationSettings>
            <SearchSchemaConfigurationSettings>
                <Aliases xmlns:d3p1="http://schemas.datacontract.org/2004/07/Microsoft.Office.Server.Search.Administration">
                    <d3p1:LastItemName i:nil="true" />
                    <d3p1:dictionary xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
                </Aliases>
                <CategoriesAndCrawledProperties xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
                <CrawledProperties xmlns:d3p1="http://schemas.datacontract.org/2004/07/Microsoft.Office.Server.Search.Administration" i:nil="true" />
                <ManagedProperties xmlns:d3p1="http://schemas.datacontract.org/2004/07/Microsoft.Office.Server.Search.Administration">
                    <d3p1:LastItemName i:nil="true" />
                    <d3p1:dictionary xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
                    <d3p1:TotalCount>0</d3p1:TotalCount>
                </ManagedProperties>
                <Mappings xmlns:d3p1="http://schemas.datacontract.org/2004/07/Microsoft.Office.Server.Search.Administration">
                    <d3p1:LastItemName i:nil="true" />
                    <d3p1:dictionary xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
                </Mappings>
                <Overrides xmlns:d3p1="http://schemas.datacontract.org/2004/07/Microsoft.Office.Server.Search.Administration">
                    <d3p1:LastItemName i:nil="true" />
                    <d3p1:dictionary xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
                </Overrides>
            </SearchSchemaConfigurationSettings>
            <SearchSubscriptionSettingsConfigurationSettings i:nil="true" />
            <SearchTaxonomyConfigurationSettings i:nil="true" />
        </SearchConfigurationSettings>
    </SearchSettings>
    <RootWeb Url="{url}" Title="{title}" Description="{description}" Template="STS#3" LCID="1033" >     
        <Properties>
            <Property Name="WebTemplate">Make.SearchSettings</Property>
            <Property Name="WebTemplateVersion">1.0.0.0</Property>
        </Properties>
    </RootWeb>
</Site>
What's on this Page