Remove-FASTSearchMetadataCrawledPropertyMapping
Removes a crawled-property-to-managed-property mapping.
Syntax
Default (Default)
Remove-FASTSearchMetadataCrawledPropertyMapping
-CrawledProperty <CrawledProperty>
-ManagedProperty <ManagedProperty>
[-Confirm]
[-Force]
[-WhatIf]
[<CommonParameters>]
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.
For permissions and the most current information about FAST Search Server 2010 for SharePoint cmdlets, see the online documentation, (https://go.microsoft.com/fwlink/?LinkId=163227).
Examples
EXAMPLE 1 (FAST Server for SharePoint 2010)
$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.
Parameters
-Confirm
Applicable: FAST Server for SharePoint 2010
Activates user prompting to confirm the operation. If set, prompting is activated. If Confirm is false (-Confirm:$false), confirmation prompting is not used.
In cases where Confirm is not specified, the cmdlet will prompt if the $ConfirmPreference shell variable is equal to or greater than the ConfirmImpact setting of the cmdlet (HIGH).
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | cf |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-CrawledProperty
Applicable: FAST Server for SharePoint 2010
The crawled property which is having a mapping removed. The object can be retrieved by using Get-FASTSearchMetadataCrawledProperty, or by using the GetCrawledPropertyMappings() method call on a managed property object.
Parameter properties
Type: | CrawledProperty |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Force
Applicable: FAST Server for SharePoint 2010
Overrides any user prompting settings, so that confirmation of the operation is not required.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ManagedProperty
Applicable: FAST Server for SharePoint 2010
The managed property object which is having a mapping removed. The object can be retrieved by using the Get-FASTSearchMetadataManagedPropertycmdlet.
Parameter properties
Type: | ManagedProperty |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-WhatIf
Applicable: FAST Server for SharePoint 2010
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
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | wi |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.