Create a Custom Metadata Crawled Property

Scenario/Problem: You want to create a metadata crawled property.

Solution: Use the New-SPEnterpriseSearchMetadataCrawledProperty cmdlet.

Instead of crawling content to generate a crawled property, you can use this search cmdlet to create a crawled property entry within a search service application. This makes replicating search configurations within various environments (development, staging, production, and so on) easier. Listing 13.11 shows sample command lines.

Listing 13.11. Creating a New Metadata Crawled Property

$ssApp = Get-SPEnterpriseSearchServiceApplication-Identity 81aedaf7-704c-47f4-8173-5e99a7495ac3$category = Get-SPEnterpriseSearchMetadataCategory-SearchApplication $ssApp -Identity ...

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.