Manage managed properties by using Windows PowerShell (FAST Search Server 2010 for SharePoint)(informazioni in lingua inglese)
Data pubblicazione: 12 maggio 2010
This topic explains how to work with managed properties in Microsoft FAST Search Server 2010 for SharePoint by using Windows PowerShell.
In this topic:
Display the properties of a managed property by using Windows PowerShell
Make a managed property queryable by using the Set-FASTSearchMetadataManagedProperty Windows PowerShell cmdlet
Make a managed property queryable by updating the properties on the managed property object
Enable merging of crawled property values by using Windows PowerShell
Set size properties for a managed property by using Windows PowerShell
Define a refiner for a managed property by using Windows PowerShell
Update a refiner for a managed property by using Windows PowerShell
Set the summary type for a managed property by using Windows PowerShell
Set the summary type fallback for a managed property by using Windows PowerShell
Map a managed property to a full-text index by using Windows PowerShell
Display the properties of a managed property by using Windows PowerShell
Verify that you meet the following minimum requirements: You are a member of the FASTSearchAdministrators local group on the computer where FAST Search Server 2010 for SharePoint is installed.
On the Start menu, click All Programs.
Click Microsoft FAST Search Server 2010 for SharePoint.
Click Microsoft FAST Search Server 2010 for SharePoint shell.
At the Windows PowerShell command prompt, type the following command(s):
Get-FASTSearchMetadataManagedProperty -Name "<ManagedPropertyName>"
Where:
- <ManagedPropertyName> is the name of the managed property you want to update.
Nota
Some of these properties are set when the managed property is created and not possible to update, such as the managed property Name or Type.
See also
Make a managed property queryable by using the Set-FASTSearchMetadataManagedProperty Windows PowerShell cmdlet
Verify that you meet the following minimum requirements: You are a member of the FASTSearchAdministrators local group on the computer where FAST Search Server 2010 for SharePoint is installed.
On the Start menu, click All Programs.
Click Microsoft FAST Search Server 2010 for SharePoint.
Click Microsoft FAST Search Server 2010 for SharePoint shell.
At the Windows PowerShell command prompt, type the following command(s):
Set-FASTSearchMetadataManagedProperty -Name "<ManagedPropertyName>" -Queryable <QueryableFlag>
Where:
<ManagedPropertyName> is the name of the managed property.
<QueryableFlag> is a Boolean indicating whether the managed property should be queryable or not. Set to $true if the managed property should be queryable, if not set to $false.
See also
Make a managed property queryable by updating the properties on the managed property object
Verify that you meet the following minimum requirements: You are a member of the FASTSearchAdministrators local group on the computer where FAST Search Server 2010 for SharePoint is installed.
On the Start menu, click All Programs.
Click Microsoft FAST Search Server 2010 for SharePoint.
Click Microsoft FAST Search Server 2010 for SharePoint shell.
At the Windows PowerShell command prompt, type the following command(s):
$mp = Get-FASTSearchMetadataManagedProperty -Name "<ManagedPropertyName>" $mp.Queryable = <QueryableFlag> $mp.Update()
Where:
<ManagedPropertyName> is the name of the managed property.
<QueryableFlag> is a Boolean indicating whether the managed property should be queryable or not. Set to $true if the managed property should be queryable, if not set to $false.
See also
Enable merging of crawled property values by using Windows PowerShell
Verify that you meet the following minimum requirements: You are a member of the FASTSearchAdministrators local group on the computer where FAST Search Server 2010 for SharePoint is installed.
On the Start menu, click All Programs.
Click Microsoft FAST Search Server 2010 for SharePoint.
Click Microsoft FAST Search Server 2010 for SharePoint shell.
At the Windows PowerShell command prompt, type the following command(s):
Set-FASTSearchMetadataManagedProperty -Name "<ManagedPropertyName>" -MergeCrawledProperties <Flag>
Where:
<ManagedPropertyName> is the name of the managed property.
<Flag> is a Boolean indicating whether mapped crawled properties should be merged, or not. Use $true to merge, $false if not.
See also
Set size properties for a managed property by using Windows PowerShell
A managed property has two size-related properties, MaxIndexSize and MaxResultSize. These properties define the maximum number of kilobytes used for indexing the managed property, and the maximum number of kilobytes returned by the managed property as part of the search result. The following example doubles the value for these properties:
Verify that you meet the following minimum requirements: You are a member of the FASTSearchAdministrators local group on the computer where FAST Search Server 2010 for SharePoint is installed.
On the Start menu, click All Programs.
Click Microsoft FAST Search Server 2010 for SharePoint.
Click Microsoft FAST Search Server 2010 for SharePoint shell.
At the Windows PowerShell command prompt, type the following command(s):
$mp = Get-FASTSearchMetadataManagedProperty -Name Title Set-FASTSearchMetadataManagedProperty -Name Title -MaxIndexSize ($mp.MaxIndexSize*2) -MaxResultSize ($mp.MaxResultSize*2)
See also
Define a refiner for a managed property by using Windows PowerShell
Verify that you meet the following minimum requirements: You are a member of the FASTSearchAdministrators local group on the computer where FAST Search Server 2010 for SharePoint is installed.
On the Start menu, click All Programs.
Click Microsoft FAST Search Server 2010 for SharePoint.
Click Microsoft FAST Search Server 2010 for SharePoint shell.
At the Windows PowerShell command prompt, type the following command(s):
Set-FASTSearchMetadataManagedProperty -Name "<Name>" -RefinementEnabled "<Flag>"
Where:
<Name> is the name of the managed property to be updated.
<Flag> is a Boolean indicating whether or not the managed property should be refinement enabled. Use $true if it should be refinement enabled, $false if not.
Nota
When you create a managed property it is not refinement enabled by default.
See also
Update a refiner for a managed property by using Windows PowerShell
Nota
Refiners have different settings based on the type of the managed property they are enabled for. Refiner settings for managed properties of type Text will be different from refiner settings for managed properties with numeric types.
The managed property size exists by default, and is used for the size of the documents. It is of type Integer and is refinement enabled by default. The indexed values for size are in bytes, and by default the refiner is configured to display the value as kilobytes (Refiner.divisor=1024
.) In the example below, the refiner is changed to display values in megabytes instead (1024*1024=1048576).
Verify that you meet the following minimum requirements: You are a member of the FASTSearchAdministrators local group on the computer where FAST Search Server 2010 for SharePoint is installed.
On the Start menu, click All Programs.
Click Microsoft FAST Search Server 2010 for SharePoint.
Click Microsoft FAST Search Server 2010 for SharePoint shell.
At the Windows PowerShell command prompt, type the following command(s):
$size = Get-FASTSearchMetadataManagedProperty -Name size $sizerefiner = $size.GetRefinerConfiguration() $sizerefiner.Divisor = 1048576 $size.SetRefinerConfiguration($sizerefiner)
See also
Set the summary type for a managed property by using Windows PowerShell
Verify that you meet the following minimum requirements: You are a member of the FASTSearchAdministrators local group on the computer where FAST Search Server 2010 for SharePoint is installed.
On the Start menu, click All Programs.
Click Microsoft FAST Search Server 2010 for SharePoint.
Click Microsoft FAST Search Server 2010 for SharePoint shell.
At the Windows PowerShell command prompt, type the following command(s):
Set-FASTSearchMetadataManagedProperty -Name Title -SummaryType <SummaryType>
Where:
<SummaryType> is the value for the summary type you want to use for the managed property. Valid values are:
0 - Disabled. The managed property will not be returned as part of the result.
1 - Static. The entire content of the managed property is returned (up until the value for the MaxResultSize property.)
2 - Dynamic. A dynamic summary is generated based on the managed property content and the query and returned as part of the result.
See also
Set the summary type fallback for a managed property by using Windows PowerShell
If you have set the summary type of a managed property to 2 (dynamic), you can specify the static content of a managed property as a fallback. The fallback managed property will be used as the result summary if the system fails to generate a dynamic summary. The fallback managed property can be the static summary of the same managed property, or the summary of another managed property.
By default, the Title managed property has a fallback reference to itself, and if it fails to create a dynamic summary from the query, it will use its static summary instead. The following example sets the fallback reference for Title to the managed property DocSubject instead.
Verify that you meet the following minimum requirements: You are a member of the FASTSearchAdministrators local group on the computer where FAST Search Server 2010 for SharePoint is installed.
On the Start menu, click All Programs.
Click Microsoft FAST Search Server 2010 for SharePoint.
Click Microsoft FAST Search Server 2010 for SharePoint shell.
At the Windows PowerShell command prompt, type the following command(s):
$title = Get-FASTSearchMetadataManagedProperty -Name Title $docsubject = Get-FASTSearchMetadataManagedProperty DocSubject $title.SetResultFallBack($docsubject)
See also
Map a managed property to a full-text index by using Windows PowerShell
Verify that you meet the following minimum requirements: You are a member of the FASTSearchAdministrators local group on the computer where FAST Search Server 2010 for SharePoint is installed.
On the Start menu, click All Programs.
Click Microsoft FAST Search Server 2010 for SharePoint.
Click Microsoft FAST Search Server 2010 for SharePoint shell.
At the Windows PowerShell command prompt, type the following command(s):
$mp = Get-FASTSearchMetadataManagedProperty -Name "<ManagedPropertyName>" $fti = Get-FASTSearchMetadataFullTextIndex -Name "<FullTextIndexName>" New-FASTSearchMetadataFullTextIndexMapping -ManagedProperty $mp -FullTextIndex $fti -Level <ImportanceLevel>
Where:
<ManagedPropertyName> is the managed property name that will be mapped into the full-text index.
<FullTextIndexName> is the name of the full-text index that the managed property will be mapped into.
<ImportanceLevel> is the importance level of the managed property. Valid values are 1 through 7, where 7 indicates the highest importance.
Nota
To populate the full-text index, you must re-feed the content.
See also
Cronologia delle modifiche
Data | Descrizione | Motivo |
---|---|---|
12 maggio 2010 |
Pubblicazione iniziale |