Remove-FASTSearchMetadataCrawledPropertyMapping
Applies to: SharePoint Server 2010
Removes a crawled-property-to-managed-property mapping.
Syntax
Remove-FASTSearchMetadataCrawledPropertyMapping -CrawledProperty <CrawledProperty> -ManagedProperty <ManagedProperty> [-Confirm [<SwitchParameter>]] [-Force <SwitchParameter>] [-WhatIf [<SwitchParameter>]]
Detailed Description
This cmdlet removes the mapping of a crawled property to a managed property. Both the managed property and the crawled property still exist after the mapping is removed.
The cmdlet parameters are both objects, and must be retrieved separately.
The content must be recrawled/re-fed for the search index to reflect that the mapping was removed.
Parameters
Parameter | Required | Type | Description |
---|---|---|---|
CrawledProperty |
Required |
Microsoft.SharePoint.Search.Extended.Administration.Schema.CrawledProperty |
The crawled property which is having a mapping removed. The object can be retrieved by using Get-FASTSearchMetadataCrawledProperty, or by using the |
ManagedProperty |
Required |
Microsoft.SharePoint.Search.Extended.Administration.Schema.ManagedProperty |
The managed property object which is having a mapping removed. The object can be retrieved by using the Get-FASTSearchMetadataManagedPropertycmdlet. |
Confirm |
Optional |
System.Management.Automation.SwitchParameter |
Activates user prompting to confirm the operation. If set, prompting is activated. If Confirm is false ( In cases where Confirm is not specified, the cmdlet will prompt if the |
Force |
Optional |
System.Management.Automation.SwitchParameter |
Overrides any user prompting settings, so that confirmation of the operation is not required. |
WhatIf |
Optional |
System.Management.Automation.SwitchParameter |
Displays a message that describes the effect of the command instead of executing the command. For more information, type the following command: get-help about_commonparameters |
Input Types
Return Types
Example
---------------EXAMPLE 1-----------------
$title = Get-FASTSearchMetadataManagedProperty -name title
$crawledproperties = $title.GetCrawledPropertyMappings()
$crawledproperties # To List the output before the removal
Remove-FASTSearchMetadataCrawledPropertyMapping -managedproperty $title -crawledproperty $crawledproperties[4]
$crawledproperties # To list the output after the removal
This example removes the mapping of the crawled property “sitemap.title” to the managed property “title”.
This example calls the GetCrawledPropertyMappings()
method call exposed by the managed property, but you could also find the crawled property by using Get-FASTSearchMetadataCrawledProperty. The return value from GetCrawledPropertyMappings()
is an array of crawled properties, of which the last is the “sitemap.title” crawled property mapping. The last of the crawled properties (array index 4) has the mapping removed from it by calling Remove-FASTSearchMetadataCrawledPropertyMapping.
See Also
Reference
Get-FASTSearchMetadataCrawledPropertyMapping
New-FASTSearchMetadataCrawledPropertyMapping
Set-FASTSearchMetadataCrawledPropertyMapping
Get-FASTSearchMetadataCrawledProperty
Get-FASTSearchMetadataManagedProperty