Suppose, if you want to move your customized search settings from one site Collection to another, you don't need to set up the entire set up manually. You can easily use the options provided by SharePoint .They are :
- Search Configuration Export
- Search Configuration Import
The following properties are exported in a xml file
- Query rules
- Result sources
- Result types
- Search schema
- Ranking model
A sample XML file is placed below
<?xml version="1.0"?>
@namespace html url(http://www.w3.org/1999/xhtml); :root { font:small Verdana; font-weight: bold; padding: 2em; padding-left:4em; } * { display: block; padding-left: 2em; } html|style { display: none; } html|span, html|a { display: inline; padding: 0; font-weight: normal; text-decoration: none; } html|span.block { display: block; } *[html|hidden], span.block[html|hidden] { display: none; } .expand { display: block; } .expand:before { content: '+'; color: red; position: absolute; left: -1em; } .collapse { display: block; } .collapse:before { content: '-'; color: red; position: absolute; left:-1em; } <SearchConfigurationSettings xmlns="http://schemas.datacontract.org/2004/07/Microsoft.Office.Server.Search.Portability" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<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>
</SearchConfigurationSettings>