Create a Metadata Mapping
Scenario/Problem: You need to map a crawled property to a managed property.
Solution: Use the New-SPEnterpriseSearchMetadataMapping cmdlet.
To be able to use new search fields within SharePoint, you must map the crawled properties to managed properties. You can use the variables generated in the previous sections to map the two together using the New-SPEnterpriseSearchMetadataMapping cmdlet. Listing 13.17 shows sample command lines.
Listing 13.17. Creating a New Metadata Mapping
$ssApp = Get-SPEnterpriseSearchServiceApplication-Identity 81aedaf7-704c-47f4-8173-5e99a7495ac3$crawledproperty = Get-SPEnterpriseSearchMetadataCrawledProperty-SearchApplication $ssApp -Name "ows_NewField"$managedproperty = Get-SPEnterpriseSearchMetadataManagedProperty ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access