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.
$ssApp = Get-SPEnterpriseSearchServiceApplication-Identity 81aedaf7-704c-47f4-8173-5e99a7495ac3$crawledproperty = Get-SPEnterpriseSearchMetadataCrawledProperty-SearchApplication $ssApp -Name "ows_NewField"$managedproperty = Get-SPEnterpriseSearchMetadataManagedProperty ...
Get PowerShell™ for SharePoint® 2013 How-To now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.