Get a Specific Metadata-Managed Property


Scenario/Problem: You need to obtain a metadata managed property reference for use in other search cmdlets.


Solution: Use the Get-SPEnterpriseSearchMetadataManagedProperty cmdlet to assign a variable the results using the -Identity and -SearchApplication parameters.

Providing the identity of the metadata-managed property with the Get-SPEnterpriseSearchMetadataManagedProperty cmdlet retrieves a specific metadata-managed property for the specified search service application. Use this to assign the results to an object for use in other cmdlets, as shown in Listing 13.16.

Listing 13.16. Assigning a Variable to a Specific Metadata-Managed Property


$ssApp = Get-SPEnterpriseSearchServiceApplication
-Identity 81aedaf7-704c-47f4-8173-5e99a7495ac3
$managedproperty = Get-SPEnterpriseSearchMetadataManagedProperty
-SearchApplication $ssApp -Identity NewField


..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.128.190.102